#dimitar_api

1 messages ¡ Page 1 of 1 (latest)

sullen knotBOT
#

👋 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/1220714904676339825

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

fleet hareBOT
lavish dust
#

As long as the domain is accessible publicly, sure

silent sky
#

Its not, its 127.0.0.1 domain

#

oh okay i thought i would need to use ngork but wasnt sure

lavish dust
#

Recommendation is to use ngrok or similar. Apple needs to be able to crawl the URL to verify the registration

silent sky
#

Im looking at the migration tutorial and it wants me to use await stripe.confirmPayment() which i previously done in PHP is it possible to still do it in PHP and not confirm the payment in JS?

#

previously i just used stripe.handleCardPayment() in js then i confirmed the payment intent in PHP

pallid whale
#

Recommendation is to confirm client-side in the js though

silent sky
#

i mean capture**

pallid whale
#

Oh yeah you can do that

#

Just doing manual capture

silent sky
pallid whale
#

Yeah but it would be the same as what's in our accept a payment gudie

#

Only difference is you're setting capture method as manual on the payment intent and you call confirmPayment as normal in the js

#

Then when you're ready to capture, you call capture server-side

silent sky
#

Oh so the confirmPayment doesnt capture it when i have created the payment intent to manual capture?

pallid whale
#

correct

#

just places the hold

silent sky
#

Thanks for the info, i was mistaken by the name confirm!=capture

pallid whale
#

No problem

silent sky
#

Im wondering in which cases the redirect is required i see that there is option to use redirect: "if_required". Do Card/Apple Pay/Google Pay sometimes require redirection or this is only for some other providers?

#

If im not mistaken for Cards the 3D security/2fa is done in an iframe?

pallid whale
#

That param is only for payment methods that require it. As far as I know, card, apple pay, and google pay don't require it

pallid whale
#

unless you configure it to do a redirect explicitly

#

but the default behavior is within the page

silent sky
pallid whale
#

Do you want a redirect instead of the popup?

silent sky
#

Not really, i was just curious, i prefer the popup

pallid whale
#

It's covered there

#

If you're curious

silent sky
#

Thanks, so the confirmPayment handles all that automically right? I dont need to track the requires_action status?

pallid whale
#

Correct