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

Stripe payment not charging, but it succeeds #267

Closed
nica0012 opened this issue Jan 6, 2021 · 4 comments
Closed

Stripe payment not charging, but it succeeds #267

nica0012 opened this issue Jan 6, 2021 · 4 comments

Comments

@nica0012
Copy link

nica0012 commented Jan 6, 2021

For some reason I am not receiving payments on stripe. They are succeeding but the problem is a charge not being created?

Is anyone else experiencing this? is not, how do i ensure my users are being charged?

@nabilfreeman
Copy link
Collaborator

nabilfreeman commented Jan 6, 2021

Hey Hugo, that's by design - you need to send the encrypted card token to your server and process the payment remotely. Let me know if you have any more questions and I can try to help 😁

The flow should be

  1. Show payment request
  2. User authenticates with biometric
  3. Apple pay shows a loading spinner
  4. Capture card token
  5. Send card token to server and do intent flow (charge card or save for later)
  6. Dismiss payment request with a success or error
  7. Apple Pay Dialog stops showing a spinner and closes

There is a 60 second timeout on the apple pay dialog so your server should respond before that.

@nica0012
Copy link
Author

nica0012 commented Jan 7, 2021

Great, I've figured it out - cheers!

@nica0012 nica0012 closed this as completed Jan 7, 2021
@nabilfreeman
Copy link
Collaborator

Amazing @nica0012 ! To help other people coming here later would you mind telling your solution?

@nica0012
Copy link
Author

nica0012 commented Jan 8, 2021

In my case I'm using firebase, so I used firebase cloud functions to send the response with the token to their server (cloud functions) to complete the payment there 👌🏼

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