Whenever I try to pay using the following button:
<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="facilitators#somemail.com">
<!-- Specify a Subscribe button. -->
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<!-- Identify the subscription. -->
<input type="hidden" name="item_name" value="Alice's Weekly Digest">
<input type="hidden" name="item_number" value="DIG Weekly">
<!-- Set the terms of the regular subscription. -->
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="a3" value="5.00">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
<!-- Set recurring payments until canceled. -->
<input type="hidden" name="src" value="1">
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">
<input type="hidden" name="no_shipping" value="1">
<!-- Display the payment button. -->
<input type="image" name="submit"
src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/btn_subscribe_113x26.png"
alt="Subscribe">
it seems like it's logging me in to view my account instead of providing the options to pay :/
I remember this working in the past... Anyone had this issue before?
Thanks!
Related
I want to charge $47/month for the first month. Then only $37 for every additional month. Essentially, I want to discount the recurring payments if they stay with me.
How can I do this in PayPal buttons?
<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="your-email-address#yourdomain.com">
<input type="hidden" name="item_name" value="Subscription description here">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="a1" value="47.00"> <!-- Set this to the price you want to charge them upfront -->
<input type="hidden" name="p1" value="1"> <!-- Set the length of the trial to 1 interval (t1 will define the interval) -->
<input type="hidden" name="t1" value="M"> <!-- Set the interval to months -- trial is now one month in length -->
<input type="hidden" name="a3" value="37.00"> <!-- Amount to charge each month -->
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M"> <!-- Payments are one month apart -->
<input type="hidden" name="src" value="1"> <!-- Payments don't automatically stop -->
<input type="image" alt="PayPal - The safer, easier way to pay online!" src="https://www.paypal.com/en_US/i/btn/btn_subscribe_LG.gif">
</form>
PayPal subscription for sandbox not working.
Below is my code
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<!-- Identify the subscription. -->
<input type="hidden" name="item_name" value="Alice's Weekly Digest">
<input type="hidden" name="item_number" value="DIG Weekly">
<!-- Set the terms of the regular subscription. -->
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="a3" value="5.00">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="D">
<input type="hidden" name="notify_url" value="http://example.com/paypal/paypal.php?action=ipn">
<!-- Set recurring payments until canceled. -->
<input type="hidden" name="src" value="1">
When I am checking in my PayPal account it is creating subscription profile and display next payment due date but on that day PayPal did not deduct amount from my account and also not sending any IPN on notify url.
Am I missing something in above code?
I'm testing PayPal Standard using PayPal Sandbox.
When I pay, PayPal creates a new subscription profile and charges me the first money. Everything is correct.
It's a $20 daily billing cycle, so the next day, it should charge me $20 at the same hour. Instead, it does nothing.
Today it's November 21th and in the PayPal account the subscription panel still says "next payment: November 20th". I have $9999 on Merchant and Client account too.
Should I edit my form code?
Here is the button code:
<form name="_xclick" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="info#myemail.com">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="custom" value="67;2;33789261736f93677856cfe698a9c9ca">
<input type="hidden" name="item_name" value="MENSILE (7b3e99ef1fb567b0151b1cbd8ec24627)">
<input type="hidden" name="max_text" value="Fino a 35 feeds differenti|Twitter, Linkedin e Facebook|Aggiornamenti software|Rinnovo automatico mensile|Supporto Email">
<input type="hidden" name="item_number" value="00001">
<input type="hidden" name="a3" value="20.00">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="D">
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="page_style" value="SOCIAL">
<input type="hidden" name="notify_url" value="http://www.mywebsite.com/members/site/ipn">
<input type="hidden" name="return" value="http://www.mywebsite.com/members/user/site/pricing/success?67;2;33789261736f93677856cfe698a9c9ca">
<input type="hidden" name="cancel_return" value="http://www.mywebsite.com/members/user/site/pricing">
<input type="image" style="width:200px;" class="aligncenter size-full wp-image-635" src="/members/themes/classic/images/subscriptions/buy2.png" border="0" name="submit">
</form>
this is my 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="ram#gmail.com">
<!-- Specify a Subscribe button. -->
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<!-- Identify the subscription. -->
<input type="hidden" name="item_name" value="Alice's Weekly Digest">
<input type="hidden" name="item_number" value="DIG Weekly">
<!-- Set the terms of the 1st trial period. -->
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="a1" value="0">
<input type="hidden" name="p1" value="7">
<input type="hidden" name="t1" value="D">
<!-- Set the terms of the 2nd trial period. -->
<input type="hidden" name="a2" value="5.00">
<input type="hidden" name="p2" value="3">
<input type="hidden" name="t2" value="W">
<!-- Set the terms of the regular subscription. -->
<input type="hidden" name="a3" value="49.99">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="Y">
<!-- Set recurring payments until canceled. -->
<input type="hidden" name="src" value="1">
<!-- Display the payment button. -->
<input type="image" name="submit" border="0"
src="https://www.paypalobjects.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.paypalobjects.com/en_US/i/scr/pixel.gif" >
it have description option is item name variables but i want extra field in description..?
example: i use license type:1yr and perproduct: $10 * 12 month = $100..?
how to add this extra fields..?
Send a 'custom' field. Whatever you send in it will be returned as 'custom' in the IPN.
I have developed a shopping cart and now I am stuck with paypal shopping cart form. I am trying to send multiple items with one single shipping, handling and tax fees. I have created following form but paypal gives me error "Your shopping cart is empty."
Here is my code
<form name="paypal" action="https://www.paypal.com/cgi-bin/webscr" ethod="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="rm" value="2" />
<input type="hidden" name="charset" value="utf-8" />
<input type="hidden" name="business" value="xxxx#xxxxx.com">
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="tax_cart" value="5">
<input type="hidden" name="handling_cart" value="30">
<input type="hidden" name="shipping" value="20">
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="item_name_1" value="Product 1">
<input type="hidden" name="item_number_1" value="1">
<input type="hidden" name="item_amount_1" value="60">
<input type="hidden" name="quantity_1" value="1">
<input type="hidden" name="item_name_2" value="Product 2">
<input type="hidden" name="item_number_2" value="4">
<input type="hidden" name="item_amount_2" value="10">
<input type="hidden" name="quantity_2" value="1">
<input type="submit" name="submit" value="Pay with Paypal" />
</form>
The name provided for the amount is incorrect. Instead of
<input type="hidden" name="item_amount_2" value="10">
use
<input type="hidden" name="amount_2" value="10">
The variable "handling_cart" should work. It wouldn't work if you have your account set up not to allow transaction based shipping to override your profile shipping. Double checking your shipping profile in your PayPal account and make sure you have it set to allow transaction based shipping to override your profile.