I have a standard Paypal button like this:
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="info#mywebsite.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_1" value="My item Name 1">
<input type="hidden" name="amount_1" value="1000">
<input type="hidden" name="quantity_1" value="1">
<input type="hidden" name="item_name_2" value="My item Name 2">
<input type="hidden" name="amount_2" value="20">
<input type="hidden" name="quantity_2" value="1">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="notify_url" value="http://www.mywebsite.com/ipn-settings">
<input type="hidden" name="return" value="http://www.mywebsite.com/DEV/grazie/">
<input type="hidden" name="custom" value="24">
<!-- Display the payment button. -->
<input type="image" src="https://www.paypalobjects.com/it_IT/IT/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal รจ il metodo rapido e sicuro per pagare e farsi pagare online.">
<img alt="" border="0" src="https://www.paypalobjects.com/it_IT/i/scr/pixel.gif" width="1" height="1">
</form>
On click it redirects me to the PayPal page but the description and the price field are empty. Only the quantity is set to 1 and is readonly. Is there something wrong with this button?
Thanks in advance for your help.
I had to change the cmd value to "_cart" and add the hidden input "upload" with value = 1
Now it works fine!
Related
My paypal payment completed successfully but after payment,I don't get transaction detail like transaction id, currency, price, item,receipt no etc...
before 15 days its working properly. but now its not working.
<form target="paypal" 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="kin#kinskards.com">
<!-- Specify a PayPal Shopping Cart Add to Cart button. -->
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name" value="Birthday - Cake and
Candle">
<input type="hidden" name="amount" value="3.95">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="cancel_return"
value="http://localhost/PayPalDemo/PayPalDemoCancel.php">
<input type="hidden" name="return"
value="http://localhost/PayPalDemo/PayPalDemo/Succes.php">
<!-- Display the payment button. -->
<input type="image" name="submit"
src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/btn_addtocart_120x26.png"
alt="Add to Cart">
<img alt="" width="1" height="1"
src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif">
</form>
You must pass notify_url parameter like cancel_return.
<input type="hidden" name="notify_url" value="http://localhost/PayPalDemo/PayPalDemoPayment.php" />
Also you must set this URL in sandbox account in IPN section. Refer this https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNSimulator/
Good morning!
I have an issue with my PayPal payment.
There is my PayPal form:
<form id="upsell_form_paypal" name="_xclick" action="https://www.paypal.com/it/cgi-bin/webscr" method="post">
<input type="hidden" name="business" value="admin#test.com">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="return" value="https://test.com/thank-you.php?type=upsell&payment=paypal">
<input type="hidden" id="upsell_notify_url" name="notify_url" value="https://test.com/payment.php?type=upsell">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="item_name" id="item_name" value="Upsell-1">
<input type="hidden" name="amount" id="paypal_amount" value="0.01"><!-- PRICE -->
<input type="hidden" name="custom" id="paypal_custom" value="170907265"><!-- DEAL ID-->
<input type="hidden" name="payment_type" id="paypal_type_1234565" value="upsell"><!-- DEAL ID-->
<input type="image" class="image" style="margin-top:0" src="https://www.test.com/wp-content/uploads/2016/08/pagadesso.gif" border="0" name="submit" alt="Pay via PayPal">
<img alt="" border="0" src="https://www.paypalobjects.com/it_IT/i/scr/pixel.gif" width="1" height="1">
This array I get after payment. In my notify_url file, I can get all variable values except item_name. item_name is empty and I can't get it value.
What could it be? On Friday item_name working fine and I got its value, but from yesterday I can't get it anymore...
Here is my code. I need to add some extra variables example: license-type:Basic
<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="business#email.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 Monthly Digest">
<input type="hidden" name="item_number" value="DIG Weekly">
<!-- Set the terms of the recurring payments. -->
<input type="hidden" name="a3" value="69.95">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
<!-- Set recurring payments to stop after 6 billing cycles. -->
<input type="hidden" name="src" value="1">
<input type="hidden" name="srt" value="6">
<!-- 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" >
How to add extra field in this methods ? or I need next line in description tab.!!
This is an example
https://www.paypal.com/cgi-bin/webscr?cmd=_pdn_xclick_options_help_outside
Add this:
<input type="hidden" name="custom_input" value="Custom value" />
Please add this:
<input type="hidden" name="custom" value="your custom value">
this is an answer..!!!
<input type="hidden" name="item_name" value="INDIANJOBTIPS">
<input type="hidden" name="on0" value="Duration">
<input type="hidden" name="os0 " value="1 year">
<input type="hidden" name="on1" value="No of users">
<input type="hidden" name="os1 " value="1">
I am using PayPal Payments Standard with my own button code as follows. This works exactly as I would like except for one thing. In the PayPal shopping cart and on the invoicing, the display shows "Shipping and Handling". In California, I have to pay taxes on Handling fees. Can I make the display show "Shipping" only without the "Handling?
I tried to pass both a "handling" and a "handling-cart" input attribute with both empty and zero as values but that had no impact.
<form target="paypal" action="<?=PAYPAL_URL?>" method="post">
<input type="hidden" name="business" value="<?=PAYPAL_BUSINESS?>">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">
<input type="hidden" name="amount" value="12.50">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="shopping_url" value="<?=$url?>">
<input type="hidden" name="shipping" value="5.00" />
<input type="hidden" name="shipping2" value="5.00">
<input type="hidden" name="item_name" value="stain">
<input type="image" src="images/add_to_cart.png" border="0" name="submit" alt="Add to Cart">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
Paypal have CUSTOM param in its API... I want multi-dimension array pass in CUSTOM field...
<form id="paypal_form" action="https://sandbox.paypal.com/cgi-bin/webscr" method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="user#paypal.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-12 oz. Bottle">
<input type="hidden" name="amount" value="10">
<input type="hidden" name="currency_code" value="USD">
<!-- Prompt buyers to enter their desired quantities. -->
<input type="hidden" name="quantity" value="1">
<input type="hidden" name="notify_url" value="http://www.myurl.com" />
<!-- 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" />
<input type="hidden" value="1" name="custom[]" />
<input type="hidden" value="11" name="custom[]" />
</form>
its working fine with single custom field but multi custom field is not working...
you should pass all values like 1,2,3,4,5,6....
return url you will get custom string and convert it to array of string