This document provides an overview of the Payment API available on our platform. It includes information on endpoints, request/response formats, and usage examples.

Endpoints

  • /payment/initialize - Initialize a payment session.
  • /payment/authorize - Authorize a payment.
  • /payment/capture - Capture a payment.
  • /payment/refund - Process a refund.

Usage Example

Here is an example of how to initialize a payment session:

// Initialize a payment session
POST /payment/initialize
{
  "amount": 100.00,
  "currency": "USD",
  "return_url": "/payment/success",
  "cancel_url": "/payment/cancel"
}

Upon successful initialization, the API will return a payment session ID that can be used to track the payment status.

Further Reading

For more detailed information, please refer to our full API documentation.


Payment Process Flowchart