#Script

1 messages · Page 1 of 1 (latest)

nova shoreBOT
tender sundial
#

What docs are you following?

warped walrus
#

the "Add custom fields" requires that I create a checkout session while the "Custom payment flow"

tender sundial
#

Hmmm, I think you may be mixed up. The "Custom payment flow" workflow does not use Checkout at all. You would want to select "Prebuilt checkout page" at the top of the quickstart docs instead to use Checkout

warped walrus
#

oh
so its not currently supported to add custom fields to the custom payment flow?

tender sundial
warped walrus
#

Nice
so I just use it with the createPaymentMethod correct?

tender sundial
#

I'm not sure where you're getting that method. It's not in the quickstart guide

warped walrus
tender sundial
#

I don't think I directed you there. You should follow the quickstart guide closely unless you're trying to do something specific

warped walrus
#

my bad.

#

I took a look at the link you sent and still cant find how to implement it into my code

#

i'm guessing its one of these endpoints

tender sundial
#

But you don't really have to change anything from the quickstart guide. Those fields are automatically collected if they are required

warped walrus
#

oh this
can I manually set the email input?
I tried doing that using the onChange event but it didnt

What I'm trying to do is use the logged-in user's email and fill it in automatically into the payment email input field

tender sundial
warped walrus
#

awesome
it works now

lastly is it possible to disable the input? I dont want customers making the mistake of removing the email and using another one

tender sundial
#

Not that I know of, no

#

I would test that parameter above and see if it does what you're looking for

warped walrus
#

it only applied to credit card details 😪

tender sundial
#

Oof, well there you have it

warped walrus
#

i'll probably just show an alert notifying them not to

Thanks for your help two-shoes

tender sundial
#

Sure thing!