1
0

fix: medal upgrade for new payment methods (#4581)

This commit is contained in:
Calum H.
2025-10-19 13:31:15 +01:00
committed by GitHub
parent fa7d1d7942
commit 699a049c69

View File

@@ -162,7 +162,7 @@ async function initiatePayment(body: any): Promise<any> {
if (subscription.value) {
const transformedBody = {
interval: body.charge?.interval,
payment_method: body.id,
payment_method: body.type === 'confirmation_token' ? body.token : body.id,
product: body.charge?.product_id,
region: body.metadata?.server_region,
}