Stripe Plugin Token Error

Hi. I am trying to save a user’s Credit Card but am getting the following error the first time a user tries to submit their credit card. At that point, this error shows and a customer is created in Stripe but a success pop up does not appear on the screen on Bubble. Does anyone know how to solve this?

Stripe error: You cannot use a Stripe token more than once: tok_<XXX>.

Hi @sal.mundhra

If you are receiving the error message “You cannot use a Stripe token more than once”, it means that you are attempting to reuse a previously used Stripe token.

Stripe tokens are one-time-use objects that are generated by Stripe when a customer’s payment information is submitted. These tokens represent the customer’s payment information and can be used to process a payment without ever storing the actual payment information on your servers.

If you attempt to use a token more than once, Stripe will reject the request with the error message you are seeing.

To resolve this error, you will need to generate a new token for each transaction. You can do this by submitting the customer’s payment information to Stripe each time a transaction is processed. Alternatively, if you are using Stripe’s client-side library to tokenize the customer’s payment information, you can generate a new token each time the payment form is submitted.

In any case, you should avoid storing the customer’s payment information on your servers, as this can create significant security risks. Instead, always rely on Stripe to handle the secure storage and processing of payment information.

I hope this helps.

Thank you!

All the best

Hi Jonathan,

Thank you so much for your detailed response! I am unfortunately still unable to solve this issue. I am getting this error when I am attempting to “Collect the user’s CC information”. I have screenshotted the workflow action I am using to do this. Do you see any errors?

Separately, would you be available for a quick call? I can show you what I am attempting to do. Really appreciate your support! Thank you