#snoos-delete-card
1 messages ยท Page 1 of 1 (latest)
Hi there, do you have the card ID for the card you are trying to delete?
It looks like card_abc123
Also, what is the actual response that you're getting back from Stripe when you make that API call?
Yes, first I create source and that return a card_id
That's, the problem stripe is returning {}
it go to the catch and then I return the error, and the error is {}
This is the card_id stripe generate for me
Can you console.log();
- Card ID
- Customer ID
- The value of
deleteCard
Then copy/paste them into the thread here
copy, I can't console deleteCard because it go to the catch when I call stripe.customers.deleteSource
just give me a moment
the other thing it is that, it is deleting the card but returning error
customerId: cus_KhKHaYtH0WvKdR
cardId: card_1LAh6OCS0W0oxVeqV69c47UN
thanks you and sorry for my English is no the best
That's okay! I'm here to help if I can
Just let me know what's being stored in deleteCard
customerId: cus_KhKHaYtH0WvKdR
cardId: card_1LAh6OCS0W0oxVeqV69c47UN
this?
or the card info
don't worry for the card info is a fake card ๐
Okay, so the deleteCard variable is all the data above customerId?
deleteCard is of the result of deleted a source on a customer
I can give you if you want, all the info of that customer
No worries, I just want to see what's happening on our end. Give me just a minute
Okay, so it's being deleted just fine and deleteCard is successfully storing the response data? So this can only be a JS error, not a Stripe error right?
๐ฃ ๐ฃ ๐ฃ ๐ฃ ๐ฃ ๐ฃ ๐ฃ ๐ฃ ๐ฃ ๐ฃ ๐ฃ ๐ฃ
Why I didn't though about that
thanks!
That's okay! Were you able to fix it?
You definitely didn't. We're here to help with all kinds of things (even just regular JS errors) so don't worry.