You've already forked AstralRinth
forked from didirus/AstralRinth
fix: medal upgrade for new payment methods (#4581)
This commit is contained in:
@@ -162,7 +162,7 @@ async function initiatePayment(body: any): Promise<any> {
|
|||||||
if (subscription.value) {
|
if (subscription.value) {
|
||||||
const transformedBody = {
|
const transformedBody = {
|
||||||
interval: body.charge?.interval,
|
interval: body.charge?.interval,
|
||||||
payment_method: body.id,
|
payment_method: body.type === 'confirmation_token' ? body.token : body.id,
|
||||||
product: body.charge?.product_id,
|
product: body.charge?.product_id,
|
||||||
region: body.metadata?.server_region,
|
region: body.metadata?.server_region,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user