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,
|
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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user