Developer Suite
Register Sandbox
Register Sandbox
    • Overview
    • API Endpoints
    • Ecommerce Checkout
      • Purchase
        POST
      • Get a transaction details
        POST
      • Close transaction
        POST
      • Check transaction
        POST
      • Refund API
        POST
      • Get transaction list
        POST
      • Exchange rate
        POST
    • Checkout Plugins
      • Prestashop
      • Woocommerce
    • Credentials on File
      • Link Account
        POST
      • Link Card
        POST
      • Purchase using token
        POST
      • Remove account token
        POST
      • Remove card token
        POST
      • Get linked account details
        POST
    • ABA QR API
      • QR API
        POST
    • Payment Link
      • Create payment link
        POST
      • Get payment link details
        POST
    • Pre-auth
      • Complete pre-auth transactions
        POST
      • Complete pre-auh transaction with payout
        POST
      • Cancel pre-purchase transaction
        POST
    • Payout
      • Payout
      • Update a beneficiary status
      • Add a beneficiary to whitelist
    • KHQR Guideline
    • Resources

    Pre-auth

    1. Introduction#

    Pre-auth (pre-authorization) is a temporary hold placed on a customer’s funds to confirm they have enough money for a transaction. The money is not immediately deducted, but it is reserved for potential payment. Later, the merchant can either capture the amount (finalize the charge) or release it (cancel the hold).
    It’s commonly used in hotels, car rentals, gas stations, and online payments where the final amount may change before the transaction is completed.
    Think of it like a security deposit—the money is set aside but not actually spent until the final charge is confirmed.

    2. Integration Steps#

    Before you start, make sure you have the following:
    PayWay Sandbox Account – Register here to test transactions.
    Sandbox Merchant ID & API Key—You’ll receive these via email after registering for the sandbox.
    1
    Create pre-auth transaction
    Checkout API
    Purchase with AoC/CoF Token
    Please follow Purchase API specification.
    Set type of the requst to pre-auth
    Supported payment methods: ABA PAY, KHQR, Credit/Debit Card (Vsia, Mastercard, JCB, UPI)
    2
    Complete pre-auth
    Without payout
    With payout
    To complete pre-auth without payout please follow Complete pre-purchase transaction API specification.
    3
    Cancel pre-auth
    To cancel pre-auth please follow Cancel pre-purchase transaction API specification.
    If don't cancel or complete pre-auth transaction within 30 days (default value), the transaction will automatically cancel. The fund will be return back to the payer.
    Previous
    Get payment link details
    Next
    Complete pre-auth transactions