Skip to content

Commit

Permalink
Merge branch 'changes' into 'master'
Browse files Browse the repository at this point in the history
Changes

See merge request mpluskassa/mplus-api-client!29
  • Loading branch information
freerk-mpluskassa committed Apr 14, 2020
2 parents 6684c3b + 9f8ee94 commit a30284a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Mplusqapiclient.php
Original file line number Diff line number Diff line change
Expand Up @@ -8532,6 +8532,14 @@ public function convertCreateOrderV2Request($order, $applySalesAndActions, $appl

public function convertOrder($order, $terminal=null, $as_array=false)
{
if (is_object($order)) {
if (property_exists($order, 'order')) {
return $order;
}
$wrapper = new stdClass();
$wrapper->order = $order;
return $wrapper;
}
if ( ! isset($order['orderId']) or is_null($order['orderId'])) {
$order['orderId'] = '';
}
Expand Down

0 comments on commit a30284a

Please sign in to comment.