Thanks for your support, could you guide me further as this is not giving me the correct response.
server.js:
amountMoney: {
// the expected amount is in cents, meaning this is $1.00.
amount: ‘152000’,
// If you are a non-US account, you must change the currency to match the country in which
// you are accepting the payment.
currency: ‘GBP’,
},
};
card.html:
async function createPayment(token) {
const body = JSON.stringify({
locationId,
sourceId: token,
amount: ‘152000’,
});
my response:
"payment": {
"id": "TP15ECTb4aXEvmtvz26K5iS0X1XZY",
"created_at": "2023-03-17T16:34:07.624Z",
"updated_at": "2023-03-17T16:34:07.855Z",
"amount_money": {
"amount": 152000,
"currency": "GBP"
},
"total_money": {
"amount": 152000,
"currency": "GBP"
},
"approved_money": {
"amount": 152000,
"currency": "GBP"
},