Payments
The Payment Resource
Creating a Payment
/**
* These are the required properties
* @param {Object} data Data payload
* @param {Object} data.attributes Payload attributes
* @param {number} data.attributes.amount Amount int32
* @param {number} data.attributes.currency Three-letter ISO currency code, in uppercase. PHP is the only supported currency as of the moment.
* @param {Object} data.attributes.source The source object from checkout
* @param {string} data.attributes.source.id Id of a Source resource
* @param {string} data.attributes.source.type Type of a Source resource. Possible value is 'source'.
*/
const result = await paymongo.payments.create(data);
Payload
Listing Payments
Results
Retrieving a Payment
Last updated
Was this helpful?