Notification of Virtual PIX Account Payment

Notification of virtual PIX account payments

Notification of virtual account payment follows the same rule as notification of other payment methods. The only difference is the "transfer_account" part. Check here to view the general rules of notification.

Example

curl --location --request POST 'http://merchant/callback/success' \\merchant's notify_url
--header 'Pagsmile-Signature: t=1645516741, v2=f6e345eca80d74c470ba456b7b559046f22b49fcaad9b81938ff1488b0f497ac' \
--header 'Content-Type: application/json' \
--data-raw '{
    * "amount": "50.00",
    * "out_trade_no": "202201010354002",
    * "method": "PIX",
    * "trade_status": "SUCCESS",
    * "trade_no": "2022022201111100011",
    * "currency": "BRL",
    * "app_id": "162************38",
    * "user": {
    *     "buyer_id": "buyer_0101_0001",
          "email": "test@pagsmile.com",
          "identify": { //Same as identification.
              "number": "11032341882",
              "type": "CPF"
          },
          "identification": {
	      "number": "11032341882",
	      "type": "CPF"
	  },
          "ip": "0.0.0.0",
          "name": "test user name"
      },
      "payer": { 
          "account": {
	      "number": "",
	      "type": ""
	  },
	  "identification": {
	      "number": "",
	      "type": ""
	  },
	  "username": "",
	  "bank": {
	      "agency": "",
	      "bank_id": "",
	      "bank_name": ""
	  }
      },
    * "timestamp": "1645516741",
    * "transfer_account": {
    *     "account_id": "DP8F********ME4T",
    *     "qr_code": "00020126580014br.gov.bcb.pix013627a44d0a-0736-4bbf-a4a4-6e11063973315204000053039865406100.005802BR5908PAGSMILE6008So Paulo62230519mpqrinter123742074363049E0B",
    *     "transfer_timestamp": 1645516741
      }
      }'

Note: 162************38 is pagsmile's test app id for sandbox, and MTYyNTgyOTIxNDUzMTY2Mzg6UGFnc21pbGVfc2tfZDUwMWQ1ZGNkNTI5OGQ5N2MwNmUzYjI4YjA2OWZjZmY3NDU5ZjY2NzNiMjFjMTFlYTY3NDM5MDgzOTZkOTYxNQ== is authorization token associated with the test app id.

Please use your own app_id and generate your own authorization token when testing.

Last updated

Was this helpful?