#celine-fang_docs
1 messages ยท Page 1 of 1 (latest)
๐ 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.
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
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?
Hey! Taking over for my colleague.
Thankyou!
The mean the customer will keep the QRCode for 1 hour without any action?
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
No you can't add such a timer in Stripe UI, you can add it in your own UI
So unable to customize the layout if we use stripe hosted page right
Yes, however you can to use Stripe Element if you want more/advanced customization
May I know how to do that? I still want to make the page hosted in stripe instead of embedding into my website
Stripe Element is a form of embedding into your website
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
And not hosted stripe page
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?
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 StaffandStripe Moderator
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?
I'm not aware of such an option honestly. Here is an example UI of the QRcode, there is no countdown
https://payments.stripe.com/paynow/instructions/CCIaFwoVYWNjdF8xTFlRYUxDRXdqUGtYb3hWKP3T_coGMgZTLTOaxIc6L3eUs6wPPdkee6VTxuQq7kW0fxTWZjZttxRrIbU8JMAWVftcvMU_4QhWqKKveiKs
The AI Assistant helps usually but not 100% accurate, sorry about that.
so the expiry for paynow qr is 1 hour instead of 3 minutes right
That's why we offer human assistance to double check and helps you confirm this
Thank you ๐
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?
No, sorry, we don't have knowledge on Stripe Connectors here.
I see okay, noted. thanks a lot for the help
Welcome!
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?
I've already answered you on this above.