Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The customer has not entered their payment method. #94

Closed
dheerajkhokhar opened this issue Aug 24, 2021 · 2 comments
Closed

The customer has not entered their payment method. #94

dheerajkhokhar opened this issue Aug 24, 2021 · 2 comments

Comments

@dheerajkhokhar
Copy link

dheerajkhokhar commented Aug 24, 2021

Hi, I try to implement both the method PaymentSheet and PaymentFlow in ionic react project but every time payment failed, this error message ("The customer has not entered their payment method.") is shown in stripe dashboard. Can you please tell me how to solve this issue.

Thanks:-

Code:-

const { paymentIntent, ephemeralKey, customer } = //HTTP SERVER REQUEST RESPONSE;
Stripe.createPaymentFlow({
  paymentIntentClientSecret: paymentIntent,
  customerEphemeralKeySecret: ephemeralKey,
  customerId: customer,
  merchantDisplayName: 'App Name',
  style: 'alwaysDark',
}).then((createPaymentSheetResponse)=>{
  console.log("createPaymentSheetResponse - ", createPaymentSheetResponse);
  Stripe.presentPaymentFlow().then(finalResponse =>{
    console.log("finalResponse - ", finalResponse);
  }).catch((error)=>{
  })
}).catch((error)=>{
})
@rdlabo
Copy link
Member

rdlabo commented Aug 28, 2021

createPaymentFlow require confirmPaymentFlow.
Please check demo: https://github.com/capacitor-community/stripe/blob/master/demo/angular/src/app/tab3/tab3.page.ts#L120-L131

Thanks.

@rdlabo rdlabo closed this as completed Sep 2, 2021
@rdlabo
Copy link
Member

rdlabo commented Jan 19, 2022

@dheerajkhokhar Did you adapt this plugin for production? If yes, please tell us what app. Please help us to develop this plugin in 2022.
#145
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants