Subversion Repositories SmartDukaan

Rev

Rev 14933 | Rev 15036 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14933 Rev 15035
Line 60... Line 60...
60
		if(!empty($response['data'])){
60
		if(!empty($response['data'])){
61
			foreach ($response['data'] as $key => $order) {
61
			foreach ($response['data'] as $key => $order) {
62
				if(!empty($order['subOrders'])){
62
				if(!empty($order['subOrders'])){
63
					foreach ($order['subOrders'] as $key => $suborder) {
63
					foreach ($order['subOrders'] as $key => $suborder) {
64
						$suborder['storeId'] = $order['storeId'];
64
						$suborder['storeId'] = $order['storeId'];
-
 
65
						if($order['storeId']!=4){
65
						$suborder['merchantOrderId'] = $order['merchantOrderId'];
66
							$suborder['merchantOrderId'] = $suborder['merchantSubOrderId'];
-
 
67
						}
66
						if(!empty($order['orderTrackingUrl'])){
68
						if(!empty($order['orderTrackingUrl'])){
67
							$suborder['orderSuccessUrl'] = $order['orderTrackingUrl'];
69
							$suborder['orderSuccessUrl'] = $order['orderTrackingUrl'];
68
						}
70
						}
69
						switch($suborder['cashBackStatus']){
71
						switch($suborder['cashBackStatus']){
70
							// case 'Credited to wallet'://Credited
72
							// case 'Credited to wallet'://Credited