mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #26087 from overleaf/mf-change-to-stripe-uk
[web] Configure to use Stripe UK account GitOrigin-RevId: 0856f6da2caae8caf9887ec2acea8e7f0972e598
This commit is contained in:
@@ -8,8 +8,9 @@ export default async function handleStripePaymentAction(
|
||||
const clientSecret = error?.data?.clientSecret
|
||||
|
||||
if (clientSecret) {
|
||||
const stripePublicKey = getMeta('ol-stripeApiKey')
|
||||
const stripe = await loadStripe(stripePublicKey)
|
||||
// TODO: support both US and UK Stripe accounts
|
||||
const stripeUKPublicKey = getMeta('ol-stripeUKApiKey')
|
||||
const stripe = await loadStripe(stripeUKPublicKey)
|
||||
if (stripe) {
|
||||
const manualConfirmationFlow =
|
||||
await stripe.confirmCardPayment(clientSecret)
|
||||
|
||||
Reference in New Issue
Block a user