#Khanisic-error
1 messages · Page 1 of 1 (latest)
hello! there's no name parameter in the PaymentIntent object. I believe you should be able to pass the name either when confirming the PaymentIntent in billing_details [0]. Or if you already have a Customer [1] and it's name is filled, then you should be able to pass the Customer id : https://stripe.com/docs/api/payment_intents/create#create_payment_intent-customer
[0] https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method_data-billing_details
[1] https://stripe.com/docs/api/customers/object#customer_object-name
hmm, how about if you create a Customer with a name and include that in the PaymentIntent instead?
How do I create a customer?
const customer = await stripe.customers.create({
name: 'Anonymous',
});
Where do I put this code?
- create a customer
- upon successful creation of customer, create the PaymentIntent with the customer id
hmm, odd, can you paste the PaymentIntent id here?
Why is it treating me as an Indian?
Yeah, one sec.
pi_3LUQtHSFyyf3fwC80zHlNC0c
ah the error message was cut off in the screenshot, can you include the address also?
the full error message was
As per Indian regulations, export transactions require a customer name and address. More info here: https://stripe.com/docs/india-exports
May I know the reason?
have you tried including both the name and address? Thus far i think you've only included the name, but not an address
This seems to work for now. I'll go with this.