Skip to content

Instantly share code, notes, and snippets.

@dbrent-amazon
Last active October 2, 2015 18:42
Show Gist options
  • Save dbrent-amazon/f99a390b18cc7e8fd29f to your computer and use it in GitHub Desktop.
Save dbrent-amazon/f99a390b18cc7e8fd29f to your computer and use it in GitHub Desktop.
Authorize
from pay_with_amazon.client import PayWithAmazonClient
client = PayWithAmazonClient(
mws_access_key='YOUR_ACCESS_KEY',
mws_secret_key='YOUR_SECRET_KEY',
merchant_id='YOUR_MERCHANT_ID',
region='na',
currency_code='USD')
response = client.authorize(
amazon_order_reference_id='AMAZON_ORDER_REFERENCE_ID',
authorization_reference_id='MY_UNIQUE_AUTHORIZATION_ID',
amount='1.00',
seller_authorization_note='Authorization note.'
capture_now=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment