diff --git a/src/app/actions/yooKassa.ts b/src/app/actions/yooKassa.ts index e595e1f..14fa264 100644 --- a/src/app/actions/yooKassa.ts +++ b/src/app/actions/yooKassa.ts @@ -59,7 +59,8 @@ export async function yooKasaCreatePayment(amount: number, tariff: number, opera }, merchant_customer_id: userEmail, capture: true, - ...(operationType === 'TOKEN' && {save_payment_method: false}) + save_payment_method: operationType === 'TOKEN' ? false : true, + /* ...(operationType === 'TOKEN' && { save_payment_method: false }) */ }; try {