#Suraj
1 messages · Page 1 of 1 (latest)
yes, i am currently using destination charge
i have customer having multple cards and my all connect account is manual type payments
i want to remove one card from cusomer account, how can i get refund on deleted card ..??
To remove a card from a customer, you need to detach it: https://stripe.com/docs/api/payment_methods/detach
thats ok
i want to know about this
regarding refund if that method is used in previously cards
I'm not sure I understand the question. But after you detach a card from a customer, you can still refund a payment if needed.
yes, i want refund to that detached card ..??
that is already used in past for particular payment
Have you tried to refund the payment and got an error message?
no i have not tried, that is why asked first
did you got my question, what am asking about ?
There are two ways to refund a Payment:
- Directly in the Stripe dashboard, when looking at a specific payment there is a "refund" button in the top right
- Or with the API https://stripe.com/docs/api/refunds/create
And if you detached the PaymentMethod it shouldn't change anything, you can still do the refund.
Let me explain my quesion in detail
one customer has 3 cards respectively.
he make a payment from 1st card and send to connect and make a hold on that for $10
later on when detached 1st card from his account. Then decided to make refund of $10, then which card get credited of that balance, because 1st card is not there ..?
or stripe manage on their end and send to 1st only if it is attached or detached ..?
You mean that an end user paid on your website $10 with a card (destination charge). Then you detach the card from the customer. And later you want to do a refund. Is that accurate?
yes
Then the refund will be sent back to card used to pay the $10. It doesn't matter if you detached the card or not. The refund will work as expected.
ok
Detaching a card means that you won't be able to create new payment for that card going forward. But you can still process refunds.
so, is this link works in my case
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
??
Are you trying to remove a card from an end user, or a Connected account?
remove a card from an end user
like card_xyasasa12Z1Bk2XHyLsnXl
from customer cus_JdEcCmbhIjIqmm
If you have a card (card_xxx), then use this to delete it: https://stripe.com/docs/api/cards/delete
If you have a PaymentMethod (pm_xxx), then use this to detach it: https://stripe.com/docs/api/payment_methods/detach
Here the ID is card_xxx, not pm_xxx. So you should use this: https://stripe.com/docs/api/cards/delete
yes, i am creating customer then adding a card into it
Hey! Taking over from @proud flume – let me know if you have any questions I can help with!
yes, i am creating customer then adding a card into it
i need to delete card using https://stripe.com/docs/api/cards/delete
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
right ..?
I believe @proud flume already answered this, but yep! If you want to delete that card_ object that's the endpoint
A Payment Method is an API object that encapsulates a number of payment method types (cards, banks, etc): https://stripe.com/docs/payments/payment-methods
card_ is just an older API that's been replaced by Payment Methods. All of our newer products and integration guides default to using PMs