GALAXY PAY - API Reference Guide
  • Payment Gateway
    • Payment solution
      • General integration steps
      • Modal checkout
        • Integration Guide for Web Desktop & Mobile Browser
      • Merchant checkout
      • Merchant Hosted Checkout
      • Pay with option
      • Pay with token
      • Fast pay
      • Pay with QR
      • Pay with E-Wallet
    • Demo
    • API Specification
      • Integration Keys
      • Definitions
        • Message Structure
        • Signature Algorithm
      • Data Flight
      • PAYMENT
        • Pay
        • Pay with create token
        • Pay with token
        • Pay with Option
        • Pay with QR
        • Checkout(for modal checkout)
        • Payment Link
        • Fast pay
      • TOKENIZATION
        • Merchants
          • Delete Token
        • Customers
          • Query Tokens
          • Remove Token
      • MANAGEMENT
        • Query Transaction
        • Refund Transaction
        • Void Transaction
        • Capture Transaction
      • IPN & CALLBACK
        • Result & IPN Callback
        • Cancel Callback
    • Appendix
      • Response Codes
      • Currencies
      • Domestic Banks
      • International Card Brands
      • eWallets
      • Payment Hubs
        • Apple Pay Validation
      • QR Payment Providers
      • Buy Now Pay Later
      • Test Information
      • Glossary
  • Payment Link
    • IPN callback
  • Archive
    • QR Payment (Old version)
      • API create QR
      • API query status
      • How to test
    • API create PaymentLink
Powered by GitBook
On this page
  1. Archive

API create PaymentLink

Endpoint URL for UAT:https://uat-pms.galaxypay.vn/api-ex/payment-link/create

Request Message


curl --location 'https://uat-pms.galaxypay.vn/api-ex/qrpayment/create' \
--header 'X-Caller: YOUR_CALLER_ID' \
--header 'X-Api-Key: YOUR_API_KEY' \
--header 'X-Signature: c9656c694bba19c50df209d74686cc19d4f3569709e6e7d65452a8b5cd62d90a' \
--header 'Content-Type: application/json' \
--header 'Cookie: SESSION=ZGJhNjEwODYtZTE5Mi00NTg0LTlhY2MtZGU5ODBjMzkxZWQw' \
--data '{
  "amount": 112000,
  "linkName":"Thanh toán hoá đơn ORDER123",
  "requestId":"cd80bae6-3d24-44a8-9760-71b3e17fe27c",
  "description": "Thanh toán hoá đơn",
  "expiryDuration": 3,
  "paymentMethod": [
    "GPAY",
    "MPGS",
    "QRPAY",
    "MOMO",
    "ZALOPAY",
    "NAPAS"
  ],
  "customerField": [
    "email",
    "fullname",
    "phone",
    "shippingAddress"
  ],
    "orderReference": "TS1909",
    "ipnUrl":"https://abc.com/api/ipn/123"
}'

Body

Level
Field Name
Data Type
Description

1

amount

Numeric(16) mandatory

Transaction amount

1

linkName

Alphanumeric mandatory

Name of payment link, it show in portal

1

requestId

Alphanumeric(50) mandatory

Unique ID for each transaction request

Recommend: GUID

1

description

Alphanumeric(250) mandatory

A brief description of the Payment Link

1

expiryDuration

Numeric mandatory

Number of days at which the Payment Link expired.

1

paymentMethod

Alphanumeric mandatory

List of payment method: "GPAY", "MPGS", "QRPAY", "MOMO", "ZALOPAY", "NAPAS"

1

customerField

Alphanumeric optional

Collect additional information from your customer using custom fields. Up to 4 fields are supported.

1

orderReference

Alphanumeric optional

Reference number tagged to a Payment Link

1

ipnUrl

Alphanumeric optional

IPN URL

Body

Response Message

{
    "requestId": "cd80bae6-3d24-44a8-9760-71b3e17fe27c",
    "responseDateTime": "20230227231841",
    "responseCode": "200",
    "responseData": {
          "shortLink": "https://uat-s.galaxypay.vn/PFwP2YsLoyuwoXeF7",
          "orderNo": "9354202307051688550745270"
    }
}
PreviousHow to test

Last updated 1 year ago