Skip to content

Commit

Permalink
fixed automaticAsync parsing error (#1903)
Browse files Browse the repository at this point in the history
  • Loading branch information
janakankathir authored Sep 25, 2024
1 parent 0b4469a commit b1fe711
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/stripe_web/lib/src/parser/payment_intent.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ extension PaymentIntentExtension on js.PaymentIntent {
latestCharge: latestCharge,
//paymentMethodId: payment_method,
captureMethod: CaptureMethodExtension.parse(captureMethod.name),
confirmationMethod:
ConfirmationMethodExtension.parse(confirmationMethod.name),
confirmationMethod: ConfirmationMethodExtension.parse(confirmationMethod.name),
//
description: description,
// receiptEmail: receipt_email,
Expand Down Expand Up @@ -75,6 +74,7 @@ extension CaptureMethodExtension on CaptureMethod {
case 'automatic':
return CaptureMethod.Automatic;
case 'AutomaticAsync':
case 'automaticAsync':
case 'automatic_async':
return CaptureMethod.AutomaticAsync;
case 'Manual':
Expand Down

0 comments on commit b1fe711

Please sign in to comment.