Save this card for future use" checked by default and disable modification (gray it out)
Ahmad0Tanveer opened this issue · 1 comments
Ahmad0Tanveer commented
- I need the Save this card for future use option to be checked by default during payment or setup flows.
- Additionally, I want to disable the ability for the user to modify this checkbox (i.e., gray it out so the user cannot uncheck it).
my code snip is
await Stripe.instance.initPaymentSheet(
paymentSheetParameters: SetupPaymentSheetParameters(
style: ThemeMode.system,
billingDetails: billingDetails,
merchantDisplayName: companyName,
paymentIntentClientSecret: client_secret,
customerEphemeralKeySecret: ephemeralKey,
setupIntentClientSecret: setupIntentClientSecret,
allowsDelayedPaymentMethods: true,
customerId: customerID,
intentConfiguration: IntentConfiguration(
confirmHandler: (i, va){
// not listning toggle also
},
mode: const IntentMode.setupMode(
setupFutureUsage: IntentFutureUsage.OffSession)),
),
);
await Stripe.instance
.presentPaymentSheet(options: const PaymentSheetPresentOptions());
remonh87 commented
Unfortunately we do not have the power to change this. This needs to be done by stripe. However I do think they leave this option open by default for privacy and security reasons. Feel free to contact stripe and log a ticket: https://github.com/stripe/stripe-ios or https://github.com/stripe/stripe-android