#ocardenas

1 messages · Page 1 of 1 (latest)

vernal nightBOT
west rover
#

hi! what do you mean exactly by adding to it? is there more context you can share?

manic escarp
#

yes of course

#

I'm integrating the stripe with my app

#

and I'm follow this tutorial

#

and I create this $stripe->paymentIntents->create

#

for show the form

#

now I would like to add the name of the person who makes the payment

#

is this posible?

west rover
manic escarp
#

great

#

so the request should be like this

#

stripe.confirmPayment({
elements,
billing_details { 'name' : 'Name', 'lastname' : 'Lastname' },
confirmParams: {
// Return URL where the customer should be redirected after the PaymentIntent is confirmed.
return_url: 'https://example.com',
},
})

#

??

west rover
#

it's just name:"name lastname" , it's not two fields

and no, it's more like

stripe.confirmPayment({
  elements,
  confirmParams: {
    payment_method_data:{billing_details: { 'name' : 'Name' }},
    // Return URL where the customer should be redirected after the PaymentIntent is confirmed.
    return_url: 'https://example.com/',
  },
})
manic escarp
#

great!