1. callback
Tarspay_en_INR
  • Access Guide
  • Core business process description
  • Attachment code table
  • deposit
    • Create a collection order
      POST
    • Get collection order results
      POST
    • utr query
      POST
    • utr supplement
      POST
  • withdraw
    • Create payment order
      POST
    • Get payment order results
      POST
  • Account Balance
    • Get balance information
      POST
  • callback
    • Callback notification interface (customized by merchant)
      POST
  1. callback

Callback notification interface (customized by merchant)

POST
notifyUrl
Signature rules: After JSONizing the request parameters (parameters are in order), put the obtained signature in the header, obtain the signature directly from the response header, and use verifyEcdsaSignature() in the tool class to verify the signature.
This interface is implemented by the merchant itself. After receiving our callback, it has nothing to do with the business status. Once you receive our notification, please return the string OK. There is no need to return JSON format data, and it is handled by the merchant. Ensure the idempotence of the business, multiple notifications will only be processed once

Request

Header Params

Body Params application/json

Example
{
	"bizType": 1,
	"currency": "INR",
	"fee": "100",
	"mchNo": "M1688443660",
	"mchOrderNo": "YN220221122000000695",
	"orderAmount": "100",
	"payAmount": "100",
	"payOrderId": "P1742079917839712257",
	"state": 2
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'notifyUrl' \
--header 'X-RESP-SIGNATURE: 3046022100ae8634a9db66c069030483012e7d0e38ebca6d924b82d8bb2e240764dafeb4f3022100ba3e3bd90346652e681b4b1b25e55d983002d84160fb9c696fb20ea3e4742e76' \
--header 'Content-Type: application/json' \
--data-raw '{
	"bizType": 1,
	"currency": "INR",
	"fee": "100",
	"mchNo": "M1688443660",
	"mchOrderNo": "YN220221122000000695",
	"orderAmount": "100",
	"payAmount": "100",
	"payOrderId": "P1742079917839712257",
	"state": 2
}'

Responses

🟢200成功
application/json
Body

Example
OK
Modified at 2024-01-12 09:13:18
Previous
Get balance information
Built with