#energetic_swan_85077

1 messages ยท Page 1 of 1 (latest)

steep vectorBOT
#

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.

bright vigil
#

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_.

wanton basalt
#

In other words, I can use this prefix to determine whether an ID is a source or a payment method?

bright vigil
#

Yup!

wanton basalt
#

Emm, I just added a card through the source api, and its ID is card_1OlkPCK8qsUQ7MPjnPK2WVnM

bright vigil
#

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

wanton basalt
#

So can I judge this way, if it is the 'pm' prefix, it is the payment method, and the others are the source?

bright vigil
#

If you're referring to payment method, then yes. Only payment method is pm_ prefix

wanton basalt
#

OK, thanks

bright vigil
#

No problem! Happy to help ๐Ÿ˜„

wanton basalt
#

๐Ÿ˜†

wanton basalt
#

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'?

bright vigil
#

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

wanton basalt
#

?

bright vigil
#

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?

wanton basalt
#

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'.