feat(checkout): add CCAvenue payment provider and cookie-session retu…#1291
Merged
wcole1-godaddy merged 9 commits intogodaddy:mainfrom Feb 26, 2026
Merged
feat(checkout): add CCAvenue payment provider and cookie-session retu…#1291wcole1-godaddy merged 9 commits intogodaddy:mainfrom
wcole1-godaddy merged 9 commits intogodaddy:mainfrom
Conversation
🦋 Changeset detectedLatest commit: 97c8fd3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
packages/react/src/components/checkout/payment/utils/ccavenue-return-provider.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/checkout/payment/payment-form.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/checkout/payment/checkout-buttons/ccavenue/ccavenue.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/checkout/payment/checkout-buttons/ccavenue/ccavenue.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/checkout/payment/checkout-buttons/ccavenue/ccavenue.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/checkout/payment/checkout-buttons/ccavenue/ccavenue.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/checkout/payment/checkout-buttons/ccavenue/ccavenue.tsx
Show resolved
Hide resolved
packages/react/src/components/checkout/payment/checkout-buttons/ccavenue/ccavenue.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/checkout/payment/checkout-buttons/ccavenue/ccavenue.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/checkout/payment/checkout-buttons/ccavenue/ccavenue.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/checkout/payment/checkout-buttons/ccavenue/ccavenue.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/checkout/payment/checkout-buttons/ccavenue/ccavenue.tsx
Outdated
Show resolved
Hide resolved
…rn flow - Add CCAvenue checkout button, icon, and return provider - Wrap with CCAvenueReturnProvider only when ccavenueConfig.accessCodeId is set - Use session from context (cookie) on CCAvenue return; remove sessionStorage token flow - Register CCAvenue in lazy-payment-loader, payment-form, types, and GraphQL - Update conditional-providers and use-confirm-checkout for CCAvenue - Add ccavenue localizations across locales - Update nextjs example and store actions Co-authored-by: Cursor <cursoragent@cursor.com>
- Pass ccavenueConfig from env in Next.js example (accessCodeId, redirectURL) - CCAvenue button: user-friendly message for AUTHORIZATION_FAILED, remove debug logs - CCAvenue return: use useConfirmCheckout.mutateAsync for redirect and error handling - Remove Record typecasting for payment.methods.ccavenue and descriptions in payment-form Co-authored-by: Cursor <cursoragent@cursor.com>
086c65f to
cda6075
Compare
…nment - Make CCAvenueConfig.redirectURL optional; derive gateway URL from apiHost (prod: secure.ccavenue.com, test: test.ccavenue.com) like Square CDN - Consumer only passes accessCodeId; example checkout no longer needs NEXT_PUBLIC_CCAVENUE_REDIRECT_URL Co-authored-by: Cursor <cursoragent@cursor.com>
packages/react/src/components/checkout/payment/payment-form.tsx
Outdated
Show resolved
Hide resolved
…g log, and label fallback - Remove optional redirectURL from CCAvenueConfig (always use derived gateway URL) - Remove console.log from CCAvenue checkout button - Use translation only for CCAvenue payment method label in payment form Co-authored-by: Cursor <cursoragent@cursor.com>
packages/react/src/components/checkout/payment/checkout-buttons/ccavenue/ccavenue.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/checkout/payment/checkout-buttons/ccavenue/ccavenue.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/checkout/payment/checkout-buttons/ccavenue/ccavenue.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/checkout/payment/checkout-buttons/ccavenue/ccavenue.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/checkout/payment/checkout-buttons/ccavenue/ccavenue.tsx
Outdated
Show resolved
Hide resolved
- CCAvenueCheckoutButton: require shipping methods when delivery is SHIP before allowing payment; use env-based redirect URL - CCAvenueReturnProvider: support jwt as auth fallback when session token unavailable for confirm checkout - checkout-env: formatting (quotes) Co-authored-by: Cursor <cursoragent@cursor.com>
Made-with: Cursor
pbennett1-godaddy
approved these changes
Feb 26, 2026
Collaborator
pbennett1-godaddy
left a comment
There was a problem hiding this comment.
- tested locally for auth and confirm checkout flows. ✅
wcole1-godaddy
approved these changes
Feb 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…rn flow
Summary
Changeset
Test Plan