1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-18 07:52:23 +01:00

[bug] unable to process stripe payments with 3DS authentication

>
> Backported from v4.7.13:
> 9b90ff0482
This commit is contained in:
Sylvain 2021-06-11 16:14:30 +02:00
parent 324d7b69f7
commit 0c72cde67b
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,7 @@
# Changelog Fab-manager
- Fix a bug: unable to process stripe payments with 3DS authentication
## v5.0.2 2021 June 11
- Ability to upgrade to a specific version with the script
@ -53,6 +55,10 @@
- [TODO DEPLOY] `rails fablab:maintenance:rebuild_stylesheet`
- [TODO DEPLOY] `\curl -sSL https://raw.githubusercontent.com/sleede/fab-manager/master/scripts/rename-adminsys.sh | bash`
## v4.7.13 2020 June 11
- Fix a bug: unable to process stripe payments with 3DS authentication
## v4.7.12 2021 June 09
- Fix a bug: unable to process stripe payments

View File

@ -34,7 +34,7 @@ class API::StripeController < API::PaymentsController
}, { api_key: Setting.get('stripe_secret_key') }
)
elsif params[:payment_intent_id].present?
intent = Stripe::PaymentIntent.confirm(params[:payment_intent_id], api_key: Setting.get('stripe_secret_key'))
intent = Stripe::PaymentIntent.confirm(params[:payment_intent_id], {}, { api_key: Setting.get('stripe_secret_key') })
end
rescue Stripe::CardError => e
# Display error on client