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.0.12

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.0.12
File Size Uploaded Provenance Actions
amazon_pay_v2-0.0.12.tar.gz 3.9 kB Without provenance Details for amazon_pay_v2-0.0.12.tar.gz

Built distribution (wheel)

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

Total release size: 8.5 kB

Release files / amazon_pay_v2-0.0.12.tar.gz

Download URL amazon_pay_v2-0.0.12.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
813cf51ae1d2f903762c3a6a178207c06844915d61a99c840e293d4215e9b511
BLAKE2b-256 checksum
How to use checksums
d84b2c54db64e53d45c1969a194da49b8dbaad9ac23cfaf7dc64ffbce5726942
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.0.12-py3-none-any.whl

Download URL amazon_pay_v2-0.0.12-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ffa3dcba9e6acb9acc0c1e509d4916ebdfa2e3eb6e2b563aa90a1cbb2b7bcc7
BLAKE2b-256 checksum
How to use checksums
ebaac8645731fdfb229a9b0cef51e37f7c286117045b8946b004f4b384e1de01
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.0.12

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