Skip to content

fix(checkout): CHECKOUT-10299 Get gift certificates from payments for order page - #3245

Merged
bc-maxy merged 2 commits into
masterfrom
checkout-10299
Aug 13, 2026
Merged

fix(checkout): CHECKOUT-10299 Get gift certificates from payments for order page#3245
bc-maxy merged 2 commits into
masterfrom
checkout-10299

Conversation

@bc-maxy

@bc-maxy bc-maxy commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

What/Why?

GIft certificates are not shown on Order Confirmation page when CHECKOUT-9674.multi_coupon_cart_checkout flag is true. It works fine when the flag is false.

I changed the useMultiCoupon implementation to get giftCertificates from order.payments using an existing mapFromPayments helper.

Rollout/Rollback

Revert the PR.

Testing

New CI tests + manual testing.

Before the change

When the flag is false it renders correctly:

Screenshot 2026-08-12 at 4 20 25 PM

When the flag is true it does not show gift certificates (even though they are applied):

Screenshot 2026-08-12 at 4 13 56 PM

After the change

Gift certificates are visible:

Screenshot 2026-08-12 at 4 48 48 PM

Also consistent with checkout page for multi-coupon scenario:

Screenshot 2026-08-12 at 4 58 16 PM Screenshot 2026-08-12 at 4 59 19 PM

Note

Low Risk
Localized display logic in useMultiCoupon with an existing mapper; checkout path unchanged and new tests cover order confirmation cases.

Overview
Fixes missing gift certificates on the order confirmation page when multi-coupon checkout is enabled (CHECKOUT-9674.multi_coupon_cart_checkout).

useMultiCoupon now builds appliedGiftCertificates from checkout gift-certificate data when a checkout is present, and from order.payments via the existing mapFromPayments helper when only an order is available (confirmation). Checkout behavior is unchanged.

Tests cover mapping from order payments, filtering non–gift-certificate payments, and empty/missing payments.

Reviewed by Cursor Bugbot for commit eda6b7f. Bugbot is set up for automated code reviews on this repo. Configure here.

@bc-maxy

bc-maxy commented Aug 12, 2026

Copy link
Copy Markdown
Contributor Author

cursor review

@bc-maxy
bc-maxy marked this pull request as ready for review August 12, 2026 07:12
@bc-maxy
bc-maxy requested a review from a team as a code owner August 12, 2026 07:12

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 9b5cf7d. Configure here.

Comment thread packages/core/src/app/coupon/useMultiCoupon.ts Outdated

@bc-peng bc-peng left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the naming, the rest looks good to me.

Comment thread packages/core/src/app/coupon/useMultiCoupon.ts Outdated
@bc-maxy
bc-maxy merged commit d3e9fb0 into master Aug 13, 2026
10 checks passed
@bc-maxy
bc-maxy deleted the checkout-10299 branch August 13, 2026 02:07
@bc-launchbay

Copy link
Copy Markdown

checkout-js deployed to Staging US
success 20260813021842 by Launchbay

@github-actions

Copy link
Copy Markdown

⚡️ Lighthouse results

🖥️ Desktop:

Category Score
🟢 Performance 98
🟢 Accessibility 96
🟠 Best practices 59

📱 Mobile:

Category Score
🟢 Performance 90
🟢 Accessibility 96
🟠 Best practices 59

@bc-launchbay

Copy link
Copy Markdown

checkout-js deployed to Production US
success 20260813021842 by Launchbay

@bc-launchbay

Copy link
Copy Markdown

checkout-js deployed to Integration US
success 20260813021842 promoted by https://launchbay.bigcommerce.net/projects/535/releases/294928 being deployed. Deployed by Launchbay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants