Closed lebe1 closed 11 months ago
Hello @lebe1,
Thank you for your message. Can you please send us the endpoint URL of the webhook and response you are getting?
Kind regards, Viva Wallet E-commerce Support Team
Hello @lebe1,
We just wanted to follow up on the reply we sent. We were simply wondering if you read our response.
In any case this ticket will remain active for at least 24 hours, so that you can come back if you wish.
However, if you have any questions, please don't hesitate to reply here and we'd be happy to help!
Kind regards, Viva Wallet E-commerce Support Team
Hello @VivaWalletCustomerSupport,
my webhook URL right now is: https://workable-credible-mole.ngrok-free.app/api/webhooks/vivawallet/
This is the response, I receive:
{
"Url":"https://workable-credible-mole.ngrok-free.app/api/webhooks/vivawallet/",
"EventData":{
"Moto":false,
"BinId":42,
"Ucaf":"jMrqeJ+OPZu+CAEEWbYLCZgAAAA=",
"Email":"test@example.com",
"Phone":"1234567890",
"BankId":"NET_MASTER",
"Systemic":false,
"Switching":false,
"ParentId":null,
"Amount":1.00,
"ChannelId":"245a790d-c98d-4d80-ad97-a9b1efb5771e",
"TerminalId":80000000,
"MerchantId":"5779279b-4c1c-4504-aa25-46a13bb4f608",
"OrderCode":1503599509033143,
"ProductId":null,
"StatusId":"F",
"FullName":"Test Customer",
"ResellerId":null,
"DualMessage":false,
"InsDate":"2023-09-11T13:33:26.607",
"TotalFee":0.0,
"CardToken":"5984325974181FFDE001404E14C6B88CF3613891",
"CardNumber":"523929XXXXXX0101",
"TipAmount":0.0,
"SourceCode":"6343",
"SourceName":"Augustin shop",
"Latitude":null,
"Longitude":null,
"CompanyName":null,
"TransactionId":"b04d4559-a39d-44a7-b0e9-8348192087ee",
"CompanyTitle":null,
"PanEntryMode":"81",
"ReferenceNumber":363876,
"ResponseCode":"00",
"CurrencyCode":"978",
"OrderCulture":"en-GB",
"MerchantTrns":"testMerchantTrns",
"CustomerTrns":"testCustomerTrns",
"IsManualRefund":false,
"TargetPersonId":null,
"TargetWalletId":null,
"AcquirerApproved":false,
"LoyaltyTriggered":false,
"TransactionTypeId":5,
"AuthorizationId":"363876",
"TotalInstallments":0,
"CardCountryCode":null,
"CardIssuingBank":null,
"RedeemedAmount":0.0,
"ClearanceDate":null,
"CurrentInstallment":0,
"Tags":["testTag2","testTag1"],
"BillId":null,
"ConnectedAccountId":null,
"ResellerSourceCode":null,
"ResellerSourceName":null,
"MerchantCategoryCode":8999,
"ResellerCompanyName":null,
"CardUniqueReference":"5984325974181FFDE001404E14C6B88CF3613891",
"ResellerSourceAddress":null,
"CardExpirationDate":"2027-03-31T00:00:00",
"ServiceId":null,
"RetrievalReferenceNumber":"325410363876",
"AssignedMerchantUsers":[],
"AssignedResellerUsers":[],
"CardTypeId":1,
"ResponseEventId":null,
"ElectronicCommerceIndicator":"212",
"OrderServiceId":4,
"DigitalWalletId":null
},
"Created":"2023-09-11T10:33:26.6432261Z",
"CorrelationId":"23-254-CCE36DA",
"EventTypeId":1796,
"Delay":null,
"MessageId":"86886b3f-00a4-4cbb-8e9c-35925837edef",
"RecipientId":"5779279b-4c1c-4504-aa25-46a13bb4f608",
"MessageTypeId":512
}
But I was expecting the response from this page. Further it looks like this:
{
"Url": "Your webhook URL",
"EventData": {
"Moto": false,
"Email": "customer@example.com",
"Phone": "7700900796",
"BankId": "NET_VISA",
"Systemic": false,
"Switching": false,
"ParentId": null,
"Amount": 10,
"ChannelId": "d84f93ff-8ad0-4d97-a7a3-f187dd667553",
"TerminalId": 90000000,
"MerchantId": "bdf4c6b3-c26d-4046-b5df-5c443ec39d09",
"OrderCode": 2271655739472609,
"ProductId": null,
"StatusId": "F",
"FullName": "Customer name",
"ResellerId": null,
"InsDate": "2021-09-02T10:39:28.73",
"TotalFee": 0,
"CardUniqueReference": "2BFCB1FD4F000DB41CB5BA76CAFB68D76AB87752",
"CardToken": "2BFCB1FD4F000DB41CB5BA76CAFB68D76AB87752",
"CardNumber": "414746XXXXXX0133",
"TipAmount": 0,
"SourceCode": "8362",
"SourceName": "Test",
"Latitude": null,
"Longitude": null,
"CompanyName": "Business name",
"TransactionId": "997ab1e3-e6ce-45c9-970d-4d902f27ce71",
"CompanyTitle": "Business title",
"PanEntryMode": "01",
"ReferenceNumber": 944981,
"ResponseCode": "00",
"CurrencyCode": "978",
"OrderCulture": "el-GR",
"MerchantTrns": "Short description of items/services purchased by customer",
"CustomerTrns": "Short description of items/services purchased to display to your customer",
"IsManualRefund": false,
"TargetPersonId": null,
"TargetWalletId": null,
"LoyaltyTriggered": false,
"TransactionTypeId": 5,
"TotalInstallments": 0,
"CardCountryCode": "SG",
"CardIssuingBank": "CITIBANK",
"RedeemedAmount": 0,
"ClearanceDate": null,
"CurrentInstallment": 0,
"Tags": [
"tag sample string 1",
"tag sample string 2",
"tag sample string 3"
],
"BillId": null,
"ResellerSourceCode": null,
"ResellerSourceName": null,
"ResellerCompanyName": null,
"ResellerSourceAddress": null,
"CardExpirationDate": "2022-01-31T00:00:00",
"RetrievalReferenceNumber": "124507944981",
"AssignedMerchantUsers": [],
"AssignedResellerUsers": [],
"CardTypeId": 0,
"DigitalWalletId": 2,
"ResponseEventId": null,
"ElectronicCommerceIndicator": "5"
},
"Created": "2021-09-02T07:39:28.8496795Z",
"CorrelationId": "21-245-DB33F8C9",
"EventTypeId": 1796,
"Delay": null,
"MessageId": "e8b09fc2-d4a4-43fc-8251-acd87ad04d96",
"RecipientId": "bdf4c6b3-c26d-4046-b5df-5c443ec39d09",
"MessageTypeId": 512
}
Can you explain why this is happening?
Hello @lebe1,
Thank you for the answer. We would like to inform you that in our documentation is just a sample code of the notification that we sent. New parameters such as "BinId" and "Ucaf" have been recently added. We will update our documentation shortly.
Kind regards, Viva Wallet E-commerce Support Team
Hey VivaWallet team,
right now I feel like someone forgot to update this webhook response example. I am sitting here now and correcting each single error from adding three more fields (BinId, Ucaf, DualMessage) and correcting multiple type assertions and I feel like I am not even half way through.
So can you please update the response in your documentation and make sure all the other webhook response examples are updated as well? Or is it me doing something wrong? For now, I feel like everything is fine except the post call request coming in from VivaWallet which I cannot decode unfortunately and have to figure out from error to error instead...
Thanks in regards!