RASPay GATEWAY DOCS
  • Welcome
  • AUTHENTICATION
    • Credentials
    • Token
  • PAYMENT
    • PIX
      • Create PIX
  • WITHDRAW
    • PIX
      • Create Withdraw (CPF)
  • REPORT PAYMENT
    • PIX
      • List PIX Payment
      • Get PIX Payment
      • Get Pix Payment By E2E ID
  • REPORT WITHDRAW
    • PIX
      • List PIX Withdraw
      • Get PIX Withdraw
  • NOTIFICATION
    • Webhook
Powered by GitBook
On this page
  1. NOTIFICATION

Webhook

PreviousGet PIX Withdraw

Last updated 2 years ago

About callback notification, the client will receive a encoding message in JWT format by POST request in the URL that was informed in the moment of transaction has been created.

  • JWT (support for almost all programming languages)

The passphrase to validate the signature is the same password of the token and the result should be a non encoded object thats follow bellow.

Pix Payment

Pix payment callbacks will be throw only when transaction has been PAID.

curl --request POST \
  --url 'https://mywebsite.com.br/webhook' \
  --header 'Content-Type: application/json' \
  --data '{"bodyEncrypted":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjdmOGNmYTJiLWVhZjAtNDMyOC05OThmLTg3ZDlkMjk4MDVkMiIsInZhbHVlIjoxLjEsInBhaWRfdmFsdWUiOjEuMSwicGFpZF9hdCI6IjIwMjEtMDctMTNUMjE6MDA6NTQuMDAwWiIsInN0YXR1cyI6IlBBSUQifQ.-NpvXoAWY27AnJubRG9oqdWZy-SvG6y4gk8PjwhQIRg"}'

'{
	"id": "7f8cfa2b-eaf0-4328-998f-87d9d29805d2",
	"value": 1.10,
	"paid_value": 1.10,
	"paid_at": "2021-07-13T21:00:54.000Z",
	"status": "PAID",
	"conciliation_id": "66430ca556b5419da2dde7d46"
    	"end_to_end_id": "E18236120202211030409s00e406e4f7",
}'
https://jwt.io/