PAYON Payment Gateway
  • Table of Contents
  • Revision History
  • How is Work
    • PAYON PG PAYMENT
      • PAYON's Wallet Payment via PAYON Mobile App
      • PAYON Payment via PAYON's Card
      • CREDIT/DEBIT Online Payment
      • PPCBank Mobile Pay via PPCBank Mobile App(Coming Soon)
      • KHQR Online Payment
      • Binding Payment via PAYON's Card
      • Binding Payment via Credit/Debit's Card
  • PayOn PG Overview
    • Desktop Views
      • PAYON Payment Method
        • PAYON Card Payment
        • PAYON QR Payment
      • Credit/Debit Payment
      • KHQR Payment
      • PPCBank Payment
    • Mobile Views
      • PAYON Payment Method
      • Credit/Debit Payment Method
      • KHQR Payment
        • Bakong APP
        • PPCBank App
        • Other Bank App
      • PPCBank Payment
    • Obtain your API Keys
    • Platform Application Settings
  • Work flows
    • Payment Request Workflow
    • Page Redirection Workflow
  • Getting Started
    • Generate Checkout Link
    • Try redirect to Checkout Link
    • Test your payment
    • Add Card(Create Binding)
  • PAYON API Reference
    • Payment Order Registration
    • Cancellation Payment
    • Pre Auth Completion Payment
    • Refunds Payment
    • Transaction Orders History
    • Get Transaction Status
    • Push Back Notification
    • Create Binding
    • Get Binding List
    • Create Binding PIN
    • Enable / Disable PIN
    • Merchant Reconciliation
  • TEST Cards and Accounts
    • Test Card&Account
  • PAYON Library
  • PayOn Library
    • How to use PayOn Library
    • How to encrypt data with RSA
  • PAYON APPS
    • Environments
  • 3RD PARTY APPS
    • PPCBANK Environment
    • Bakong Environment
Powered by GitBook
On this page

Was this helpful?

  1. Getting Started

Generate Checkout Link

PreviousPage Redirection WorkflowNextTry redirect to Checkout Link

Last updated 2 years ago

Was this helpful?

PAYON Checkout Link is a simple Internet payment system created for websites and apps to collect payment directly. Customer only have to enter their credit/debit card or online banking/e-wallet details.

Generate PAYON Checkout Link Plugin

For integration with PAYON, a merchant will be provided with for generate checkout Link Plugin to embed to merchant's checkout site.

Initialize PAYON Checkout Link's library

JAVA

import com.payon.pg.aggregator.ecommerce.gateway.client.CheckoutURIBuilder;
import com.payon.pg.aggregator.ecommerce.gateway.client.CheckoutURIBuilder.Environment;

public class OrderController {

public static void main(String[] args) throws IOException, InterruptedException {


CheckoutURIBuilder checkoutURIBuilder = CheckoutURIBuilder.builder()
						.env(Environment.TEST)// TEST:for TEST's environment,PRODUCTION: production
						.apiKey(YOUR API KEY)
						.merchantId(YOUR MERCHANT ID)
						.termId(YOUR TERMINAL ID)
						.txId(YOUR TRANSACTION ID)
						.amount(YOUR CHECK OUT AMOUNT)
						.description(YOUR ORDER DESCRIPTION)
	                                        .sellerId(YOUR SELLER ID)
			                        .buyerId(YOUR BUYER ID)
						.currency(YOUR CURRENCY)
						.build();
			}

}

PHP


	<?php
		require_once('CheckoutURIBuilder.php');
		$lang        = "en";
		$merchantId  = "YOUR MERCHANT ID";
		$termId      = "YOUR TERM ID";
		$amount      = "YOUR CHECK OUT AMOUNT";
		$txId        = "YOUR TRANSACTION ID";
		$currency    = "YOUR CURRENCY";
		$buyerId    = "YOUR BUYER ID";
		$sellerId    = "YOUR SELLER ID";
		$description    = "YOUR DESCRIPTION";
		$apiKey        = "YOUR API KEY";
		$checkoutURIBuilder = new CheckoutURIBuilder($lang, $merchantId, $termId, $txId, $amount, $currency, $redirectUri, $apiKey,$buyerId,$sellerId,$description);
		$env = new Environment();
		// get test url function $env::getTestUrl() and get real url function $env::getRealUrl()
		$url = $checkoutURIBuilder->toCheckoutUrlString();
		echo "<a href='".$url."'>".$url."<br/>";
	
?>
	

Get Checkout Link

JAVA

String checkoutURI = checkoutURIBuilder.toCheckoutUrlString()

PHP

 <?php
     $checkoutURI = $checkoutURIBuilder::toCheckoutUrlString();
 ?>

Arguments

environment mode(TEST,PRODUCTION)

Y

env

Merchant's API key, will provided after merchant registration.

Y

apiKey

Merchant's terminal identification

Y

termId

Merchant's identification

Y

merchantId

Total amount to be checkout

Y

amount

Currency code (KHR, USD)

Y

currency

Order Description

O

description

Buyer's identification

O

buyerId

Seller's identification

O

sellerId

PAYON,CREDIT_DEBIT,PPCBANK_TRANSFER

O

paymentMethod

PAYON's library