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

Rapyd: Enable idempotent request support #4980

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

javierpedrozaing
Copy link
Collaborator

Description

SER-1023

This commit adds an idempotency attribute to headers in order to support idempotent requests, Rapyd manage it, taking into account the idempotency value and the amount to determine if a transaction is idempotent or no.

Unit test

Finished in 0.504217 seconds.

42 tests, 196 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed

83.30 tests/s, 388.72 assertions/s

Remote test

49 tests, 142 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 97.9592% passed

Rubocop

784 files inspected, no offenses detected

Copy link
Contributor

@sinourain sinourain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

lib/active_merchant/billing/gateways/rapyd.rb Outdated Show resolved Hide resolved
lib/active_merchant/billing/gateways/rapyd.rb Outdated Show resolved Hide resolved
@javierpedrozaing javierpedrozaing force-pushed the SER-1023_rapyd_add_idempotency branch 2 times, most recently from fa9df13 to a5478fa Compare December 11, 2023 15:14
@javierpedrozaing javierpedrozaing marked this pull request as ready for review December 11, 2023 15:19
@javierpedrozaing
Copy link
Collaborator Author

Hi @naashton I will update the idempotency key name according a suggestion from Cristian on the CORE PR. I let you know when it is ready

@javierpedrozaing
Copy link
Collaborator Author

Hi @naashton I will update the idempotency key name according a suggestion from Cristian on the CORE PR. I let you know when it is ready

Update ready. thanks

Copy link
Contributor

@naashton naashton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

Description
-------------------------
[SER-1023](https://spreedly.atlassian.net/browse/SER-1023)

This commit adds an idempotency attribute to headers in order
to support idempotent requests, Rapyd manage it, taking into account
the idempotency value and the amount to determine if a transaction
is idempotent or no.

Unit test
-------------------------
Finished in 0.504217 seconds.

42 tests, 196 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

83.30 tests/s, 388.72 assertions/s

Remote test
-------------------------
49 tests, 142 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
97.9592% passed

Rubocop
-------------------------
784 files inspected, no offenses detected
@naashton naashton force-pushed the SER-1023_rapyd_add_idempotency branch from 3504aa8 to de033be Compare December 18, 2023 18:56
@naashton naashton merged commit a318d41 into master Dec 18, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants