paymentsApi.createPayment returns an undefined result when it’s logged. Shouldn;'t I have some kind of JSON RESPONSE?
const { paymentResult } = await paymentsApi.createPayment({
idempotencyKey: uuidv4(),
sourceId:sourceId,
customerId:customerId,
amountMoney: {
currency: ‘USD’,
amount: total
}
});
console.log({paymentResult: paymentResult})