Page 1 of 1

Subscribe button goes to the PayPal home page

PostPosted: November 19th, 2011, 1:35 pm
by trionit
Hello,

I am integrating PayPal button for paid Membership Subscription, but after I click the Subscription button I am being lead to PayPal home page instead of payment page with my business name and payment value.
I was logged out of the both: WordPress and PayPal, so there is something else here. Why is that?

Has anybody got the same experience? :roll:

My 0 subscribers will become Level 2 paid members.
I offer monthly subscription with a trial period

Looking at my code there is rm= mentioned twice like this:
<input type="hidden" name="rm" value="1">
<input type="hidden" name="rm" value="2">
So, this is the difference when I checked my code against the one shown here ->http://www.primothemes.com/forums/viewtopic.php?f=36&t=309

Thank you very much.

Forgot to mention - I need eur value and that's why I created the button not via s2Member but Paypal.

Re: Subscribe button goes to the PayPal home page

PostPosted: November 19th, 2011, 9:49 pm
by Raam Dev
Hi trionit,

Can you give me a link to a page with your Paypal button? Or can you do "view source" on the page and copy and paste the button code (everything between the <form></form> tags) into a post here?

Re: Subscribe button goes to the PayPal home page

PostPosted: November 20th, 2011, 4:19 am
by trionit
Hi Raam Dev,

Thank you very much for your kind assistance.
Actually the code is hidden in twenty rows of letters and numbers so you cannot see much there. Do you mean I need not to encrypt it?
Thank you.

Re: Subscribe button goes to the PayPal home page

PostPosted: November 20th, 2011, 11:25 am
by Raam Dev
Yes, just copy and paste everything between the form tags. Or, can you just give me a link to the page with the button?

Re: Subscribe button goes to the PayPal home page

PostPosted: November 20th, 2011, 12:27 pm
by trionit
OK, here it is my code with no encryption enabled. Please have a look:
Code: Select all
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="xxxxxxxxxxxxxxx">
<input type="hidden" name="lc" value="LV">
<input type="hidden" name="item_name" value="Paid Membership (includes trial 1 week)">
<input type="hidden" name="item_number" value="2">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="rm" value="1">
<input type="hidden" name="return" value="http://mydomainhere.com/?s2member_paypal_return=1">
<input type="hidden" name="cancel_return" value="http://mydomainhere.com">
<input type="hidden" name="a1" value="5.00">
<input type="hidden" name="p1" value="1">
<input type="hidden" name="t1" value="W">
<input type="hidden" name="src" value="1">
<input type="hidden" name="a3" value="20.00">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="bn" value="PP-SubscriptionsBF:btn_subscribeCC_LG.gif:NonHosted">
<input type="hidden" name="custom" value="mydomainhere.com">
<input type="hidden" name="notify_url" value="http://mydomainhere.com/?s2member_paypal_notify=1">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="modify" value="2">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>


What would you say? What's wrong with it? I cleared cookies before checked the button, but it goes to Paypal home page.
Thank you in advance.

Re: Subscribe button goes to the PayPal home page

PostPosted: November 21st, 2011, 3:57 am
by Cristián Lávaque
Did you create that over at PayPal? That doesn't look like the code I've seen them generate for buttons. That looks like the full code generated by s2Member's button generator.

Re: Subscribe button goes to the PayPal home page

PostPosted: November 21st, 2011, 10:38 am
by trionit
Hello,
Thanks for looking at my question.

Yes, I created the Subscription code at PayPal because I need EURO instead of dollars.

I used all suggestions about advanced variables and Subscription ID to correspond with s2Member that is necessary for the code to work correctly mentioned in earlier post here re PayPal created buttons , so I do not get what went wrong. Have I misunderstood something? I am totally confused now.

Re: Subscribe button goes to the PayPal home page

PostPosted: November 21st, 2011, 8:58 pm
by Raam Dev
trionit,

You can set the EUR currency from within s2Member -- there is no reason to generate the button from PayPal.

When you generate the button in WP Admin -> s2Member -> PayPal Buttons you will see a drop-down menu to the left of the Generate Button Code button. You can select the EUR currency there and then click Generate Button Code and use the resulting shortcode in your WordPress page.

The screenshot below shows an example where the currency has been changed to SEK. Simply select EUR instead and then use the shortcode. :) Let us know if that works for you.

Image

Re: Subscribe button goes to the PayPal home page

PostPosted: November 22nd, 2011, 3:40 am
by trionit
Hello guys,

Obviously I was blind as somehow managed not to see the currency option there :oops:
Yes, the code is great and simple to generate! Thanks to you I am happy that finally have set it right. Thank you very much for your kind help.
Just one more question - if I need to add tax can I do that with s2Member? I saw the option at PayPal but not at s2Member. Should I create that at PayPal then copy the lines into the s2Member?

Re: Subscribe button goes to the PayPal home page

PostPosted: November 23rd, 2011, 12:14 am
by Raam Dev
Glad to help, trionit! :)

s2Member Pro allows for configuring taxes for all transaction types in the WordPress dashboard (WP Admin -> s2Member -> Paypal Options -> Tax Rate Calculations)

See here for more details on taxes with s2Member: viewtopic.php?f=4&t=2029&p=50929&hilit=tax#p50909

Re: Subscribe button goes to the PayPal home page

PostPosted: November 24th, 2011, 2:48 am
by trionit
Hello Raam Dev,

Ok, it's clear now. Have to make some money to buy Pro ;)
Thank you very much for helping me in sorting this out!

Re: Subscribe button goes to the PayPal home page

PostPosted: November 24th, 2011, 3:33 am
by Raam Dev
Glad I could help, trionit! :)