#Khanisic-error

1 messages · Page 1 of 1 (latest)

green sedge
#

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

west socket
#

I have added this

#

Same stuff

green sedge
#

hmm, how about if you create a Customer with a name and include that in the PaymentIntent instead?

west socket
#

How do I create a customer?

green sedge
west socket
#

const customer = await stripe.customers.create({
name: 'Anonymous',
});

Where do I put this code?

green sedge
#
  1. create a customer
  2. upon successful creation of customer, create the PaymentIntent with the customer id
west socket
green sedge
#

hmm, odd, can you paste the PaymentIntent id here?

west socket
#

Why is it treating me as an Indian?

west socket
#

pi_3LUQtHSFyyf3fwC80zHlNC0c

green sedge
#

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
west socket
west socket
green sedge
#

have you tried including both the name and address? Thus far i think you've only included the name, but not an address

west socket
#

This seems to work for now. I'll go with this.

queen tiger
#

Hi! I'm taking over this thread.

#

Let me know if you have any remaining questions.