Page 1 of 1

Tax Calculations and Pro forms

PostPosted: August 17th, 2011, 5:01 am
by ffemtkl
I have S2Member Pro and I am using the section "Tax Rate Calculations for PayPal® Pro Forms (optional)". I have setup tax rates for one country that we are required to collect tax. According to the documentation S2Member Pro does the calculations. If so, my question is...

How does S2Member know which country the potential purchaser is located?
Am I required to create a custom registration field of "country" in order to "tell" S2member to apply the tax?

The question is true for all the tax calculation options like zip, state, province .etc.

If I am required to create these custom fields then it should be mentioned in the documentation (maybe even add a check system to make sure the required fields exist and if not show a warning) :mrgreen:

Please let me know,

Kalman

Re: Tax Calculations and Pro forms

PostPosted: August 17th, 2011, 8:04 pm
by Bruce C
I believe that is calculated by PayPal automatically. In the code that option is just changed from 0 to 1.

Re: Tax Calculations and Pro forms

PostPosted: August 18th, 2011, 2:29 am
by Cristián Lávaque
WP Admin -> s2Member -> PayPal Options -> Tax Rate Calculations (Pro-Form)
With PayPal® Pro, your software ( s2Member Pro ) is solely responsible for calculating Tax Rates.
The Tax Rate will be displayed to a Customer during checkout, after they've supplied a Billing Address.

I hope that helps. :)

Re: Tax Calculations and Pro forms

PostPosted: August 29th, 2011, 3:52 am
by ffemtkl
Cristian,

Thanks for pointing me to that help. However, my basic question still stands...

How does S2Member know which country the potential purchaser is located?

Thanks,

Kalman

Re: Tax Calculations and Pro forms

PostPosted: August 29th, 2011, 5:03 pm
by Cristián Lávaque
Because the tax rate gets calculated after they supply the billing address, which will include the country from a dropdown menu. In your taxes panel you'd have to define the taxes for each country using the two-charater country codes. WP Admin -> s2member -> PayPal Options -> Tax

I hope that helps. :)

Re: Tax Calculations and Pro forms

PostPosted: September 1st, 2011, 9:33 am
by ffemtkl
Cristian,

Thanks, that cleared up everything. I am now in test mode, but the tax calculator keeps getting hung up. Not 100% what it is, but I will give you a screenshot and some error stuff. Please help me figure this out.

WP 3.2.1 with MU (not allowing people to create blogs, just using multiple blogs for our company)
Latest version of S2Member +Pro

tax calculator hanging.png
This is what keeps showing once country, zip and state have been inputted
tax calculator hanging.png (5.72 KiB) Viewed 217 times


Here is some errors:

XMLHttpRequest cannot load https://XXXXXXXX.com/wp-admin/admin-ajax.php. Origin http://XXXXXXXXX.com is not allowed by Access-Control-Allow-Origin.

This seems to be a permission issue, but not understanding how this could be.

Any help would be greatly appreciated.

Kalman

Re: Tax Calculations and Pro forms

PostPosted: September 1st, 2011, 9:44 pm
by Cristián Lávaque
I'm glad that cleared it up. :)

I'll email Jason about that error, I'm not sure what it is.

Re: Tax Calculations and Pro forms

PostPosted: September 2nd, 2011, 7:18 pm
by Jason Caldwell
Thanks for reporting this important issue.
ffemtkl wrote:XMLHttpRequest cannot load https://XXXXXXXX.com/wp-admin/admin-ajax.php. Origin http://XXXXXXXXX.com is not allowed by Access-Control-Allow-Origin.
Are you running your installation of WordPress on different domains, and/or with some type of domain mapping? This error is usually caused by a cross-domain HTTP request:
https://developer.mozilla.org/En/HTTP_access_control

Re: Tax Calculations and Pro forms

PostPosted: September 4th, 2011, 3:53 am
by ffemtkl
Jason,

It is the same subdomain testing.XXXX.com but if you notice the first is HTTPS and the second is plan HTTP. Could this be the issue? If so, any recommendations to fixing it?

UPDATE: I would like to force my "Membership Options Page" to be ssl and see if this solves the problem. I reread about ssl and S2Member, but need some help. In the FAQs it mention that
... Once you're live, you can add the Custom Field s2member_force_ssl -> yes to any Post/Page.
Where do I add this Custom Field? Within the Pro forms as hidden? Within the WordPress admin section where you have the section "Require Custom Capabilities"?

Please Help.

Thanks,

Kalman

Re: Tax Calculations and Pro forms

PostPosted: September 4th, 2011, 11:45 pm
by Cristián Lávaque
You'd add the custom field in the edit page. After the editor area there should be a Custom Fields panel, if it isn't there, activate it from the Screen Options tab in the top-right.

Re: Tax Calculations and Pro forms

PostPosted: September 5th, 2011, 3:41 am
by ffemtkl
Cristian and Jason,

Cristian - Thank you for point that out. Found it and set the page to ssl.

Jason - That was the issue! I have WP set automatically for ssl on login and wp-admin pages, but the page with the Pro forms was not secure (which after rereading you FAQs I realized was wrong because it is required by PayPal and Authorize.net TOS), therefore I was getting that error. Once I secured that page, the tax calculator worked perfectly.

Thanks again for your help.

Kalman

Re: Tax Calculations and Pro forms

PostPosted: September 6th, 2011, 1:40 pm
by Jason Caldwell
Gotchya. Thanks for reporting back on this.
~ MUCH appreciated!

Re: Tax Calculations and Pro forms

PostPosted: September 27th, 2011, 8:55 am
by ffemtkl
New problem. It is hanging again, but it cannot be the https/http issue.

This time the tax calculator works when you are logged in, but not when logged out.

Using FireBug, it shows an error https://www.XXXXXXXX.com/wp-admin/admin-ajax.php 302 Found 440ms

Any ideas?

Kalman

Re: Tax Calculations and Pro forms

PostPosted: September 27th, 2011, 9:40 pm
by Jason Caldwell
I believe this bug was corrected in the release of s2Member v110927 last night.

Re: Tax Calculations and Pro forms

PostPosted: October 4th, 2011, 8:41 am
by ffemtkl
Updated and everything is working correctly. Thanks.