mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +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)
|
||||
|
||||
@@ -240,8 +240,8 @@ export interface Meta {
|
||||
'ol-splitTestVariants': { [name: string]: string }
|
||||
'ol-ssoDisabled': boolean
|
||||
'ol-ssoErrorMessage': string
|
||||
'ol-stripeApiKey': string
|
||||
'ol-stripeCustomerId': string
|
||||
'ol-stripeUKApiKey': string
|
||||
'ol-subscription': any // TODO: mixed types, split into two fields
|
||||
'ol-subscriptionChangePreview': SubscriptionChangePreview
|
||||
'ol-subscriptionId': string
|
||||
|
||||
Reference in New Issue
Block a user