Skip to content

Conversation

@xlisachan
Copy link
Contributor

@xlisachan xlisachan commented Jan 22, 2026

Because

  • Sentry events frequently stating the "Server Components render" error occur for the CheckoutForm component

    • CheckoutForm is a client component, but it is importing the Node server SDK for Stripe causing Next to try to bundle Stripe Node SDK into the client build and surfacing the Server Components render error
    • Validation for paymentProvider was expecting an enum
  • This occurred as some of the options for payment methods (e.g. Apple Pay, Google Pay) during checkout were not considered valid payment provider types.

  • We should distinguish payment providers and payment methods.

This pull request

  • Updates definition/usage of payment providers vs methods

Issue that this pull request solves

Closes: PAY-3439

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.

@xlisachan xlisachan requested a review from a team as a code owner January 22, 2026 16:19
@xlisachan xlisachan force-pushed the PAY-3439 branch 5 times, most recently from 6b5861a to 01d5ee3 Compare January 22, 2026 23:54
Because

Sentry events frequently stating the "Server Components render" error occur for the CheckoutForm component
        CheckoutForm is a client component, but it is importing the Node server SDK for Stripe causing Next to try to bundle Stripe Node SDK into the client build and surfacing the Server Components render error
        Validation for paymentProvider was expecting an enum

This occurred as some of the options for payment methods (e.g. Apple Pay, Google Pay) during checkout were not considered valid payment provider types.

We should distinguish payment providers and payment methods.

This pull request

Updates definition/usage of payment providers vs methods

Issue that this pull request solves

Closes: PAY-3439
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