#jtishler

1 messages · Page 1 of 1 (latest)

turbid canyonBOT
tepid tide
#

Hi there! Do you have a request ID for this attempt?

candid obsidian
#

uh not sure

#

im just using curl requests in my terminal

tepid tide
#

That's alright, no worries

#

Can you share the curl command you're trying to run? Please strip out/omit your key

candid obsidian
#

its formatted weirdly but that should be default_payment_method

tepid tide
#

Got it. default_payment_method is expecting an ID that looks like "pm_..."

candid obsidian
#

yea i can get it to work with one that starts with card_

#

but the error message indicates theres some way to do the conversion or set the token field directly

#

but i can't really find information on how to do that

tepid tide
candid obsidian
#

so i need to make a request to create a payment method

#

and then send that id in the sub update request

#

there's no way to do it with one request

tepid tide
#

That's right, not with tokens

candid obsidian
#

gotcha thank you

tepid tide
#

I recommend moving away from the Charges API and tokens if you can.

#

These are legacy APIs that are still supported but, as you found, may make some steps a bit more cumbersome

candid obsidian
#

yea i know

#

we are actually in the process of doing that

#

we are just in a bit of a weird in between state right now

#

but will be fully migrated soonish

#

thanks for your help!