Integration Guide for Web Desktop & Mobile Browser
Step 1: Import tag <meta> for responsive
Step 2: Import tag <script> with src: https://uat-stc.galaxypay.vn/scripts/script-modal.js
Step 3: Create tag <div> with id = galaxy-pay-sdk in your checkout page
Step 4: Create callback function to receive payment result. See Result & IPN Callback for detail.
Step 5: Create callback function to close modal chekout.
Step 6: Call function galaxyPaySubmitPayment(endpoint, callback, option)
endpoint: Receive from API Checkout (see API checkout).
callback: The function to receive payment result.
option: The payment option (JSON object)
Example:
Last updated