Payment Methods
Create a payment method
Creates a payment method. Served by core-api or payments-api depending on the organization's rollout, which may enable payments-api per payment method type, in the same response shape either way.
post/v1/payment_methods
Request
- Base URLhttps://orders-api.paymongo.com
- URLhttps://orders-api.paymongo.com/v1/payment_methods
- AuthHTTP basic
Request body
Example request
{
"data": {
"attributes": {
"expiry_seconds": 3600,
"type": "card"
}
}
}Response
OK
Example response
{
"data": {
"id": "pm_abc123",
"type": "payment_method"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.