Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not possible to use Idempotency Key in checkout API / PaymentLinks #742

Closed
floddy-newport opened this issue Feb 12, 2025 · 1 comment
Closed

Comments

@floddy-newport
Copy link

Describe the bug
The idempotency key is not set in the request header, because Adyen\Service\AbstractResource::requestHttp does not pass the requestOptions param.

To Reproduce

  1. Install library.
  2. Use Adyen\Service\ResourceModel\Checkout\PaymentLinks::create with the $requestOptions set to ['idempotency' => ].
  3. Uxing xdebug or similar, see how the $requestOptions param is lost along the way and not sent in the header.

Expected behavior
The request options should be passed to Adyen\HttpClient\CurlClient::requestHttp and the idempotency key should be sent in the header of the request.

@floddy-newport
Copy link
Author

Upon further work with implementation I realised that this implementation is deprecated and to use Adyen\Service\Checkout\PaymentLinksApi::paymentLinks instead.

@floddy-newport floddy-newport closed this as not planned Won't fix, can't repro, duplicate, stale Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant