Open
Description
Is there a way to pass some value when initializing transactions and the same value will be return as callback values?
e.g
return [
‘invoice’ : ‘inv100837’
];
and the callback value will be like:
{
"Body": {
"stkCallback": {
"MerchantRequestID": "29115-34620561-1",
"CheckoutRequestID": "ws_CO_191220191020363925",
"ResultCode": 0,
"ResultDesc": "The service request is processed successfully.",
"CallbackMetadata": {
"Item": [{
"Name": "Amount",
"Value": 1.00
},
{
"Name": "MpesaReceiptNumber",
"Value": "NLJ7RT61SV"
},
{
"Name": "TransactionDate",
"Value": 20191219102115
},
{
"Name": "PhoneNumber",
"Value": 254708374149
}],
return [
“invoice”: “inv100837”
]
}
}
}
}
the invoice number can be use to verify the transactions.
Metadata
Metadata
Assignees
Labels
No labels