- Posts: 16
- Thank you received: 0
Country for payment
- James Brew
- Topic Author
- Offline
- New Member
-
Less
More
8 years 9 months ago #84570
by James Brew
Country for payment was created by James Brew
I have a problem when a plan is selected for payment the system always uses the default country for calculating tax.
I am not using OSMembership registration integration but pick up a user's country with ACYMailing registration. I can place the correct country into the _osmembership_subscribers country field using the plan's PHP Script Settings but this is too late in the process as the tax has already been calculated when the record is created.
From where does the payment system attempt to pick up the user's country? How can I get the payment system to pick up the correct country?
Regards
James
I am not using OSMembership registration integration but pick up a user's country with ACYMailing registration. I can place the correct country into the _osmembership_subscribers country field using the plan's PHP Script Settings but this is too late in the process as the tax has already been calculated when the record is created.
From where does the payment system attempt to pick up the user's country? How can I get the payment system to pick up the correct country?
Regards
James
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
8 years 9 months ago #84605
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Country for payment
Hi James
Country is picked up for calculation on many places:
1. On registration form
2. When users submit the registration
If you want to change the way country is used to calculate subscription, I would suggest you to look at components/com_osmembership/helper/helper.php, method calculateSubscriptionFee
That's the central place for calculate subscription fee in the extension. Change it and it will solve your issue
Tuan
Country is picked up for calculation on many places:
1. On registration form
2. When users submit the registration
If you want to change the way country is used to calculate subscription, I would suggest you to look at components/com_osmembership/helper/helper.php, method calculateSubscriptionFee
That's the central place for calculate subscription fee in the extension. Change it and it will solve your issue
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.