tastyigniter / ti-ext-payregister

Payment system for TastyIgniter. Allows you to accept credit card payments using payment gateway supplied by this extension or others.
MIT License
8 stars 21 forks source link

Stripe idempotency #12

Closed ryanmitchell closed 4 years ago

ryanmitchell commented 4 years ago

Ref: https://github.com/tastyigniter/ti-ext-payregister/pull/7

Re-opening this as it seems like the current approach is incorrect and we are seeing duplicate transactions.

I've debugged throughly and the idempotency header is not being set with the current approach. When I revert back to using the setIdempotencyKeyHeader() on the request it works fine. I'll push the changes required here.