paypal x-click-subscription mehtod use item variables - paypal

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.

Related

PayPal sandbox doesn't show payment options

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!

How to discount additional recurring payments?

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>

Upgrading issue "Amount can only be increased by 20% " in paypal

I have integrated the Paypal subscription option into my site.My problem is when i try to upgrade the subscription it shows an error in Paypal
Amount can only be increased by 20%
Subscription amount is $0.25 Upgrade amount is $0.59
How can i increase the percentage of the amount .
the code is following :
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="charset" value="utf-8">
<input type="hidden" name="business" value="freelancecoachpro#gmail.com">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="item_name" value="FreelanceCoachPro Total Connect">
<input type="hidden" name="item_number" value="7">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="a3" value="0.59">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M"> <!-- Set recurring payments until canceled. -->
<input type="hidden" name="custom" value="1388035301:63:7:b09c926d4df9a5f17221e56cbe688297:6">
<input type="hidden" name="return" value="https://www.freelancecoachpro.com/thank-you/">
<input type="hidden" name="cancel_return" value="https://www.freelancecoachpro.com/subscriptions-5/">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="notify_url" value="http://www.freelancecoachpro.com/paymentreturn/paypalexpress">
<input type="hidden" name="src" value="1">
<input type="hidden" name="modify" value="2"><!-- Display the payment button. -->
<input type="image" name="submit" border="0" src="https://www.freelancecoachpro.com/images/upgrade_button.png" 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>
Based on the note for AMT on this page, it looks like this is a PayPal restriction (I would assume Payments Standard would have the same restriction)
Note: For recurring payments with Express Checkout, the payment amount
can be increased by no more than 20% every 180 days (starting when the
profile is created).

PayPal amount value issue

<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="item_name" value="5 day package">
<input type="hidden" name="quantity" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="amount" value="2.00">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
I Have this code. When it takes me to PayPal page I get the item_name value
I get the quanity value,
But I dont get the amount I get 0.
Was reading paypal docs but didnt found anything usefull.
If any suggestions?
https://developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/buynow_buttons/
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="herschelgomez#xyzzyu.com">
<!-- Specify a Buy Now button. -->
<input type="hidden" name="cmd" value="_xclick">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name" value="Hot Sauce-12oz Bottle">
<input type="hidden" name="amount" value="5.95">
<input type="hidden" name="currency_code" value="USD">
<!-- Display the payment button. -->
<input type="image" name="submit" border="0"
src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_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" >
</form>

Paypal no-shipping variable not working

I'm having some trouble implementing PayPal into a website. I haven't used it in a while and a lot of things have changed since.
The problem I'm having is that i specified clearly that users should not be prompted for their shipping address, however, when the "no paypal account" option is selected, the shipping info is anyways asked.
I know I should ask PayPal, but here people are smarter and kinder. =)
code:
note the: <input type="hidden" name="no_shipping" value="1">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="ventas#ziced.com">
<!-- Specify a Buy Now button. -->
<input type="hidden" name="cmd" value="_xclick">
<!-- Variables agregadas -->
<input type="hidden" name="notify_url" value="notify.php">
<input type="hidden" name="return" value="return.php">
<input type="hidden" name="cancel_return" value="cancel_return.php">
<input type="hidden" name="page_style" value="primary">
<input type="hidden" name="lc" value="EN">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="no_shipping" value="1">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name" value="Ziced id:">
<input type="hidden" name="amount" value="10">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="quantity" value="1">
<!-- Display the payment button. -->
<input type="image" name="submit" border="0"
src="https://www.paypal.com/en_US/i/btn/btn_buynow_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>
no_shipping=1 applies to the shipping address. What you're looking at for the buyer on the 'guest checkout form' is the billing address. That's always going to be required.
Here's a little more information for others:
<input type="hidden" name="no_shipping" value="0"> - prompt for shipping address, but do not require one
<input type="hidden" name="no_shipping" value="1"> - do not prompt for shipping address
<input type="hidden" name="no_shipping" value="2"> - prompt for shipping address, and require one
See also: Paypal Address Handling Guide