Skip to content

Adyen Python API Library 8.0.0

Choose a tag to compare

@antolo-arch antolo-arch released this 24 Mar 12:14
· 218 commits to main since this release
42efeba

⚠ Breaking Changes

The new major version of the library changes the structure of the services provided by the library.

The API service classes are generated from the OpenAPI specification and therefore consistently aligned
with the contract (OpenAPI file) and the documentation (OpenAPI Explorer).

The checkout file has been replaced by different services, one for each functionality of the Checkout API:
checkout.payments_api
checkout.modifications_api
checkout.orders_api
checkout.payment_links_api
checkout.recurring_api

checkout.payments(request) 
checkout.sessions(request)

becomes now

checkout.payments_api.payments(request) 
checkout.payments_api.sessions(request) 

The MerchantAccount must now be provided as part of the payload (instead of being set in adyen.payment.client.merchant_account)

request = {
      "amount": {
        "currency": "USD",
        "value": 1000 # value in minor units
      },
      "reference": "Your order number",
      "paymentMethod": {
        "type": "visa",
        "encryptedCardNumber": "test_4111111111111111",
        "encryptedExpiryMonth": "test_03",
        "encryptedExpiryYear": "test_2030",
        "encryptedSecurityCode": "test_737"
      },
      "shopperReference": "YOUR_UNIQUE_SHOPPER_ID_IOfW3k9G2PvXFu2j",
      "returnUrl": "https://your-company.com/...",
      "merchantAccount": "YOUR_MERCHANT_ACCOUNT"
    }

What's Changed

New Contributors

Full Changelog: 7.1.2...8.0.0