-
Notifications
You must be signed in to change notification settings - Fork 146
support RequestOptions for /payments/details in Checkout #287
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
support RequestOptions for /payments/details in Checkout #287
Conversation
Hi @dbaneman , Thanks for your PR. Thanks! |
Hi @martinsrenato , The use case is that we'd like to use the Let me know if I'm misunderstanding anything here. Thanks! Cheers, |
Hello @dbaneman, Thank you for the PR, Is it possible to add some unit tests related to your changes? kind regards, |
Hi @AlexandrosMor, I don't see any existing unit tests around RequestOptions. (I do see a few tests that mock out RequestOptions, but nothing that actually asserts that its values are used as expected.) So that might be a somewhat larger change, which might be more effort than it's worth, given that the proposed change is quite small? But if you're able to point me in the right direction on an existing test to modify or emulate, I can give it a shot. Thanks, |
Hi @dbaneman , Indeed, your user case is valid. Without the idempotency key, you will get an error ("request already processed or in progress") when retrying the Just be sure to use distinct keys for every distinct request, since the idempotency keys do not differentiate between the endpoints being called. For example, if a We will merge your PR and soon include it on our next release. Thanks for the contribution :) Renato |
No description provided.