Example of Webhooks for SEPA

Payment Completed

For more information on Payment Completed Request and Response, see Payment Completed.

Webhook Payload

{
  "payload": {
    "accountId": "1002397300",
    "id": "90500680",
    "merchantRefNum": "MerchantRefSepaCharge",
    "amount": 3740,
    "currencyCode": "EUR",
    "status": "COMPLETED",
    "paymentType": "SEPA",
    "txnTime": "2022-03-25T04:00:00Z",
    "statusTime": "2022-03-23T10:24:31Z",
    "processorCode": "JPMCS",
    "dueDate": "2022-03-25T04:00:00Z",
    "billingDetails": {
      "zip": "90210",
      "country": "FR",
      "city": "San Jose",
      "phone": "16137779100",
      "street1": "5 main st",
      "street2": "Crescent"
    },
    "profile": {
      "firstName": "Jane",
      "lastName": "Doe",
      "phone": "16137779100",
      "email": "support@firepay.com"
    },
    "customerIp": "127.0.0.1",
    "settleWithAuth": true,
    "sepa": {
      "checkNumber": "164",
      "mandateReference": "9DBDA361ECCD4F02AAF7410876F51AE0",
      "bankReference": "9DBDA361ECCD4F02AAF7410876F51AE0",
      "iban": "GB86RBOS60161331926819",
      "lastDigits": "19",
      "bic": "RBOSGB2L"
    },
    "settlementId": "90500680",
    "settlementAmount": 3740,
    "settlementStatus": "PENDING"
  },
  "attemptNumber": "1",
  "type": "PAYMENT",
  "eventDate": "2022-03-25T04:00:00Z",
  "eventName": "PAYMENT_COMPLETED"
}

Settlement Cleared

The Settlement Cleared webhook will be triggered on the 6th business day after the settlement is completed, thus merchants need to wait till the clearing date.

  1. Initiate transaction with the request in Payment Completed event.

Settlement Cancelled

  1. Follow the steps in Payment Completed event to initiate the transaction.
  2. Copy the id from Payment Completed response and send that as a path variable in the below request.

For more information on Settlement Cancelled Request and Response, see Settlement Cancelled.

Webhook Payload

{
  "payload": {
    "accountId": "1002397300",
    "id": "90503900",
    "merchantRefNum": "MerchantRefSepaCharge",
    "amount": 1835,
    "currencyCode": "EUR",
    "status": "CANCELLED",
    "statusTime": "2022-03-23T11:20:23Z",
    "paymentType": "SEPA",
    "txnTime": "2022-03-23T07:18:35Z",
    "processorCode": "JPMCS"
  },
  "attemptNumber": "1",
  "type": "SETTLEMENT",
  "eventDate": "2022-03-23T07:18:35Z",
  "eventName": "SETTLEMENT_CANCELLED"
}

Payment Returned Completed

  1. Perform any transaction using the server to server method and save the transaction ID returned in the response.
  2. For more information on Payment Returned Completed Request and Response, see Payment Returned Completed.

  3. Login to the TEST netbanx portal and click Reports.
  4. Select Payment Method as DirectDebit and search with Transaction Id and click Go to open transaction details.
  5. Click Update Status in the History Section.
  6. Select Rejected with valid descriptions and Submit. (Transaction will change to Returned status)

Once the scheduled Publish event job runs, we will receive the webhook for Payment_Returned.

Webhook Payload

{
  "payload": {
    "accountId": "1002397300",
    "id": "90500680",
    "merchantRefNum": "MerchantRefSepaCharge",
    "amount": 3740,
    "currencyCode": "EUR",
    "status": "COMPLETED",
    "paymentType": "SEPA",
    "txnTime": "2022-03-25T04:00:00Z",
    "statusTime": "2022-03-23T10:24:31Z",
    "processorCode": "JPMCS",
    "dueDate": "2022-03-25T04:00:00Z",
    "billingDetails": {
      "zip": "90210",
      "country": "FR",
      "city": "San Jose",
      "phone": "16137779100",
      "street1": "5 main st",
      "street2": "Crescent"
    },
    "profile": {
      "firstName": "Jane",
      "lastName": "Doe",
      "phone": "16137779100",
      "email": "support@firepay.com"
    },
    "customerIp": "127.0.0.1",
    "settleWithAuth": true,
    "sepa": {
      "checkNumber": "164",
      "mandateReference": "9DBDA361ECCD4F02AAF7410876F51AE0",
      "bankReference": "9DBDA361ECCD4F02AAF7410876F51AE0",
      "iban": "GB86RBOS60161331926819",
      "lastDigits": "19",
      "bic": "RBOSGB2L"
    },
    "settlementId": "90500680",
    "settlementAmount": 3740,
    "settlementStatus": "PENDING"
  },
  "attemptNumber": "1",
  "type": "PAYMENT",
  "eventDate": "2022-03-25T04:00:00Z",
  "eventName": "PAYMENT_COMPLETED"
}

Settlement Completed

This event will trigger when you move the transaction status to Payment Returned in the netbanx portal. The steps are the same as for Payment Return Completed.

Payment Failed

For further assistance with your test account configuration, contact partnersupport@paysafe.com.

For more information on Payment Failed Request and Response, see Payment Failed.

Webhook Payload

{
  "payload": {
    "accountId": "1002397300",
    "id": "90546810",
    "merchantRefNum": "MerchantRefSepaCharge",
    "amount": 3607,
    "currencyCode": "EUR",
    "status": "FAILED",
    "paymentType": "SEPA",
    "txnTime": "2022-03-25T04:00:00Z",
    "statusTime": "2022-03-23T16:09:44Z",
    "processorCode": "JPMCS",
    "dueDate": "2022-03-25T04:00:00Z",
    "error": {
      "code": "1004",
      "message": "Operation not enabled"
    },
    "billingDetails": {
      "zip": "90210",
      "country": "FR",
      "city": "San Jose",
      "phone": "16137779100",
      "street1": "5 main st",
      "street2": "Crescent"
    },
    "profile": {
      "firstName": "Jane",
      "lastName": "Doe",
      "phone": "16137779100",
      "email": "support@firepay.com"
    },
    "customerIp": "127.0.0.1",
    "settleWithAuth": true,
    "sepa": {
      "checkNumber": "164",
      "mandateReference": "9DBDA361ECCD4F02AAF7410876F51AE0",
      "bankReference": "9DBDA361ECCD4F02AAF7410876F51AE0",
      "iban": "GB86RBOS60161331926819",
      "lastDigits": "19",
      "bic": "RBOSGB2L"
    }
  },
  "attemptNumber": "1",
  "type": "PAYMENT",
  "eventDate": "2022-03-25T04:00:00Z",
  "eventName": "PAYMENT_FAILED"
}

Did you find this page useful?