#Rodrigo (Tookyer)
1 messages · Page 1 of 1 (latest)
Hi, what specifically do you need help with?
Hello pgskc!
I am creating one api request to create a payment method
the card infos and basic user infos are right
but i cant insert the address
type=card;
card[number]=card_number;
card[exp_month]=card_exp_month;
card[exp_year]=card_exp_year;
card[cvc]=card_cvc;
billing_details[name]=name;
billing_details[email]=email;
billing_details[phone]=phone;
here is ok
Can you share the request id for this? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
but here, i am having problems
billing_details[address.country]=BR;
sure
one minute
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You're passing the billing details? What do you mean by 'can't insert the address'?
yah, i am trying to pass the billing details
the card, name, email and phone are working
but i cant pass the billing address
Ah I see what is happening here. You're passing an unknown parameter, address.country. The nesting is off here and you'd want to pass it like so://stripe.com/docs/api/payment_methods/create#create_payment_method-billing_details
With Curl, it should look like this:
-d "billing_details[address][line1]"="1234 Market Street"
-d "billing_details[address][city]"=Philadelphia
-d "billing_details[address][state]"=PA
-d "billing_details[address][postal_code]"=19019
-d "billing_details[address][country]"=US
nice, gimme a sec please
error again =/
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
sorry, meant billing_details, can you try it again with the above corrected Curl?