fix(subscription): prefer Stripe payment dialog
This commit is contained in:
@@ -36,14 +36,14 @@ export function SubscriptionCheckoutButton({
|
|||||||
}
|
}
|
||||||
|
|
||||||
launchedNonceRef.current = payment.launchNonce;
|
launchedNonceRef.current = payment.launchNonce;
|
||||||
const paymentUrl = getPaymentUrl(payment.payParams);
|
const clientSecret = getStripeClientSecret(payment.payParams);
|
||||||
if (paymentUrl) {
|
if (clientSecret) {
|
||||||
window.location.href = paymentUrl;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const clientSecret = getStripeClientSecret(payment.payParams);
|
const paymentUrl = getPaymentUrl(payment.payParams);
|
||||||
if (clientSecret) {
|
if (paymentUrl) {
|
||||||
|
window.location.href = paymentUrl;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user