Scan2Pay
  • Scan2Pay API
  • API Introduction
    • API Environment
    • API Security
    • API Request Format
    • API Response Format
    • SDK
  • API Specification
    • Merchant-Presented QR Code
    • Customer-Presented QR Code
    • Credit Card Payment
    • EasyCard Manipulation
      • Obtain the device list
      • Sign on
      • Query the card number
      • Query the balance
      • Payment
      • Refund
      • Settlement
      • Payment Retry (EasyCard)
    • Refund
    • Single Transaction Query
    • Multiple Transactions Query
    • New Multiple Transactions Query
    • Invoice Query
  • Payment Notification
  • Appendix
    • Payment Method Code
    • Transaction Status Code
    • EasyCard Transaction Status Code
    • Printing Information for EasyCard Transaction
    • Card Reader Setup
Powered by GitBook
On this page
  • Request
  • Signature Verification

Was this helpful?

Payment Notification

PreviousInvoice QueryNextAppendix

Last updated 6 years ago

Was this helpful?

To get notification of transaction result, merchant has to create a receiving API, and provide a URL with following spec:

https://<domain>/notifyMerchant

Request

Item

Data Type

Sample

Description

MchId

String

Account0001

Merchant ID

Result

String

0000

StoreOrderNo

String

PO0101001

Store order number

TotalFee

String

100

Transaction amount

Sign

String

Use the public key provided by intella for verification

Sign: Use the public key provided by intella for verification (Please note: use the correct public key for staging/production server).

Signature Verification

  1. Remove the “Sign” filed from the original response JSON. Save the content of the “Sign” filed for step 2.

  2. Do a base64 decode of the content of the “Sign” field. Replace the unicode-encoded characters with their original ASCII characters prior to the base64 decode. For example, replace "\u003d" by “=”.

  3. Verify the JSON data from step 1 with the sign data from step 2 by the RSA public key provided by intella with SHA256 algorithm.

Transaction Status Code