will a person that pays with their credit card (not associated with a PayPal account) go to the return URL below...if not where do they go?
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="something">
<input type="hidden" name="lc" value="US" />
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="invoice" value="900000000">
<input type="hidden" name="item_name_1" value="mem" />
<input type="hidden" name="item_number_1" value="1">
<input type="hidden" name="amount_1" value="0">
<input type="hidden" name="item_name_2" value="CP" />
<input type="hidden" name="item_number_2" value="2">
<input type="hidden" name="amount_2" value="10"/>
<input type="hidden" name="item_name_3" value="AD" />
<input type="hidden" name="item_number_3" value="3">
<input type="hidden" name="amount_3" value="0">
<input type="hidden" name="return" value="https://www.something.com/ppd.aspx?TransID=<%=request.querystring("IDUNNO")%>
<input type="hidden" name="cancel_return" value="https://www.something.com/ppc.aspx">
<input type="hidden" name="modify" value="0">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="undefined_quantity" value="1">
<input type="image" src="images/btn_paynow.gif" border="0" name="submit" alt="use PayPal!">
</form>
Related
<form action="https://www.paypal.com/us/cgi-bin/webscr" method="POST">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="askerov.ibraqim#mail.ru">
<input type="hidden" name="item_name_1" value="Item Name">
<input type="hidden" name="item_number_1" value="213">
<input type="hidden" name="quantity_1" value="1">
<input type="hidden" name="amount_1" value="21.00">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="cancel_return" value="http://localhost/cart">
<input type="hidden" name="notify_url" value="http://localhost/cart">
<input type="hidden" name="return" value="http://localhost/cart">
<button class="checkout black-btn" id="checkout" name="submit" type="submit">Checkout</button>
Why I get error 'Things don't appear to be working at the moment. Please try again later.' on submit form Paypal?
I can add an item just fine with this form:
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="item_name" value="Item 1">
<input type="hidden" name="amount" value="20">
<input type="hidden" name="business" value="myemail#hidden.com">
<input type="submit" name="submit">
However, I'd like to add multiple items. I've been struggling and reading all over. This is not working:
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="item_name_1" value="Item 1">
<input type="hidden" name="amount_1" value="20">
<input type="hidden" name="item_name_2" value="Item 2">
<input type="hidden" name="amount_2" value="25">
<input type="hidden" name="business" value="myemail#hidden.com">
<input type="submit" name="submit">
Source: https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/
Finally found the problem. It's not mentionned anywhere but you need this following line;
<input type="hidden" name="upload" value="1">
Hours wasted. T.T
On the paypal subscribe button there are only 4 options for payments, daily, weekly, monthly and annually. Is there no way I could implement a payment system for every 3 months or 6 months?
You must use a custom html form, and set manually parameters "p3" and "t3". Following this example:
<form method="post" name="formName" id="submitThisForm" action="https://www.paypal.com/cgi-bin/webscr" >
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="your#papypamail.com" />
<input type="hidden" name="item_name" value="Your Membership" />
<input type="hidden" name="a3" value="0.01">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">
<input type="hidden" name="item_number" value="2" />
<input type="hidden" name="custom" value="SECURITYCODE" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="quantity" value="1" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="return" value="page going after payment" />
<input type="hidden" name="cancel_return" value="" />
<input type="hidden" name="cbt" value="ITEM DESCRIPTION" />
<input type="hidden" name="rm" value="2" />
<input type="hidden" name="notify_url" value="your_listener_file.php" />
The allowable range for parameter "p3" is 1 to 24.
In your case must set
<input type="hidden" name="p3" value="3">
AND
<input type="hidden" name="p3" value="6">
this is my code (form subscription):
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="enrique.sevilla.11#gmail.com ">
<input type="hidden" name="custom" value="<? echo $user; ?>">
<input type="hidden" name="lc" value="ES">
<input type="hidden" name="item_name" value="Pago mensual Monetiza.me">
<input type="hidden" name="item_number" value="1">
<input type="hidden" name="amount" value="39">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="button_subtype" value="Servicios">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="return" value="<?php echo $urlPredeterminada; ?>pago/ok">
<input type="hidden" name="cancel_return" value="<?php echo $urlPredeterminada; ?>pago/ko">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="image_url" value="http://www.monetiza.me/images/logo-monetiza.png">
<input type="hidden" name="notify_url" value="<?php echo $urlPredeterminada; ?>ipn.php">
<input type="hidden" name="suscripcion" value="si">
<input type="hidden" name="a3" value="39">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
This form records the payment and subscription, but after a few minutes the subscription is canceled and get an email confirming that has been canceled. How do I prevent self unsubscribe?
Sorry for my English, i am a peruvian developer :(
You need to include src=1 to indicate that the payments will recur on a monthly basis:
<input type="hidden" name="src" value="1">
I'm using the following form, but the customer is charged immediately and doesn't get the 5 day trial. I have no idea why. I tried this with the sandbox and on the "regular" paypal site. What do I miss here?
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="business" value="xxx#xxx.com" id="id_business"/>
<input type="hidden" name="item_name" value="xxx" id="id_item_name"/>
<input type="hidden" name="item_number" value="1" id="id_item_number"/>
<input type="hidden" name="a1" value="0" id="id_a1" />
<input type="hidden" name="p1" value="5" id="id_p1" />
<input type="hidden" name="t1" value="D" id="id_t1" />
<input type="hidden" name="a3" value="14.95" id="id_a3" />
<input type="hidden" name="p3" value="1" id="id_p3" />
<input type="hidden" name="t3" value="M" id="id_t3" />
<input type="hidden" name="src" value="1" id="id_src" />
<input type="hidden" name="sra" value="1" id="id_sra" />
<input type="hidden" name="no_note"value="1" id="id_no_note"/>
<input type="hidden" name="modify" value="1" id="id_modify" />
<input type="hidden" name="lc" value="US" id="id_lc" />
<input type="hidden" name="notify_url" value="http://xxx/payment/paypal-ipn/" id="id_notify_url" />
<input type="hidden" name="cancel_return" value="http://xxx/payment/canceled/" id="id_cancel_return" />
<input type="hidden" name="return" value="http://xxx/payment/thank_you/" id="id_return_url" />
<input type="hidden" name="custom" value="user=joe;db=1" id="id_custom" />
<input type="hidden" name="cmd" value="_xclick-subscriptions" id="id_cmd" />
<input type="hidden" name="charset" value="utf-8" id="id_charset" />
<input type="hidden" name="currency_code" value="EUR" id="id_currency_code" />
<input type="hidden" name="no_shipping" value="1" id="id_no_shipping" />
<input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="Buy it Now" /></form>
Looks like you need to set modify to 0.
At least now it is working for me again.