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 = {
|
const createPayload: ICreatePayment = {
|
||||||
amount: {
|
amount: {
|
||||||
value: amount.toLocaleString(),
|
value: amount.toLocaleString().replace(/\s/g, ''),
|
||||||
currency: 'RUB'
|
currency: 'RUB'
|
||||||
},
|
},
|
||||||
payment_method_data: {
|
payment_method_data: {
|
||||||
@@ -85,7 +85,6 @@ export async function yooKasaCreatePayment(amount: number, tariff: number) {
|
|||||||
|
|
||||||
/* return payment; */
|
/* return payment; */
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user