Created
June 7, 2018 23:24
-
-
Save mfifth/57718f8d0ecb8c001b8eb2700d95d456 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form method="POST" action="https://payflowlink.paypal.com"> | |
<input type="hidden" name="TYPE" value="S"> | |
<input type="hidden" name="USER1" value="<%= payment_transaction.id %>"> | |
<input type="hidden" name="INVOICE" value="<%= payment_transaction.invoice_code %>"> | |
<input type="hidden" name="NAME" value="<%= payment_transaction.user %>"> | |
<input type="hidden" name="ADDRESS" value="<%="#{billing_address.address_line_1} #{billing_address.address_line_2}" %>"> | |
<input type="hidden" name="CITY" value="<%= billing_address.city %>"> | |
<input type="hidden" name="STATE" value="<%= billing_address.state %>"> | |
<input type="hidden" name="ZIP" value="<%= billing_address.postcode %>"> | |
<input type="hidden" name="COUNTRY" value="<%= billing_address.country %>"> | |
<input type="hidden" name="ERRORURL" value="<%= File.join(ENV['SYSTEM_URL'], return_url) %>"> | |
<input type="hidden" name="SILENTPOSTURL" value="<%= File.join(ENV['SYSTEM_URL'], return_url) %>"> | |
<input type="hidden" name="RETURNURL" value="<%= File.join(ENV['SYSTEM_URL'], return_url')%>"> | |
<input type="hidden" name="SECURETOKEN" value="<%= @paypal_token %>"> | |
<input type="hidden" name="SECURETOKENID" value="<%= @token %>"> | |
<input type="submit" value="Click here to pay $<%= payment_transaction.grand_total %> by credit card" id="credit_card_submit_button"> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment