---
title: How Checkout Works
slug: checkout-options/how-it-works
excerpt: >-
  Understand the Pine Labs checkout lifecycle, including order creation, payment
  processing, transaction states, verification, and fulfillment flows.
hidden: false
sidebar_order: 2
metadata:
  title: How Checkout Works – Pine Labs Payment Gateway
  description: >-
    Understand the Pine Labs checkout lifecycle — from creating an order through
    accepting payment to fulfilling the transaction. Learn the API flow, payment
    states, and verification steps.
  robots: index
---
## Life Cycle

Learn about the different statuses acquired during the checkout flow for our Payments.

The figure below shows the life cycle of an Payments.


<DocImage src="/cdn/img/payments-lifecycle-1779181483660.png" alt="payments-lifecycle" caption="" />


The table below list the various statuses that our Payments can have during its life cycle.


| Status | Description |
| :------- | :------- |
|    `PENDING`      |    When the create payment request is successfully received by Pine Labs Online.      |
|     `AUTHORIZED`     |  **Only when `pre_auth` is `true`**. When the payment is received successfully. The money is credited from the payer account and waiting for the partner authorization to credit to the partner bank account.        |
|    `PROCESSED`      |     When the payment is received successfully. The money is debited from the payer account and credited to the partner bank account successfully.     |
|`CANCELLED`| When the payment get cancelled.**Note**: When `pre_auth` is set to `true`.The partner can cancel the payment if there is a failure in delivering the product or service. Similarly, the customer also has the option to cancel the payment during the checkout process. |
|     `FAILED`     |    When the payment fails, this can be for many reasons such as maximum retries for OTP verification, partner downtime etc.      |
