From e10cff04d760fb3a74ee988403fc9bd02772f9bc Mon Sep 17 00:00:00 2001 From: Du Peng Date: Thu, 30 Nov 2023 11:37:03 +0100 Subject: [PATCH] (feat) set the number of new attempts available in case the payment is rejected to 1 for PayZen --- CHANGELOG.md | 1 + lib/pay_zen/charge.rb | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 491c1c30c..cac8893c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - fix a bug: user was not able to reserve at the same time of an event with pre-registration invalidated - fix a bug: avoids crash if invoicing_profile has no address associated to it - improvement: better text contrast on customizable colors. Good for accessibility. +- Improvement: set the number of new attempts available in case the payment is rejected to 1 for PayZen ## v6.3.4 2023 November 23 diff --git a/lib/pay_zen/charge.rb b/lib/pay_zen/charge.rb index 3981c0e2a..f18515ed7 100644 --- a/lib/pay_zen/charge.rb +++ b/lib/pay_zen/charge.rb @@ -30,7 +30,10 @@ class PayZen::Charge < PayZen::Client orderId: order_id, formAction: form_action, contrib: contrib, - customer: customer) + customer: customer, + transactionOptions: { + cardOptions: { retry: 0 } + }) end ##