From 75bab70856408caa3045e0781867db591ee30a4e Mon Sep 17 00:00:00 2001 From: smanylov Date: Thu, 19 Mar 2026 18:11:33 +0700 Subject: [PATCH] update yookasa payment save method --- src/app/actions/yooKassa.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {