Skip to content

Add Google Pay offers to the web sheet - #1007

Closed
Max Harrison (maxharrison) wants to merge 1 commit into
max/card-1057-b-google-pay-web-shipping-address-option-dynamic-pricefrom
max/card-1058-c-google-pay-web-offers-offer-intent-offerinfo
Closed

Add Google Pay offers to the web sheet#1007
Max Harrison (maxharrison) wants to merge 1 commit into
max/card-1057-b-google-pay-web-shipping-address-option-dynamic-pricefrom
max/card-1058-c-google-pay-web-offers-offer-intent-offerinfo

Conversation

@maxharrison

Copy link
Copy Markdown
Contributor

Google Pay on web declares no offerInfo and no OFFER callback intent, so a buyer cannot apply a promotion in the sheet even though the Google Pay Web API supports one. This declares the merchant's offers on the request, adds OFFER to the derived callbackIntents, and routes the OFFER trigger to a merchant onOfferChange callback that returns an updated total, line items or offer list; the applied codes are surfaced on the process() payload as redemptionCodes. Promotion entry now works in the web sheet, and an offer the merchant rejects defaults to the OFFER_INVALID reason and OFFER intent Google expects rather than a shipping reason.

Stacked on #1006 — it reuses the correlated data-change handshake added there, which is what keeps this change small. Review and merge that first; this diff is only the offer-specific parts.

Closes CARD-1058.

Google Pay web declares no offerInfo and no OFFER callback intent, so a
buyer cannot apply a promotion in the sheet.

Declare the merchant's offers, add OFFER to the derived callbackIntents,
and route the OFFER trigger to a merchant onOfferChange callback that can
update the total, line items or the offers themselves. Reuses the
correlated data-change handshake added for shipping.
@changeset-bot

changeset-bot Bot commented Sep 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6aacebf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 12 packages
Name Type
@evervault/browser Minor
@evervault/js Minor
@evervault/inputs Patch
example-apple-pay Patch
example-react-google-wallet Patch
@evervault/browser-e2e-tests Patch
e2e-tests-ui-components-vanilla-server Patch
example-ui-components Patch
example-custom-theme Patch
google-pay Patch
example-three-d-secure Patch
@evervault/inputs-e2e-tests Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@maxharrison

Copy link
Copy Markdown
Contributor Author

Gonna cancel this ticket. The feature is not available on Google Pay Android so will revisit later.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant