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.
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.