]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#2057948: Add Idempotency-Key to prevent duplicate stripe requests
authorKen Cox <kenstir@gmail.com>
Mon, 18 Mar 2024 18:15:59 +0000 (14:15 -0400)
committerTerran McCanna <tmccanna@georgialibraries.org>
Tue, 26 Mar 2024 20:32:30 +0000 (16:32 -0400)
commit030b35051c9a30a367ba2c14e3b5d54a3b148f6d
tree92674da9784a7851da76501b9ae21dad269013dc
parent205ae168a84212690311ce8695a8da48eafd97cd
LP#2057948: Add Idempotency-Key to prevent duplicate stripe requests

* Create key from sorted list of transaction IDs passed through md5_hex.
* Do not include xact param for now, since I am not sure what it is;
  xact_misc is the list of transaction IDs selected in the payment form.
* Pass header through -ua_args option when constructing the Stripe obj,
  because the per-request method is not published yet to CPAN.

Tested with manual code on Ubuntu 22 LTS and Business::Stripe 0.07.

Release-note: Adds idempotency to Stripe to prevent duplicate payments

Signed-off-by: Ken Cox <kenstir@gmail.com>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm