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 URL
    https://orders-api.paymongo.com
  • URL
    https://orders-api.paymongo.com/v1/payment_methods
  • Auth
    HTTP 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.