Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Embedded Checkout (beta) #440

Merged
merged 9 commits into from
Sep 12, 2023
Merged

Conversation

cweiss-stripe
Copy link
Contributor

@cweiss-stripe cweiss-stripe commented Sep 6, 2023

Summary & motivation

This adds support for Embedded Checkout.

Example usage:

import * as React from 'react';
import {loadStripe} from '@stripe/stripe-js';
import {
  EmbeddedCheckoutProvider,
  EmbeddedCheckout
} from '@stripe/react-stripe-js';

const stripePromise = loadStripe('pk_test_123', {betas: ['embedded_checkout_beta_1']}));

const App = ({clientSecret}) => {
  const options = {clientSecret};

  return (
    <EmbeddedCheckoutProvider
      stripe={stripePromise}
      options={options}
    />
      <EmbeddedCheckout />
    </EmbeddedCheckoutProvider>
  )
}

Testing & documentation

Unit tests and manual testing via storybook.

@cweiss-stripe
Copy link
Contributor Author

@cyuen-stripe rebased on top of the custom checkout PR #439 -- ready for review!

Copy link
Contributor

@cyuen-stripe cyuen-stripe left a comment

Choose a reason for hiding this comment

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

LGTM

@cweiss-stripe
Copy link
Contributor Author

r? @bmathews-stripe

@bmathews-stripe
Copy link
Contributor

r? @pololi-stripe

^ very similar to your other PR. Can you review?

@cweiss-stripe cweiss-stripe merged commit 73da52b into master Sep 12, 2023
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.

4 participants