#kadhage_api

1 messages ยท Page 1 of 1 (latest)

oak robinBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1270370699537809473

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

worldly swan
#

This is the email input field that i expect to be at least pre-filled with my customer email or the receipt_email property

lament sphinx
#

each client is getting asked for the email address
Can you share an example of what this looks like?

#

Ah, thank you

worldly swan
#

๐Ÿ™‚

#

I was expecting either to not show the email adress field at all (it's in customer.email and in the receipt_email) or to at least pre-fill it with the known value

#

couldn't find anything about that in the doc.

lament sphinx
#

Do you have instruction emails enabled?

worldly swan
#

trying to find this option

lament sphinx
worldly swan
#

I can turn this on but i expected to do it myself

#

i'm gonna try

lament sphinx
#

It was not already on? I was wondering if that was forcing email collection.

worldly swan
#

it's greyed out in test mode anyway

#

Anyway, i want to send the payment instructions myself. Just want to avoid my users to type their email addresses as they already gave it to me.

#

i can probably inject it using js but don't know if it's the way to go (especially regarding pci dss compliance

lament sphinx
#

I'm currently trying to figure out if this is required. It might be required to allow us to contact the customer to facilitate refunds in the event their bank details fail etc.

worldly swan
#

thanks for your time and your help.
Since i have the email address for my client, cannot i provide it for them ?
At least pre-fill

#

I get that you probably need the client email just in case.

lament sphinx
#

Yes, you can provide that using default values, one moment

#

{ defaultValues: { billingDetails: { email: 'xx@x.com'} } } in your options when you create the payment element

worldly swan
#

That's what i was looking for. I expected that to be retrieved from the intent or the customer but it was in the js side before mounting the form.

Thanks a lot.

#

I have a follow up question.
Can i prevent the modal popup and show my own payment instructions view ?

#

This view is getting dismissed if the user clicks out of it.
To prevent mistakes i wanted to provide my own view.

Thought i could do it using hosted_instructions_url but again, not when creating an intent

lament sphinx
worldly swan
#

Oh, never found this funding instructions api.
I'm gonna try that and get back to you. Thanks a lot

#

You made my day

lament sphinx
#

Great, glad I was able to help!