# Payment

Our Payment REST API is designed to provide seamless and secure acceptance of online payments, making the payment process easier for you. With a range of built-in functionalities, our API offers the necessary actions required at each step of the payment process, ensuring a smooth experience for both you and your customers.

# Payment process

# Step 1: Payment

A payment can be of 2 Intent:

  1. Sale : Authorize the transaction. After successful authorization, the transaction is immediately captured.
  2. Authorize: Authorize the transaction

# Step 2: Capture or Void

In case of a successful payment with the intent sale, this step does not apply.

If the transaction was only authorized:

  • If the merchant is comfortable with the sale and can fulfill the customer's needs, then the merchant will Capture the payment, thus finalizing the transaction, and the funds will transfer to the merchant.

  • If for whatever reason, the merchant is not able to fulfill the needs of the customer, then the merchant can Void the transaction. This is the simplest way to cancel a payment. Voiding a payment removes the hold on the funds, and returns them to the customer. The payment is now canceled, and there are no further actions to take.

# Step 3: Refund

If a customer changes their mind, or something goes wrong, and the transaction needs to be canceled after capture: a refund is processed. A refund returns the funds to the customer and reverses the sale.