Created
May 29, 2011 11:00
-
-
Save denmarkin/997651 to your computer and use it in GitHub Desktop.
Example of ActiveMerchant Express Checkout request construction
This file contains hidden or 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
amount = thing.build_payment.price_in_cents | |
response = EXPRESS_GATEWAY.setup_authorization(amount, | |
:ip => request.remote_ip, | |
:return_url => new_payment_url, | |
:cancel_return_url => new_order_url, | |
:no_shipping => true, | |
:items => [{:name => "#{thing.title}", :amount => amount}] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment