Page 1 of 1

Paypal button not working

PostPosted: November 23rd, 2011, 10:02 am
by Akharawaka
Hi everyone,

I'm trying to get a s2member paypal button to work on this page : http://www.lepavenumerique.fr/?page_id=51

At first, I tried to use encrypted buttons, but when I clicked on the button, PayPal told me the button was NOT encrypted. When I got rid of the encryption, PayPal then told me the period for a recurring subscription was not set. And asked for values for A3, P3 and T3. Funny, cause when I check the code, it seems to me these values ARE defined. (I didn't the shortcode because I didn't want the standard PayPal button)

Any idea what this is all about ?
Thanks already.

Re: Paypal button not working

PostPosted: November 30th, 2011, 9:09 am
by Akharawaka
I made some progress. Turns out that since I integrated the button in a page, and WP does not manage PHP in a page by default, I just had to use a plug-in that allowed me to execute PHP in order to get my invoice and optional fields filled in properly. Paypal now recognizes the button, and all the variables.

But it's still not working.

I can use the button, pay and check-out. But then, nothing happens. I'm redirected to the return page, where S2Members tells me to check my e-mails, but the confirmation e-mail never comes.

Anyhow, here's the spanking new code for my button, with shortcodes where the PHP used to be. Am I missing something ?

Code: Select all
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="business" value="antoine.kirsch@gmail.com" />
<input type="hidden" name="cmd" value="_xclick-subscriptions" />
<input type="hidden" name="notify_url" value="http://www.lepavenumerique.fr/?s2member_paypal_notify=1" />
<input type="hidden" name="cancel_return" value="http://www.lepavenumerique.fr/" />
<input type="hidden" name="return" value="http://www.lepavenumerique.fr/?s2member_paypal_return=1" />
<input type="hidden" name="rm" value="2" />
<input type="hidden" name="lc" value="" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="custom" value="www.lepavenumerique.fr" />
<input type="hidden" name="currency_code" value="EUR" />
<input type="hidden" name="page_style" value="paypal" />
<input type="hidden" name="charset" value="utf-8" />
<input type="hidden" name="item_name" value="Abonnés / description et tarifs sur cette page." />
<input type="hidden" name="item_number" value="1" />
<input type="hidden" name="invoice" value="[invoice]" />
<input type="hidden" name="on0" value="[on0]" />
<input type="hidden" name="os0" value="[os0]" />
<input type="hidden" name="on1" value="[on1]" />
<input type="hidden" name="os1" value="[os1]" />
<input type="hidden" name="modify" value="0" />
<input type="hidden" name="src" value="1" />
<input type="hidden" name="srt" value="" />
<input type="hidden" name="sra" value="1" />
<input type="hidden" name="a1" value="0.00" />
<input type="hidden" name="p1" value="1" />
<input type="hidden" name="t1" value="M" />
<input type="hidden" name="a3" value="3.00" />
<input type="hidden" name="p3" value="1" />
<input type="hidden" name="t3" value="M" />
<input type="image" src="http://www.lepavenumerique.fr/wp-content/uploads/2011/11/bouton-abo.png" style="width:auto; height:auto; border:0;" alt="PayPal®" />
</form>


Thanks already.