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:
Kristina
2025-06-09 08:05:09 +00:00
committed by Copybot
parent 9e9ad3c005
commit a8df91e91b
9 changed files with 60 additions and 49 deletions
@@ -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)