@@ -38,6 +38,10 @@ discard block |
||
38 | 38 | return $url; |
39 | 39 | } |
40 | 40 | |
41 | + /** |
|
42 | + * @param string $param |
|
43 | + * @param string $value |
|
44 | + */ |
|
41 | 45 | public static function construct_url_parameters($url, $param, $value) { |
42 | 46 | $interoguation_marker_pos = strpos($url, '?'); |
43 | 47 | if($interoguation_marker_pos===false) |
@@ -86,7 +90,7 @@ discard block |
||
86 | 90 | * Display the list of payment methods available |
87 | 91 | * |
88 | 92 | * @param integer $order_id The order id if existing - Useful when user does not finish its order and want to validateit later |
89 | - * @return string The different payment method |
|
93 | + * @return string[] The different payment method |
|
90 | 94 | */ |
91 | 95 | function __display_payment_methods_choice_form($order_id=0, $cart_type = 'cart') { |
92 | 96 | $output = ''; |
@@ -250,6 +254,9 @@ discard block |
||
250 | 254 | } |
251 | 255 | |
252 | 256 | |
257 | + /** |
|
258 | + * @param string|null $payment_status |
|
259 | + */ |
|
253 | 260 | function setOrderPaymentStatus( $order_id, $payment_status ) { |
254 | 261 | /** Get order main information */ |
255 | 262 | $order = get_post_meta($order_id, '_order_postmeta', true); |
@@ -377,7 +384,7 @@ discard block |
||
377 | 384 | * Allows to inform customer that he would pay a partial amount on this order |
378 | 385 | * |
379 | 386 | * @param float $current_order_total The current order total to pay before partial amount calcul |
380 | - * @return array The amount to pay / A html output with amount to pay and different information |
|
387 | + * @return string The amount to pay / A html output with amount to pay and different information |
|
381 | 388 | */ |
382 | 389 | function partial_payment_calcul( $current_order_total, $for = 'for_all' ) { |
383 | 390 | $output = ''; |
@@ -482,6 +489,7 @@ discard block |
||
482 | 489 | * @param array $order_meta The complete order meta informations |
483 | 490 | * @param integer $payment_index The payment to add/update data for |
484 | 491 | * @param array $params : infos sended by the bank, array structure : ('method', 'waited amount', 'status', 'author', 'payment reference', 'date', 'received amount') |
492 | + * @param integer $order_id |
|
485 | 493 | * @return array The order new meta informations |
486 | 494 | */ |
487 | 495 | public static function add_new_payment_to_order( $order_id, $order_meta, $payment_index, $params, $bank_response ) { |
@@ -7,6 +7,10 @@ |
||
7 | 7 | } |
8 | 8 | |
9 | 9 | // Function to find download link by |
10 | + |
|
11 | + /** |
|
12 | + * @param integer $oid |
|
13 | + */ |
|
10 | 14 | public static function get_product_download_link( $oid, $item ) { |
11 | 15 | $parent_def = array(); |
12 | 16 | $item_id = $item['item_id']; |