Skip to content

Commit

Permalink
Merge pull request #879 from laravel/update-stripe-js
Browse files Browse the repository at this point in the history
[10.x] Update payment page with new JS method
  • Loading branch information
taylorotwell authored Feb 27, 2020
2 parents 2cbd836 + 68926d9 commit ec8b7fa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions resources/views/payment.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,10 @@ class="inline-block w-full px-4 py-3 bg-gray-200 hover:bg-gray-300 text-center t
this.successMessage = '';
this.errorMessage = '';
stripe.handleCardPayment(
'{{ $payment->clientSecret() }}', this.cardElement, {
payment_method_data: {
stripe.confirmCardPayment(
'{{ $payment->clientSecret() }}', {
payment_method: {
card: this.cardElement,
billing_details: { name: this.name }
}
}
Expand Down

0 comments on commit ec8b7fa

Please sign in to comment.