YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

2 Similar Paypal Buttons. One Works, One Doesn't. Help... Options
joelmon
#1 Posted : Tuesday, December 01, 2009 6:24:24 AM
Rank: Starting Member

Groups: Registered

Joined: 12/1/2009
Posts: 3
Location: NYC
Thanks for your time.

Below I will post 2 subscription payment paypal buttons. The first one does not work and creates this error upon submission:

"The link you have used to enter the PayPal system is invalid. Please review the link and try again."

The other works fine. Any idea why the first button causes problems? They are basically identical using the SAME post action url and SAME business address. This is for my SANDBOX testing.

Paypal Button 1 For Sandbox (NOT WORKING):



Code:
    <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" id="pay">

<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="cmd" value="_xclick-subscriptions">

<input type="hidden" name="business" value="jholtz_1249409996_biz@gmail.com">

<!-- Specify a Subscribe button. -->

<!-- Identify the subscription. -->
        <input type="hidden" name="item_name" value="Your Main Product">
        <input type="hidden" name="item_number" value="1">

<!-- Set the terms of the 1st trial period. -->
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="a1" value="1.00">
<input type="hidden" name="p1" value="1">
<input type="hidden" name="t1" value="Y">

<!-- Set the terms of the regular subscription. -->
<input type="hidden" name="a3" value="1.00">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="Y">
<input type="hidden" name="src" value="1">

<input type="hidden" name="srt" value="1">


<! -- Display The IPN & Return Url. -->

<input type="hidden" name="notify_url" value="http://mysite.com/profitx/admin/inc/ipn.php">
<input type="hidden" name="return" value="http://www.mysite.com/isl/index.php?a=ty&sess=08e55e32d1b0e62b92918441269efaa1">
        
<input type="hidden" name="custom" value="1_1_08e55e32d1b0e62b92918441269efaa1_1">
                
<input type="submit" name="submit" value="pay">

</form>


Paypal Button #2 For Sandbox (THIS WORKS JUST FINE)

Code:

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<!-- Identify your business so that you can collect the payments. -->

<input type="hidden" name="business" value="jholtz_1249409996_biz@gmail.com">

<!-- Specify a Subscribe button. -->
<input type="hidden" name="cmd" value="_xclick-subscriptions">

<!-- Identify the subscription. -->
<input type="hidden" name="item_name" value="Gold Membership Level">
<input type="hidden" name="item_number" value="3">

<!-- Set the terms of the 1st trial period. -->
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="a1" value="2.95">
<input type="hidden" name="p1" value="1">
<input type="hidden" name="t1" value="M">

<!-- Set the terms of the regular subscription. -->
<input type="hidden" name="a3" value="9.95">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
<input type="hidden" name="custom" value="bonus=1&main=3">

<input type="hidden" name="src" value="1">
<input type="hidden" name="srt" value="0">

<! -- Display The IPN & Return Url. -->

<input type="hidden" name="notify_url" value="http://mysite.com/blog/wp-content/plugins/wpr/ipn/ipn.php">
<input type="hidden" name="return" value="http://mysite.com/blog/wp-content/plugins/wpr/ty.php">

<!-- Display the payment button. -->
<input type="image" name="submit" border="0" src="https://www.paypal.com/en_US/i/btn/btn_subscribe_LG.gif" alt="PayPal - The safer, easier way to pay online">
<img alt="" border="0" width="1" height="1" src="https://www.paypal.com/en_US/i/scr/pixel.gif" > </form>

Sponsor  
 
joelmon
#2 Posted : Tuesday, December 01, 2009 6:29:36 AM
Rank: Starting Member

Groups: Registered

Joined: 12/1/2009
Posts: 3
Location: NYC
One odd discovery:

If I put a standard paypal email for the 'business' value in the *first (non working) paypal form, it loads
correctly. So the question is why the 2nd paypal sandbox button can take the paypal business email
but the first one cannot do so without error? This is awfully strange, isn't it?

I can't get a product launched (a script that works with subscriptions) without this being solved.
Thank you.

- Joel
joelmon
#3 Posted : Tuesday, December 01, 2009 1:08:08 PM
Rank: Starting Member

Groups: Registered

Joined: 12/1/2009
Posts: 3
Location: NYC
Problem Solved.

Solution: For SANDBOX never let SRT = 1. Either 0 for unlimited or > 1 for x# of recurring payments before conclusion of subscription. I hope this helps
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.168 seconds.