Skip to content

Instantly share code, notes, and snippets.

View dbrent-amazon's full-sized avatar

Brent dbrent-amazon

  • Amazon
  • Seattle, WA
View GitHub Profile
@dbrent-amazon
dbrent-amazon / GetOrderReferenceDetails.py
Created October 2, 2015 18:29
GetOrderReferenceDetails
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.get_order_reference_details(
@dbrent-amazon
dbrent-amazon / SetOrderReferenceDetails.py
Created October 2, 2015 18:31
SetOrderReferenceDetails
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.set_order_reference_details(
@dbrent-amazon
dbrent-amazon / ConfirmOrderReference.py
Created October 2, 2015 18:33
ConfirmOrderReference
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.confirm_order_reference(
@dbrent-amazon
dbrent-amazon / Authorize.py
Last active October 2, 2015 18:42
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(
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')
# authorization ID returned from 'Authorize' call.
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.refund(
@dbrent-amazon
dbrent-amazon / AuthorizeAsync.py
Created October 2, 2015 18:43
AuthorizeAsync
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(
@dbrent-amazon
dbrent-amazon / AuthorizeSync.py
Created October 2, 2015 18:45
AuthorizeSync
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(
@dbrent-amazon
dbrent-amazon / CloseOrderReference.py
Created October 2, 2015 18:46
CloseOrderReference
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.close_order_reference(
@dbrent-amazon
dbrent-amazon / CancelOrderReference.py
Created October 2, 2015 18:48
CancelOrderReference
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.cancel_order_reference(