Merge branch 'preview/discount-pages' into 'main'
Preview/discount pages See merge request witapp/aura-webapp!48
This commit is contained in:
commit
bfde271982
@ -67,6 +67,8 @@ export interface SubscriptionReceipt {
|
||||
error: string;
|
||||
links?: IPayPalLink[];
|
||||
stripe_status?: string;
|
||||
checkout_url?: string;
|
||||
checkout_session?: unknown;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@ -81,6 +81,10 @@ function PaymentModal({ activeSubscriptionPlan }: IPaymentModalProps) {
|
||||
});
|
||||
const { id } = subscription_receipt;
|
||||
const { client_secret } = subscription_receipt.data;
|
||||
const { checkout_url } = subscription_receipt.data;
|
||||
if (checkout_url?.length) {
|
||||
window.location.href = checkout_url;
|
||||
}
|
||||
setSubscriptionReceiptId(id);
|
||||
setClientSecret(client_secret);
|
||||
setIsLoading(false);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user