Skip to content

Client uses incorrect live endpoint URLs for payments #119

@sashakruglov

Description

@sashakruglov

Describe the bug
According to Adyen documentation here live endpoint URLs for payments should be of this format:

https://[random]-[company name]-pal-live.adyenpayments.com/pal/servlet/Payment/[version]/[method]

Checking "API URLs and Responses" configuration in Adyen live account, I see that live endpoint URLs indeed follow this pattern.

However, the Adyen client produces the following URL:

https://pal-live.adyen.com/pal/servlet/Payment/v49/refund

To Reproduce

from Adyen import AdyenClient
AdyenClient._determine_api_url(platform='live', service='Payment', action='refund')
u'https://pal-live.adyen.com/pal/servlet/Payment/v49/refund'

Expected behavior
Adyen library uses live_endpoint_prefix parameter to correctly format payments live endpoint URLs.

Additional context
LIB_VERSION = "3.0.0"
LIB_NAME = "adyen-python-api-library"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions