mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
Merge pull request #27188 from overleaf/mf-admin-stripe-sync-subscription
[web] Make admin able to sync out-of-sync expired Stripe subscription from the admin panel GitOrigin-RevId: 1198eaa3f58756800ee078f9ff8e1d432ce32ef3
This commit is contained in:
@@ -24,7 +24,7 @@ export default async function handleStripePaymentAction(
|
|||||||
return { handled: false }
|
return { handled: false }
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
await postJSON('/user/subscription/sync')
|
await postJSON(`/user/subscription/sync`)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// if the sync fails, there may be stale data until the webhook is
|
// if the sync fails, there may be stale data until the webhook is
|
||||||
// processed but we can't do any special handling for that in here
|
// processed but we can't do any special handling for that in here
|
||||||
|
|||||||
@@ -252,7 +252,10 @@ export interface Meta {
|
|||||||
'ol-ssoDisabled': boolean
|
'ol-ssoDisabled': boolean
|
||||||
'ol-ssoErrorMessage': string
|
'ol-ssoErrorMessage': string
|
||||||
'ol-stripeAccountId': string
|
'ol-stripeAccountId': string
|
||||||
'ol-stripeCustomerId': string
|
'ol-stripeSubscriptionData': {
|
||||||
|
customerId: string
|
||||||
|
subscriptionState: string | null
|
||||||
|
}
|
||||||
'ol-subscription': any // TODO: mixed types, split into two fields
|
'ol-subscription': any // TODO: mixed types, split into two fields
|
||||||
'ol-subscriptionChangePreview': SubscriptionChangePreview
|
'ol-subscriptionChangePreview': SubscriptionChangePreview
|
||||||
'ol-subscriptionFeatures': {
|
'ol-subscriptionFeatures': {
|
||||||
|
|||||||
Reference in New Issue
Block a user