Alpit Panchal
Alpit Panchal

Reputation: 1037

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

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

Upvotes: 0

Views: 25

Answers (1)

RyanM
RyanM

Reputation: 2960

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.

Upvotes: 0

Related Questions