#.aliciant

1 messages · Page 1 of 1 (latest)

zealous heathBOT
ebon glade
#

Hi there, since you are using the legacy Charges API, Stripe will look for the default_source of this customer and use it to charge the customer, However, this customer doesn't have a default_source set.

spice rose
#

Oh ok. How can I set the default_source? I did set the card as the default card in the Stripe dashboard.

#

Thank you for the very fast response btw. One of my favorite things about stripe is the ability to get dev help quickly!

ebon glade
#

Thanks for the kind words.

spice rose
#

Yes - migration is already in progress. We should be done soon.

#

awesome, thanks for the guidance.

ebon glade
#

Happy to help. Since you are still on Charges API now, you can also specify a source (https://stripe.com/docs/api/charges/create#create_charge-source) when creating a charge if the customer doesn't have a default_source, or if you want to use a different source rather than the default_source .

spice rose
#

Just to confirm, do I use the pm id as the default_source?

ebon glade
#

No, a pm_xxx is a PaymentMethod, a Source has a resource ID that starts with src_

spice rose
#

Ok, so if the card is already attached to the customer, can I create a new source from the same card using the CLI? I'm asking because I don't have the credit card information.