Skip to content

Commit a30284a

Browse files
Merge branch 'changes' into 'master'
Changes See merge request mpluskassa/mplus-api-client!29
2 parents 6684c3b + 9f8ee94 commit a30284a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Mplusqapiclient.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8532,6 +8532,14 @@ public function convertCreateOrderV2Request($order, $applySalesAndActions, $appl
85328532

85338533
public function convertOrder($order, $terminal=null, $as_array=false)
85348534
{
8535+
if (is_object($order)) {
8536+
if (property_exists($order, 'order')) {
8537+
return $order;
8538+
}
8539+
$wrapper = new stdClass();
8540+
$wrapper->order = $order;
8541+
return $wrapper;
8542+
}
85358543
if ( ! isset($order['orderId']) or is_null($order['orderId'])) {
85368544
$order['orderId'] = '';
85378545
}

0 commit comments

Comments
 (0)