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

    API Endpoints

    Overview#

    PayWay has separate domains for Production and Sandbox environments. You need to use the correct URL depending on whether you're working in a test (sandbox) or live (production) environment.
    The base URLs for each environment are as follows:

    Sandbox Environment (Testing) URL#

    Production Environment URL#

    Important Notes#

    Whitelisted Domains/IPs:
    You can only access the API from a domain or IP address that has been whitelisted by PayWay. Contact the PayWay Integration team to whitelist your domain or IP before you start using the API.
    Error Handling:
    If you try to call the API from a non-whitelisted domain, you'll get this error:6: wrong domain.
    If you try to call the API from the browser address bar or use the GET method, you'll get this error: 405 Method Not Allowed.
    Parameter Requirements:
    The developer must pass all necessary parameters related to the transaction.
    Include a hash of the parameters to successfully post the transaction to PayWay.
    The hash must include all the parameters being posted to PayWay. Developers may skip optional parameters that are not relevant to their use case.
    Previous
    Overview
    Next
    Ecommerce Checkout