#celine-fang_docs

1 messages ยท Page 1 of 1 (latest)

smoky solsticeBOT
#

๐Ÿ‘‹ 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/1458725618681118752

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

woeful cipher
#

The customer will be given 1 hour to complete the payment via PayNow QR code. The QR code will expire and any payment attempts after the expiry will fail. A new payment intent should be created for the new PayNow QR code

smoky solsticeBOT
velvet niche
#

yes, that is what I can read from the documentation. But what will actually happen in the UI after 1 hour? Will it redirect user back or it will just show a message in the page that qr expired or how? Can you elaborate more? @woeful cipher

#

Other than that, how to customize to put a live timer for the QR timeout? I know normally the PayNow QR will have a live timer. Are we able to customize the paynow modal?

severe helm
#

Hey! Taking over for my colleague.

velvet niche
#

Thankyou!

severe helm
#

If so I think nothing happens in the UI, just when the customer scan the qrcode they'll get an error saying it's expired

severe helm
velvet niche
#

So unable to customize the layout if we use stripe hosted page right

severe helm
#

Yes, however you can to use Stripe Element if you want more/advanced customization

velvet niche
#

May I know how to do that? I still want to make the page hosted in stripe instead of embedding into my website

severe helm
#

Stripe Element is a form of embedding into your website

velvet niche
#

I face an issue that if I embedded the checkout page in my website. there is no action will be done if the checkout session expired

severe helm
#

And not hosted stripe page

velvet niche
#

I see understand. Is there any configuration that I can do if the checkout session expired to redirect? By the way, may I know if you are actually from Stripe support?

severe helm
#

Is there any configuration that I can do if the checkout session expired to redirect?
What you mean exactly, do you have a concrete example ?

#

By the way, may I know if you are actually from Stripe support?
Sure, you can check my Discord profile and you'll see that I have the stripe badges: Stripe Staff and Stripe Moderator

velvet niche
#

Other than that, stripe support once contacted me to use Ask AI to ask question if I have any.

The AI states that there is a default 3 mins countdown for the QR code, when the 3 mins is up, how will the QR code be refresh? Will it be automatically or user need need to trigger a button?

severe helm
#

The AI Assistant helps usually but not 100% accurate, sorry about that.

velvet niche
#

so the expiry for paynow qr is 1 hour instead of 3 minutes right

severe helm
#

That's why we offer human assistance to double check and helps you confirm this

velvet niche
#

Thanks a lot for the clarification

#

Btw, another question, are you aware of stripeGC.AgnosticInvocable.callStripeEndpoint(paramsCollection) in Salesforce?

I wanted to let my customer portal user to create the checkout session but I face an error whereby Stripe account id is not found. I have already given the right account id in the params collection because I dont want to let the portal user have the read access to Stripe Accounts Object. Do you aware how can I run that line of code in system mode so that I dont need to give the user read access on the Stripe Account Object?

severe helm
velvet niche
#

I see okay, noted. thanks a lot for the help

severe helm
#

Welcome!

smoky solsticeBOT
velvet niche
#

Hello are you aware of this one?
stripeGC.CreateCheckoutSessionsReqLineItem cliparams = new stripeGC.CreateCheckoutSessionsReqLineItem();
cliparams.price = 'price_1NhcVkBSPQ8HL343ZNsBp'; //price id from Stripe.
cliparams.quantity = quantity;
cliparamlist.add(cliparams);

If I would like to give the line items from data instead of the price id that is available in stripe?

severe helm