Page 1 of 1
Enable Button Encryption?
Posted:
March 27th, 2011, 5:48 am
by drbyte
Hey Jason
Maybe it's a bug but I found that when I try to offer the first 3 days free membership @0.00 then $$ for every month, the generated short code does not work when you click at the check out paypal button....it does not encrypt the code...
Without the offer the code works well and it's encrypted
Sam
Re: Enable Button Encryption?
Posted:
March 31st, 2011, 1:42 am
by Jason Caldwell
Hi Sam. Great to hear from you again.
Thanks for reporting this important issue.
Would it be possible for you to attach a screen shot for me?
Something that shows how you reproduce this with your Shortcode.
Re: Enable Button Encryption?
Posted:
March 31st, 2011, 2:26 am
by drbyte
Hi Jason
Thank you
It seems the
tp is causing the issue. Once removed the button get encrypted. I have all PayPal API credentials fields setup correctly
[s2Member-PayPal-Button level="1" ccaps="" desc="Bronze / description and pricing details here." ps="paypal" cc="USD" ns="1" custom="www.site.com" ta="0" tp="3" tt="D" ra="13.99" rp="1" rt="M" rr="1" image="default" output="button" /]
Sam
Re: Enable Button Encryption?
Posted:
March 31st, 2011, 3:06 am
by Jason Caldwell
Thanks Sam.
Yes, that's a bug. The PayPal® API method `BMCreateButton` expects (amount|a1|a3) to include 2 decimal places during encryption; which is not always the case with s2Member Shortcode values. I'm having this fixed in the next release. Until then, this should do the trick. Just set ta="0.00".
Re: Enable Button Encryption?
Posted:
March 31st, 2011, 4:58 pm
by drbyte
Thank you Jason..you are the best
Sam
Re: Enable Button Encryption?
Posted:
April 6th, 2011, 5:43 pm
by rainleader
I'm experiencing the same issue and have tried setting ta="0.00" and still can't get encryption to work. Could anything else be causing this?
viewtopic.php?f=4&t=3024EDIT: After consulting my log file, it appears a3 also cannot be a single digit (e.g. using "5" for $5 is not correct; you must input "5.00").
Re: Enable Button Encryption?
Posted:
April 7th, 2011, 10:43 pm
by Jason Caldwell
The fix coming in version 3.5.8 will NOT require changes to your Shortcode attributes. Rather, the encryption routine will automatically convert numeric dollar amounts during encryption to avoid this rather odd requirement on the part of PayPal. You should see the maintenance release of v3.5.8 within days.
~ Thanks for your patience guys.
And thanks for reporting this!