#snoos-delete-card

1 messages ยท Page 1 of 1 (latest)

elfin dagger
#

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?

jolly leaf
#

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

elfin dagger
#

Can you console.log();

  • Card ID
  • Customer ID
  • The value of deleteCard
#

Then copy/paste them into the thread here

jolly leaf
#

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

elfin dagger
#

That's okay! I'm here to help if I can

#

Just let me know what's being stored in deleteCard

jolly leaf
#

customerId: cus_KhKHaYtH0WvKdR
cardId: card_1LAh6OCS0W0oxVeqV69c47UN

#

this?

#

or the card info

#

don't worry for the card info is a fake card ๐Ÿ˜‹

elfin dagger
#

Okay, so the deleteCard variable is all the data above customerId?

jolly leaf
#

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

elfin dagger
#

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?

jolly leaf
#

๐Ÿ˜ฃ ๐Ÿ˜ฃ ๐Ÿ˜ฃ ๐Ÿ˜ฃ ๐Ÿ˜ฃ ๐Ÿ˜ฃ ๐Ÿ˜ฃ ๐Ÿ˜ฃ ๐Ÿ˜ฃ ๐Ÿ˜ฃ ๐Ÿ˜ฃ ๐Ÿ˜ฃ

#

Why I didn't though about that

#

thanks!

elfin dagger
#

That's okay! Were you able to fix it?

jolly leaf
#

Yes...

#

sorry for losing your time

elfin dagger
#

You definitely didn't. We're here to help with all kinds of things (even just regular JS errors) so don't worry.