Add PayPal checkout provider
This commit is contained in:
@@ -21,9 +21,11 @@ interface CheckoutWizardPageProps {
|
||||
error?: string | null;
|
||||
profile?: 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;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -33,7 +35,7 @@ const CheckoutWizardPage: React.FC<CheckoutWizardPageProps> = ({
|
||||
privacyHtml,
|
||||
googleAuth,
|
||||
facebookAuth,
|
||||
lemonsqueezy,
|
||||
paypal,
|
||||
}) => {
|
||||
const page = usePage<{ auth?: { user?: { id: number; email: string; name?: string; pending_purchase?: boolean } | null }, flash?: { verification?: { status: string; title?: string; message?: string } } }>();
|
||||
const currentUser = page.props.auth?.user ?? null;
|
||||
@@ -93,7 +95,7 @@ const CheckoutWizardPage: React.FC<CheckoutWizardPageProps> = ({
|
||||
initialAuthUser={currentUser ? { id: currentUser.id, email: currentUser.email ?? '', name: currentUser.name ?? undefined, pending_purchase: Boolean(currentUser.pending_purchase) } : null}
|
||||
googleProfile={googleProfile}
|
||||
facebookProfile={facebookProfile}
|
||||
lemonsqueezy={lemonsqueezy ?? null}
|
||||
paypal={paypal ?? null}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user