Skip to content

feat(checkout): add CCAvenue payment provider and cookie-session retu…#1291

Merged
wcole1-godaddy merged 9 commits intogodaddy:mainfrom
asaini-godaddy:vnext-710674
Feb 26, 2026
Merged

feat(checkout): add CCAvenue payment provider and cookie-session retu…#1291
wcole1-godaddy merged 9 commits intogodaddy:mainfrom
asaini-godaddy:vnext-710674

Conversation

@asaini-godaddy
Copy link
Contributor

…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

Summary

Changeset

  • Changeset added (docs)

Test Plan

@asaini-godaddy asaini-godaddy requested a review from a team as a code owner February 18, 2026 20:34
@changeset-bot
Copy link

changeset-bot bot commented Feb 18, 2026

🦋 Changeset detected

Latest commit: 97c8fd3

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

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

asaini-godaddy and others added 2 commits February 22, 2026 18:22
…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>
…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>
…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>
pbennett1-godaddy and others added 5 commits February 24, 2026 12:38
- 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>
Copy link
Collaborator

@pbennett1-godaddy pbennett1-godaddy left a comment

Choose a reason for hiding this comment

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

  • tested locally for auth and confirm checkout flows. ✅

@wcole1-godaddy wcole1-godaddy merged commit eaa8496 into godaddy:main Feb 26, 2026
3 checks passed
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.

3 participants