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

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

Built distribution (wheel)

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

Total release size: 8.5 kB

Release files / amazon_pay_v2-0.1.1.tar.gz

Download URL amazon_pay_v2-0.1.1.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b3934a7c0c8abcdcc4e54707eb4367a03d930a1765ff30ad19cdbf310ffd52c7
BLAKE2b-256 checksum
How to use checksums
d37c9e959ba19accc4ef5f377725a72653291e0d1a84c87b6b128c43ee098d2f
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.1-py3-none-any.whl

Download URL amazon_pay_v2-0.1.1-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ca5a7119223b6f85f8a100807a983a4d07d50b14c78c5f232810dc362c1fa83
BLAKE2b-256 checksum
How to use checksums
2718ad55cdd816eaa566a1507988ca12d3f36e3e1cc58659ba07372e4f9974c7
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.1

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