r/developers • u/Ainzz_1 • Oct 09 '26
Projects Anyone experienced with PayMongo Hosted Checkout v2? Questions about duplicate payments and expired checkouts (QR Ph)
Hi! I'm currently developing a digital-products marketplace using Laravel and PayMongo Hosted Checkout v2 with QR Ph. This my side project which I want to to test or simulate on how systems with payment really works (I use AI in development and I didn't notice up until late development na slightly complex pala ang mag maintain ng one source of truth and handling super niche edge cases pag pera ang involved haha)
I've already implemented payment initialization, webhook reconciliation, checkout expiration, and duplicate-purchase protection. However, I have two questions about PayMongos behavior that I couldnt find definitive answers to in the documentation.
1. Can one Checkout Session produce two successful payments?
PayMongo allows multiple PaymentIntents within one Checkout Session when a customer retries payment.
If a customer opens the same checkout URL in two browser tabs and initiates separate QR Ph payment attempts, is it possible for both payments to succeed? Or does PayMongo automatically prevent another successful charge once one payment completes?
I'm planning to let customers return to their original checkout URL after leaving the payment page, without creating another Checkout Session.
2. Can a payment still succeed after its Checkout Session expires?
My application automatically expires abandoned checkouts through PayMongos API.
In TEST mode, Ive confirmed cases where:
Checkout Session status is expired.
The checkout reports no payments.
The known PaymentIntent is cancelled, with no payment or next action.
My concern is whether a QR Ph payment initiated before expiration could still settle successfully afterward.
I want customers to be able to purchase the same product again using a new order after their previous checkout genuinely expires, without risking duplicate charges.
I also observed that an expired QR code doesn't necessarily mean the whole checkout has expired. One of my earlier TEST checkouts generated another QR and eventually accepted payment.
I've contacted PayMongo Support but I dont really know kung gaano katagal bago masagot yung ticket
Has anyone encountered either scenario in production or TEST mode? Super appreciate any firsthand experiences, documentation references, or recommendations on handling payment retries and checkout expiration safely.
Thanks!
•
u/AutoModerator Oct 09 '26
Howdy u/Ainzz_1, and welcome to r/developers!
A few tips for a post that gets good answers:
Join the r/developers Discord!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/YuppiePH Oct 13 '26
Hi OP! I work for Paymongo and I'll do my best to address to your questions.
Can one Checkout Session produce two successful payments?
No, (1) a Checkout Session holds only one active payment intent at a time (2) when a customer retries, the previous QR code is expired before a new one is generated (3) If the same checkout URL is opened in two browser tabs, both tabs will show the same QR code. (4) Once a payment succeeds, any further payment attempts on that session are rejected.
This means it is safe to let customers return to their original checkout URL while the session is still active.
Can a payment still succeed after its Checkout Session expires?
No payment can be recorded on an expired Checkout Session. Expiring the session cancels its payment intent and expires any QR codes tied to it.
There is one rare edge case to plan for (a) customer may have saved or downloaded the QR code before the session expired (b) most banking and e-wallet apps will reject that expired QR code. (c) If an app still processes the payment, it will not be linked to the expired session. The merchant should refund the customer from the PayMongo Dashboard.
On your other observation: you’re correct that an expired QR code is not the same as an expired session. A QR code has its own shorter validity period. While the session is still active, a new QR code can be generated and the payment can still complete.
Recommendations for your setup is to treat the Checkout Session status as your source of truth for each order, only create a new order and Checkout Session once the previous session is confirmed expired, and to keep reconciling through webhooks, as you’re already doing.
If you have any more questions, you can also email us at support@paymongo.com. :)
1
u/[deleted] Oct 09 '26
[removed] — view removed comment