#Russ

1 messages · Page 1 of 1 (latest)

spark streamBOT
quick sigil
#

Since it's a custom flow, any additional fields added would be done by you (can be an html form or whatever). It would be separate from the Stripe Payment Element

eager cipher
#

So there is no way to append the username to the metadata once the checkout session has been created?

quick sigil
#

Well in Checkout Sessions, you can't add your own field since it's a hosted solution

#

You'd need to do this with Elements

#

Although, I recommend reaching out to support to let them know you're interested in having a custom field within Checkout. A number of users have expressed interest in this, so they may be able to accommodate something

eager cipher
#

If I used a cutsom payment flow could I append the username to the metadata of the payment intent?

quick sigil
#

Hi yeah you could do that

eager cipher
#

ok so using the stripe example https://stripe.com/docs/payments/quickstart, when the button is clicked in checkoutform.jsx I would

  • catch it with e.preventDefault()
  • then get the value of my custom username field with a dom query
    -then update the payment intent metadata and finally return the handleclick?
quick sigil
#

Yes that sounds right

eager cipher
#

Ok, thank you!