I’m getting the following error message when trying to charge a user with saved cc info in test mode:
“Sorry, this user didn’t provide his credit card information and can’t be charged”
In a previous workflow I have successfully saved the users credit card info and the user has been created in my Stripe dashboard as a customer with credit card info.
Has anyone run into a similar issue? Any ideas on what’s going on?
Hi Marco - I’m not familiar with Bubble’s Stripe plugin but others in the forum are and can probably help.
Do you save the Stripe generated Customer ID for each User in Bubble? I believe all the ID’s have a “cus_” prefix. For Stripe.js I need to save that value in the database (unique for each relevant User) for use in future CC charge workflows.
I just added Bubble’s plugin and saw this Step option (image below). You’ve probably tried it using the ID in “Charged user” field?
To do a quick test, you can also copy/paste a “cus_” ID # from Stripe right into the “Charged user” field and see if that transacts (setup a single step workflow triggered by a button). That may help you with troubleshooting and determine if it’s a bug or not.
The ‘charged user’ field only accepts a user type and so I can’t test with the Customer ID - which i do have saved in the DB.
I wonder whether it’s because I’m using it in the test mode in Stripe, although not sure why that would be as I’ve successfully created the user in test mode in the previous steps.
@emmanuel, does this look like a bug? Any suggestions or should I submit a bug report?
This is by design if you use the Bubble-built plugin. The user is a user object, not a CustomerID, we automatically find the customer ID behind the scene. If that doesn’t work for you, you can probably find another plugin or use the API connector to implement the call you need.
But the user does have a credit card saved on their account.
This was collected in an earlier workflow using ‘collect the user’s cc information’ event.
Below is the test users card in Stripe.
I have a repeating group which shows the stripe users id but it’s not pulling in their credit card id.