#anchornate_api

1 messages ¡ Page 1 of 1 (latest)

simple ruinBOT
#

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

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

finite crag
#

hello! gimme a while to take a look

#

are you only integrating with Klarna or are you using the Payment Element?

vocal tapir
#

hi! I'm using the payment element

#

And Klarna redirects to me here

finite crag
#

it's not possible using the Payment Element and we strongly discourage placing the Payment Element in an iframe : https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements#web-collect-payment-details:~:text=Avoid placing the Payment Element within another iframe because some payment methods require redirecting to another page for payment confirmation

Also, there's additional considerations to take into account in this case, some banks payment pages may not work well within an iframe too

Securely accept payments online.

#

maybe can you share a bit more on what order data you're trying to keep?

vocal tapir
#

hmm okay. I will take a look at the doc

#

because we are redirected to a new page, we lose order data. Can redirect to a previous page after transaction is made

#

maybe I should figure out how to land on a order confirmation page on our end

finite crag
#

i'm a bit confused, but when the user provides their payment details using the Payment Element, you would have to create the PaymentIntent at some point with the order data. When the Payment Element redirects back to the redirect url, the redirect url has the PaymentIntent id and client secret in the query params

#

wouldn't that be sufficient for you to trace the original order details?

vocal tapir
#

yea you're correct. I wanted to know if there's any other options when interacting with Klarna but it doesn't look like there is one.

quasi urchinBOT