Skip to main content

Amazon Pay V2 API

A simple implementation of the amazon pay api for python.

Usage

# environment = "sandbox"        
environment = "live"
api = AmazonPayAPIV2("/certs/amazon_pay/amazon-pay-private-key.cert", "SANDBOX-<your-sandbox-or-live-public-key>", region="eu", environment=environment)
payload = {
    "webCheckoutDetails": {"checkoutReviewReturnUrl": "https://amazon-pay-create-or-update-order", "checkoutMode": "ProcessOrder"},
    "storeId": "<your-store-id>",
    "deliverySpecifications": {"specialRestrictions": ["RestrictPOBoxes"], "addressRestrictions": {"type": "Allowed", "restrictions": {"DE": {}, "CH": {}}}},
    "paymentDetails": {
        "paymentIntent": "AuthorizeWithCapture",
        "chargeAmount": {"amount": 100, "currencyCode": "EUR"},
        "presentmentCurrency": "EUR",
    },
    "merchantMetadata": {"merchantStoreName": "my store"},
}
signature = api.generate_button_signature(payload)
# ...

Metadata

Release files for amazon-pay-v2 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for amazon-pay-v2 0.1.0
File Size Uploaded Provenance Actions
amazon_pay_v2-0.1.0.tar.gz 3.9 kB Without provenance Details for amazon_pay_v2-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for amazon-pay-v2 0.1.0
File Interpreter ABI Platform Actions
amazon_pay_v2-0.1.0-py3-none-any.whl Python 3 none any Details for amazon_pay_v2-0.1.0-py3-none-any.whl

Total release size: 8.5 kB

Release files / amazon_pay_v2-0.1.0.tar.gz

Download URL amazon_pay_v2-0.1.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d20e1e3a71aa74bb9072f736e46677e601a6e5a405a66fa2ced27e01eabd0de2
BLAKE2b-256 checksum
How to use checksums
55756a547484d297f3a07de462e7fc90c3f7005e78624bf1f898e2703f2fc5b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / amazon_pay_v2-0.1.0-py3-none-any.whl

Download URL amazon_pay_v2-0.1.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e42714ac0ec7470febb6b0720e86b221e8fd1027e958823d5e94b54fd8aef00
BLAKE2b-256 checksum
How to use checksums
bda0c85b0e364e8163eac1a2cdae6e4dfd27d8e8e39c37ed1fe90987f4ccfcae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Security for amazon-pay-v2 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page