update yookasa payment save method

This commit is contained in:
smanylov
2026-03-19 18:11:33 +07:00
parent f65513b1cb
commit 75bab70856
+2 -1
View File
@@ -59,7 +59,8 @@ export async function yooKasaCreatePayment(amount: number, tariff: number, opera
}, },
merchant_customer_id: userEmail, merchant_customer_id: userEmail,
capture: true, capture: true,
...(operationType === 'TOKEN' && {save_payment_method: false}) save_payment_method: operationType === 'TOKEN' ? false : true,
/* ...(operationType === 'TOKEN' && { save_payment_method: false }) */
}; };
try { try {