Skip to content

Add experimental rule for Gopay appId override#1363

Merged
wcole1-godaddy merged 2 commits intomainfrom
gopay_override
Apr 30, 2026
Merged

Add experimental rule for Gopay appId override#1363
wcole1-godaddy merged 2 commits intomainfrom
gopay_override

Conversation

@pbennett1-godaddy
Copy link
Copy Markdown
Collaborator

Summary

When a checkout session includes experimental_rules.gopay_override with enabled: true, the applicationId passed to all TokenizeJs instances is now overridden with the goPayAppId from that rule. This
allows GoPay to be used as the payment application without changing the existing godaddyPaymentsConfig.appId.

Changes

GraphQL Queries

  • checkout-queries.ts / checkout-mutations.ts — Added gopay_override { enabled, goPayAppId } to the experimental_rules selection set so the override config is fetched from the session.

New Utility

  • payment/utils/get-application-id.ts — Shared helper that resolves the applicationId for TokenizeJs. Returns goPayAppId when the override is enabled, otherwise falls back to the default
    godaddyPaymentsConfig.appId.

Changeset

  • Changeset added (docs)

Test Plan

@pbennett1-godaddy pbennett1-godaddy requested a review from a team as a code owner April 30, 2026 15:51
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 30, 2026

🦋 Changeset detected

Latest commit: ae1f73b

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

This PR includes changesets to release 2 packages
Name Type
@godaddy/react Patch
nextjs 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

@wcole1-godaddy wcole1-godaddy merged commit f43f2dd into main Apr 30, 2026
3 checks passed
@wcole1-godaddy wcole1-godaddy deleted the gopay_override branch April 30, 2026 18:25
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.

2 participants