You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I initialize the paymentSheet, but when it comes to display the payment form to add card data it doesn't work, it starts loading and stays on the same page, the errors given are in the Stacktrace.
I've contacted Stripe to validate if it was something related with the keys, but it's all good, the request reaches Stripe without any problem, the only situation is that is Incomplete (user doesn't add card details, because that form is not displayed).
This discussion was converted from issue #1550 on December 14, 2023 12:32.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Describe the bug
I initialize the paymentSheet, but when it comes to display the payment form to add card data it doesn't work, it starts loading and stays on the same page, the errors given are in the Stacktrace.
I've contacted Stripe to validate if it was something related with the keys, but it's all good, the request reaches Stripe without any problem, the only situation is that is Incomplete (user doesn't add card details, because that form is not displayed).
https://imgur.com/a/nhXvwbm
Stacktrace:
W/ActivityResultRegistry(21660): Dropping pending result for request fragment_d011f606-31f2-4468-b043-186e0d616040_rq#0: ActivityResult{resultCode=RESULT_OK, data=Intent { (has extras) }}
I/FIAM.Display(21660): Unbinding from activity: io.flutter.embedding.android.FlutterFragmentActivity
I/FIAM.Headless(21660): Removing display event component
I/FIAM.Display(21660): Binding to activity: com.stripe.android.paymentsheet.PaymentSheetActivity
I/FIAM.Headless(21660): Setting display event component
D/DecorView(21660): [DecorView][notifyViewAdded] token = android.view.ViewRootImpl$WEx@a2ad6de
I/TouchFilterInputStageHelper(21660): [needTouchEventFilter] Displayid : 0
D/HandGripFilter(21660): getdisplaysize, x : 1080 y : 2460
I/FIAM.Display(21660): Unbinding from activity: com.stripe.android.paymentsheet.PaymentSheetActivity
I/FIAM.Headless(21660): Removing display event component
I/FIAM.Display(21660): Binding to activity: io.flutter.embedding.android.FlutterFragmentActivity
I/FIAM.Headless(21660): Setting display event component
E/flutter (21660): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: StripeException(error: LocalizedErrorMessage(code: FailureCode.Failed, localizedMessage: Invalid Payment Intent client secret: sk_test_---, message: Invalid Payment Intent client secret: sk_test_---, stripeErrorCode: null, declineCode: null, type: null))
E/flutter (21660): #0 MethodChannelStripe._parsePaymentSheetResult (package:stripe_platform_interface/src/method_channel_stripe.dart:333:11)
E/flutter (21660): #1 MethodChannelStripe.presentPaymentSheet (package:stripe_platform_interface/src/method_channel_stripe.dart:227:12)
E/flutter (21660):
E/flutter (21660): #2 Stripe.presentPaymentSheet (package:flutter_stripe/src/stripe.dart:466:12)
E/flutter (21660):
E/flutter (21660): #3 PaymentVirtualTourPageState.displayPaymentSheet (package:travel_hour/pages/paymentvirtualtour.dart:135:7)
E/flutter (21660):
E/flutter (21660):
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When click the button see a form like this:
Smartphone / tablet
Additional context
Code:
Beta Was this translation helpful? Give feedback.
All reactions