Moneris / Moneris-Gateway-API-PHP

23 stars 55 forks source link

Update mpgRequest toXml() to accept txn type at any position in the txn array #10

Open gschweden opened 5 years ago

gschweden commented 5 years ago

The Moneris developer docs are not explicit about the type needing to be the first value in the transaction array. Since it is already an associative array I propose that the 'type' key be used when determining the transaction type instead of relying on it being the first value in the array provided by the merchant.