safaricom / mpesa-php-sdk

A PHP sdk for the new Mpesa RESTful APIs
188 stars 211 forks source link

Assigning variable values as keys in array #28

Open freddiedfre opened 5 years ago

freddiedfre commented 5 years ago

From Line 164 of the TransactionCallbacks.php

$result=[ $transTime=>$transTime, $transAmount=>$transAmount, $businessShortCode=>$businessShortCode, $billRefNumber=>$billRefNumber, $invoiceNumber=>$invoiceNumber, $orgAccountBalance=>$orgAccountBalance, $thirdPartyTransID=>$thirdPartyTransID, $MSISDN=>$MSISDN, $firstName=>$firstName, $lastName=>$lastName, $middleName=>$middleName, $transID=>$transID, $transactionType=>$transactionType ];

The code above should be: $result=[ "transTime"=>$transTime, ''transAmount"=>$transAmount, "businessShortCode"=>$businessShortCode, "billRefNumber"=>$billRefNumber, "invoiceNumber"=>$invoiceNumber, "orgAccountBalance"=>$orgAccountBalance, "thirdPartyTransID"=>$thirdPartyTransID, "MSISDN"=>$MSISDN, "firstName"=>$firstName, '"lastName"=>$lastName, "middleName"=>$middleName, "transID"=>$transID, "transactionType"=>$transactionType ];