#energetic_swan_85077
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- energetic_swan_85077, 1 hour ago, 8 messages
- energetic_swan_85077, 3 hours ago, 3 messages
If it's a Payment Method, the prefix of the ID will be pm_.
If it's a Source, the prefix of the ID will be src_.
In other words, I can use this prefix to determine whether an ID is a source or a payment method?
Yup!
Emm, I just added a card through the source api, and its ID is card_1OlkPCK8qsUQ7MPjnPK2WVnM
Ah I see! If it's a legacy card source, then yes, it will be in the form of card_
This is only for card source
So can I judge this way, if it is the 'pm' prefix, it is the payment method, and the others are the source?
If you're referring to payment method, then yes. Only payment method is pm_ prefix
OK, thanks
No problem! Happy to help ๐
๐
I would like to ask again, if the card added through the Payment methods in the customer's dashboard, why is the ID also 'card_xxx'?
I'm afraid I'm unable to share much details, but creating the payment method through Stripe hosted interfaces may use different flows behind the scene
?
The payment method created through Stripe hosted interface can be a source or payment method
Card source (card_xxx) is a legacy payment method. In general, a card_xxx is mainly for backward compatibility. Others who is on older API can still use card source to make payment. If you use Payment Intent, it's also backward compatible to accept legacy card source for payment
Is there any issue you're facing?
Please consult again. I updated the default_source through the customer's update api'/v1/customers/xxx', but when I checked the customer's dashboard in the stripe background, the default payment method is still the prefix 'pm'.