Skip to content

Instantly share code, notes, and snippets.

@dbrent-amazon
Created October 2, 2015 18:40
Show Gist options
  • Save dbrent-amazon/cf98e3d1a3625c38ac2c to your computer and use it in GitHub Desktop.
Save dbrent-amazon/cf98e3d1a3625c38ac2c to your computer and use it in GitHub Desktop.
Refund
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(
amazon_capture_id='AMAZON_CAPTURE_ID',
refund_reference_id='REFUND_REFERENCE_ID',
refund_amount='1.00',
seller_refund_note='Test order.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment