דילוג לתוכן אין מוצרים בעגלה שלך, קדימה!
0
=== Line 326 ===
301: $customer_note = array();
302: foreach ( $items as $item ) {
303: $item_total = $item->get_total();
304: $item_quantity = $item->get_quantity();
305: $customer_note[] = $item->get_name().'[ כמות: '.$item_quantity.' | מחיר: '. number_format( $item_total, 2 ) .']';
306: }
307: $customer_note = implode(',',$customer_note);
308: $pay_num = unserialize($order->get_meta('meshulam_pay_payment-number'));
309:
310: if($pay_num == '' || $pay_num == '0'){ $pay_num = 1;}
311: $shipping_charge = $order->get_total_shipping();
312: $tax_total = $order->get_total_tax();
313: //send it to API as a description
314: $customer_note = 'תשלום עבור הזמנה:'.$order_id;
315: $this->invoiceNotifyUrl = add_query_arg( 'order_id', $order_id, $this->invoiceNotifyUrl );
316:
317: $args_body['pageCode'] = $pagecode;
318: if($pay_num != '180'){
319: $args_body['paymentNum'] = $pay_num;
320: }
321: $args_body['successUrl'] = $response_url;
322: $args_body['cancelUrl'] = wc_get_checkout_url();
323: $args_body['notifyUrl'] = $update_url;
324: $args_body['invoiceNotifyUrl'] = $this->invoiceNotifyUrl;
325: $args_body['description'] = $customer_note;
326: $args_body['pageField[fullName]'] = $first_name;
327: $args_body['pageField[phone]'] = $order->get_billing_phone();
328: $args_body['pageField[email]'] = $order->get_billing_email();
329: $args_body['cField1'] = $order->get_id();
330: $args_body['chargeType'] = $chargeType;
331: $i = 0;
332: foreach ( $items as $item ) {
333: $prdct_name = $item->get_name();
334: $args_body['productData'][$i]['catalogNumber'] = $item->get_product_id();
335: $args_body['productData'][$i]['price'] = round($item->get_total(),2);
336: $args_body['productData'][$i]['itemDescription'] = $prdct_name;
-----------------------------
=== Line 1109 ===
1084: $fee = $order->get_items('fee');
1085: $customer_note = array();
1086: foreach ( $items as $item ) {
1087: $item_total = $item->get_total();
1088: $item_quantity = $item->get_quantity();
1089: $customer_note[] = $item->get_name().'[ כמות: '.$item_quantity.' | מחיר: '. number_format( $item_total, 2 ) .']';
1090: }
1091: $customer_note = implode(',',$customer_note);
1092: $pay_num = unserialize($order->get_meta('meshulam_pay_payment-number'));
1093: $pay_type = unserialize($order->get_meta('meshulam_pay_payment-type'));
1094: if($pay_type == 1){$pagecode = $this->recurring_pagecode;} //for recurring
1095: else{$pagecode = $this->regular_pagecode;} // for simple
1096: if($pay_num == '' || $pay_num == '0'){ $pay_num = 1;}
1097: $shipping_charge = $order->get_total_shipping();
1098: $tax_total = $order->get_total_tax();
1099: //send it to API as a description
1100: $customer_note = 'תשלום עבור הזמנה:'.$order_id;
1101: $this->invoiceNotifyUrl = add_query_arg( 'order_id', $order_id, $this->invoiceNotifyUrl );
1102: $args_body = array(
1103: 'sum' => $order->get_total(),
1104: 'successUrl' => $this->response_url,
1105: 'cancelUrl' => wc_get_checkout_url(),
1106: 'notifyUrl' => $this->update_url,
1107: 'invoiceNotifyUrl' => $this->invoiceNotifyUrl,
1108: 'description' => $customer_note,
1109: 'pageField[fullName]' => $first_name,
1110: 'pageField[phone]' => $order->get_billing_phone(),
1111: 'pageField[email]' => $order->get_billing_email(),
1112: 'cField1' => $order->get_id()
1113: );
1114: if($pay_num != '180'){
1115: $args_body['paymentNum'] = $pay_num;
1116: }
1117: $args_body['chargeType'] = $this->chargeType;
1118: $i = 0;
1119: foreach ( $items as $item ) {
-----------------------------
=== Line 1206 ===
1181: $item_total = $item->get_total();
1182: $item_quantity = $item->get_quantity();
1183: $customer_note[] = $item->get_name().'[ כמות: '.$item_quantity.' | מחיר: '. number_format( $item_total, 2 ) .']';
1184: }
1185: $customer_note = implode(',',$customer_note);
1186: $pay_num = unserialize($order->get_meta('meshulam_pay_payment-number'));
1187: $pay_type = unserialize($order->get_meta('meshulam_pay_payment-type'));
1188: if($pay_type == 1){$pagecode = $this->recurring_pagecode;} //for recurring
1189: else{$pagecode = $this->regular_pagecode;} // for simple
1190: if($pay_num == '' || $pay_num == '0'){ $pay_num = 1;}
1191: $shipping_charge = $order->get_total_shipping();
1192: $tax_total = $order->get_total_tax();
1193: //send it to API as a description
1194: $customer_note = 'תשלום עבור הזמנה:'.$order_id;
1195: $this->invoiceNotifyUrl = add_query_arg( 'order_id', $order_id, $this->invoiceNotifyUrl );
1196: $args_body = array(
1197: 'pageCode' => $pagecode,
1198: 'apiKey' => $this->auth_code,
1199: 'userId' => $this->api_userid,
1200: 'sum' => round($order->get_total(),2),
1201: 'successUrl' => $this->response_url,
1202: 'cancelUrl' => wc_get_checkout_url(),
1203: 'notifyUrl' => $this->update_url,
1204: 'invoiceNotifyUrl' => $this->invoiceNotifyUrl,
1205: 'description' => $customer_note,
1206: 'pageField[fullName]' => $first_name,
1207: 'pageField[phone]' => $order->get_billing_phone(),
1208: 'pageField[email]' => $order->get_billing_email(),
1209: 'cField1' => $order->get_id()
1210: );
1211: if($pay_num != '180'){
1212: $args_body['paymentNum'] = $pay_num;
1213: }
1214: $args_body['chargeType'] = $this->chargeType;
1215: $i = 0;
1216: foreach ( $items as $item ) {
-----------------------------