Skip to content

Instantly share code, notes, and snippets.

@tuanphpvn
Last active August 3, 2016 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuanphpvn/0c4fbfbbd264f3b4fe29 to your computer and use it in GitHub Desktop.
Save tuanphpvn/0c4fbfbbd264f3b4fe29 to your computer and use it in GitHub Desktop.
Paypal submit form #Paypal, #Magento, #Example
<html><body>You will be redirected to the PayPal website in a few seconds.<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" id="paypal_standard_checkout" name="paypal_standard_checkout" method="POST"><div><input name="form_key" type="hidden" value="m4Ux3YIWUZc3biqa" /></div><input id="business" name="business" value="tuan.nguyen-meerchant@bluecomgroup.com" type="hidden"/>
<input id="invoice" name="invoice" value="145000024" type="hidden"/>
<input id="currency_code" name="currency_code" value="USD" type="hidden"/>
<input id="paymentaction" name="paymentaction" value="sale" type="hidden"/>
<input id="return" name="return" value="http://rsmagento_1_14_01.app/paypal/standard/success/" type="hidden"/>
<input id="cancel_return" name="cancel_return" value="http://rsmagento_1_14_01.app/paypal/standard/cancel/" type="hidden"/>
<input id="notify_url" name="notify_url" value="http://rsmagento_1_14_01.app/paypal/ipn/" type="hidden"/>
<input id="bn" name="bn" value="Magento_Cart_Enterprise" type="hidden"/>
<input id="item_name" name="item_name" value="Madison Island" type="hidden"/>
<input id="lc" name="lc" value="en_US" type="hidden"/>
<input id="charset" name="charset" value="utf-8" type="hidden"/>
<input id="amount" name="amount" value="395.00" type="hidden"/>
<input id="tax" name="tax" value="0.00" type="hidden"/>
<input id="shipping" name="shipping" value="5.00" type="hidden"/>
<input id="discount_amount" name="discount_amount" value="0.00" type="hidden"/>
<input id="item_number_1" name="item_number_1" value="aws000" type="hidden"/>
<input id="item_name_1" name="item_name_1" value="Barclay d'Orsay pump, Nude" type="hidden"/>
<input id="quantity_1" name="quantity_1" value="1" type="hidden"/>
<input id="amount_1" name="amount_1" value="390.00" type="hidden"/>
<input id="item_number_2" name="item_number_2" value="Flat Rate - Fixed" type="hidden"/>
<input id="item_name_2" name="item_name_2" value="Shipping" type="hidden"/>
<input id="quantity_2" name="quantity_2" value="1" type="hidden"/>
<input id="amount_2" name="amount_2" value="5.00" type="hidden"/>
<input id="cmd" name="cmd" value="_cart" type="hidden"/>
<input id="upload" name="upload" value="1" type="hidden"/>
<input id="tax_cart" name="tax_cart" value="0.00" type="hidden"/>
<input id="discount_amount_cart" name="discount_amount_cart" value="0.00" type="hidden"/>
<input id="city" name="city" value="<city here>" type="hidden"/>
<input id="country" name="country" value="US" type="hidden"/>
<input id="email" name="email" value="tuanphpvn@gmail.com" type="hidden"/>
<input id="first_name" name="first_name" value="tuan" type="hidden"/>
<input id="last_name" name="last_name" value="nguyen" type="hidden"/>
<input id="zip" name="zip" value="70000" type="hidden"/>
<input id="state" name="state" value="GA" type="hidden"/>
<input id="address1" name="address1" value="<address here>" type="hidden"/>
<input id="address2" name="address2" value="" type="hidden"/>
<input id="address_override" name="address_override" value="1" type="hidden"/>
<span class="field-row">
<input id="submit_to_paypal_button_aea07320d5664a00a607d51241407e8c" name="" value="Click here if you are not redirected within 10 seconds..." type="submit" class=" submit"/>
</span>
</form><script type="text/javascript">document.getElementById("paypal_standard_checkout").submit();</script></body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment