update yookasa payment save method
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user