Add PayPal checkout provider
This commit is contained in:
@@ -27,9 +27,11 @@ interface CheckoutWizardProps {
|
||||
initialStep?: CheckoutStepId;
|
||||
googleProfile?: OAuthProfilePrefill | null;
|
||||
facebookProfile?: OAuthProfilePrefill | null;
|
||||
lemonsqueezy?: {
|
||||
store_id?: string | null;
|
||||
test_mode?: boolean | null;
|
||||
paypal?: {
|
||||
client_id?: string | null;
|
||||
currency?: string | null;
|
||||
intent?: string | null;
|
||||
locale?: string | null;
|
||||
} | null;
|
||||
}
|
||||
|
||||
@@ -290,7 +292,7 @@ export const CheckoutWizard: React.FC<CheckoutWizardProps> = ({
|
||||
initialStep,
|
||||
googleProfile,
|
||||
facebookProfile,
|
||||
lemonsqueezy,
|
||||
paypal,
|
||||
}) => {
|
||||
const [storedGoogleProfile, setStoredGoogleProfile] = useState<OAuthProfilePrefill | null>(() => {
|
||||
if (typeof window === 'undefined') {
|
||||
@@ -382,7 +384,7 @@ export const CheckoutWizard: React.FC<CheckoutWizardProps> = ({
|
||||
initialStep={initialStep}
|
||||
initialAuthUser={initialAuthUser ?? undefined}
|
||||
initialIsAuthenticated={Boolean(initialAuthUser)}
|
||||
lemonsqueezy={lemonsqueezy ?? null}
|
||||
paypal={paypal ?? null}
|
||||
>
|
||||
<WizardBody
|
||||
privacyHtml={privacyHtml}
|
||||
|
||||
Reference in New Issue
Block a user