10/27/1
This commit is contained in:
@@ -97,9 +97,19 @@ class PaymentController extends GetxController {
|
||||
Future<void> initializePaymentSheet(String clientSecret) async {
|
||||
await Stripe.instance.initPaymentSheet(
|
||||
paymentSheetParameters: SetupPaymentSheetParameters(
|
||||
paymentIntentClientSecret: clientSecret,
|
||||
merchantDisplayName: 'Sefer',
|
||||
),
|
||||
paymentIntentClientSecret: clientSecret,
|
||||
merchantDisplayName: 'Sefer',
|
||||
billingDetails: BillingDetails(
|
||||
name: box.read(BoxName.nameDriver).toString(),
|
||||
email: box.read(BoxName.emailDriver).toString(),
|
||||
phone: box.read(BoxName.phoneDriver).toString(),
|
||||
),
|
||||
billingDetailsCollectionConfiguration:
|
||||
const BillingDetailsCollectionConfiguration(
|
||||
name: CollectionMode.always,
|
||||
phone: CollectionMode.always,
|
||||
email: CollectionMode.always,
|
||||
)),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user