dart - Flutter Stripe:- Custmore id is not showing in transaction details - Stack Overflow

admin2025-04-18  3

I have done succesfully transation but the custmore details are not showing in transaction details.

await Stripe.instance
   .initPaymentSheet(
  paymentSheetParameters:  SetupPaymentSheetParameters(
    paymentIntentClientSecret: paymentIntentData['client_secret'],
    // customerId: UpPreferences.getPrefValue(key: UpPreferences.stripeCustomerId),
    customerId: "cus_RdJED0RXZaH5YF",
    googlePay: gPay,
    customFlow: false,
    allowsRemovalOfLastSavedPaymentMethod: true,
    style: ThemeMode.system,
    merchantDisplayName: 'MyProject',
   billingDetails: billingDetails
  ))
  .then((value) {
showPaymentSheet();
 });

Thanks in advance

I have done succesfully transation but the custmore details are not showing in transaction details.

await Stripe.instance
   .initPaymentSheet(
  paymentSheetParameters:  SetupPaymentSheetParameters(
    paymentIntentClientSecret: paymentIntentData['client_secret'],
    // customerId: UpPreferences.getPrefValue(key: UpPreferences.stripeCustomerId),
    customerId: "cus_RdJED0RXZaH5YF",
    googlePay: gPay,
    customFlow: false,
    allowsRemovalOfLastSavedPaymentMethod: true,
    style: ThemeMode.system,
    merchantDisplayName: 'MyProject',
   billingDetails: billingDetails
  ))
  .then((value) {
showPaymentSheet();
 });

Thanks in advance

Share Improve this question asked Jan 30 at 16:19 Alpit PanchalAlpit Panchal 1,0774 gold badges15 silver badges34 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

It looks like you are confirming a Payment Intent using the Stripe PaymentSheet. Because you are passing in a Customer ID to the PaymentSheet, you should see the customer_id property on the Payment Intent populated with that Customer ID.

This should link the Payment Intent to the Customer record in your Stripe account. The transactions details page on the Stripe Dashboard should show the customer information along with the Payment. The Payment Intent object will container the Customer ID, which you can expand into the full Customer object.

You did not specify where you are looking to see these customer details but I hope that covers all your use cases.

转载请注明原文地址:http://anycun.com/QandA/1744906378a89296.html