Skip to content

Commit

Permalink
Fix confirming payments on the payment page
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Oct 19, 2021
1 parent 5cfd715 commit 3c344cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/views/payment.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,10 @@ class="inline-block w-full px-4 py-3 bg-gray-100 hover:bg-gray-200 text-center t
if (this.paymentMethod.type === 'card') {
if (this.paymentIntent.status === 'requires_payment_method') {
data.payment_method.card = this.paymentElement;
} else if (this.paymentIntent.status === 'requires_action') {
} else if (
this.paymentIntent.status === 'requires_action' ||
this.paymentIntent.status === 'requires_confirmation'
) {
data.payment_method = this.paymentIntent.payment_method.id;
}
Expand Down

0 comments on commit 3c344cc

Please sign in to comment.