Hi @Runcorn,
here is the raw JSON which was sent:
{
“event”: {
“checksum”: “d23b*****7b11”,
“tid”: 1234567890,
“type”: “PAYMENT”
},
“result”: {
“status”: “FAILURE”,
“status_code”: 100,
“status_text”: “Successful”
},
“transaction”: {
“amount”: 0,
“currency”: “EUR”,
“date”: “2023-04-19 13:39:17”,
“due_date”: “2023-05-03”,
“mandate_date”: “2023-04-19”,
“mandate_ref”: “NN-123456789”,
“order_no”: “97”,
“payment_data”: {
“account_holder”: “Max Mustermann”,
“bic”: “ABCDEFXXX”,
“iban”: “DEXXXXXXXXXXXXXX1956”,
“token”: “R2cB16qN"
},
“payment_type”: “DIRECT_DEBIT_SEPA”,
“status”: “CONFIRMED”,
“status_code”: 100,
“test_mode”: 1,
“tid”: 1234567890
},
“merchant”: {
“project”: 1234,
“project_name”: “Developer Project”,
“project_url”: “https://my.domain.com”,
“vendor”: 4
},
“customer”: {
“billing”: {
“city”: “Teststadt”,
“country_code”: “DE”,
“house_no”: “3”,
“street”: “Teststraße”,
“zip”: “12345”
},
“customer_ip”: “1.2.3.4”,
“customer_no”: “2”,
“email”: “my@mail.de”,
“first_name”: “Max”,
“gender”: “u”,
“last_name”: “Mustermann”,
“tel”: “1234567889”
},
“custom”: {
“input2”: “reference_tid”,
“input3”: “reference_token”,
“inputval2”: “1234567890”,
“inputval3”: "02c0TZZ1”,
“reference_tid”: 1234567890,
“reference_token”: “02c0****TZZ1”
}
}
Here is the raw JSON received:
[
{
“{"event":{"checksum":"d23bc9fca55d0791e957b11","tid":1234567890,"type":"PAYMENT"},"result":{"status":"FAILURE","status_code":100,"status_text":"Successful"},"transaction":{"amount":0,"currency":"EUR","date":"2023-04-19 13:39:17","due_date":"2023-05-03","mandate_date":"2023-04-19","mandate_ref":"NN-123456789","order_no":"97","payment_data":{"account_holder":"Max Mustermann","bic":"ABCDEFXXX","iban":"DEXXXXXXXXXXXXXX1956","token":"R2cB16qN"},"payment_type":"DIRECT_DEBIT_SEPA","status":"CONFIRMED","status_code":100,"test_mode":1,"tid":1234567890},"merchant":{"project":1234,"project_name":"Developer Project","project_url":"https://my.domain.com\",\“vendor\”:4},\“customer\”:{\“billing\”:{\“city\”:\“Teststadt\”,\“country_code\”:\“DE\”,\“house_no\”:\“3\”,\“street\”:\“Teststraße\”,\“zip\”:\“12345\”},\“customer_ip\”:\“1.2.3.4\”,\“customer_no\”:\“2\”,\“email\”:\"my@email.de","first_name":"Max","gender":"u","last_name":"Mustermann","tel":"1234567889"},"custom":{"input2":"reference_tid","input3":"reference_token","inputval2":"1438","inputval3":"02c0TZZ1","reference_tid":1234567890,"reference_token":"02c0*TZZ1"}}”: “”
}
]
Which looks like this in the scenario:
I’ve ran both JSON string against a validator successfully. So I guess the issue you detected was cause by myself when I was obfuscating the JSON message.
Best regards,
Marcus