remove spaces from payment value
This commit is contained in:
@@ -56,7 +56,7 @@ export async function yooKasaCreatePayment(amount: number, tariff: number) {
|
||||
|
||||
const createPayload: ICreatePayment = {
|
||||
amount: {
|
||||
value: amount.toLocaleString(),
|
||||
value: amount.toLocaleString().replace(/\s/g, ''),
|
||||
currency: 'RUB'
|
||||
},
|
||||
payment_method_data: {
|
||||
@@ -85,7 +85,6 @@ export async function yooKasaCreatePayment(amount: number, tariff: number) {
|
||||
|
||||
/* return payment; */
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user