@@ -23,7 +23,6 @@ |
||
23 | 23 | |
24 | 24 | /** |
25 | 25 | * Set secret API Key. |
26 | - * @param string $key |
|
27 | 26 | */ |
28 | 27 | public static function set_secret_key( $secret_key ) { |
29 | 28 | self::$secret_key = $secret_key; |
@@ -32,6 +32,8 @@ |
||
32 | 32 | * |
33 | 33 | * @since 4.0.0 |
34 | 34 | * @version 4.0.0 |
35 | + * @param string $slug |
|
36 | + * @param string $class |
|
35 | 37 | */ |
36 | 38 | public function add_admin_notice( $slug, $class, $message ) { |
37 | 39 | $this->notices[ $slug ] = array( |
@@ -233,7 +233,6 @@ |
||
233 | 233 | /** |
234 | 234 | * Get a customers saved sources using their Stripe ID. Cached. |
235 | 235 | * |
236 | - * @param string $customer_id |
|
237 | 236 | * @return array |
238 | 237 | */ |
239 | 238 | public function get_sources() { |
@@ -289,7 +289,7 @@ |
||
289 | 289 | * |
290 | 290 | * @param int $order_id Reference. |
291 | 291 | * @param bool $retry Should we retry on fail. |
292 | - * @param bool $force_save_source Force payment source to be saved. |
|
292 | + * @param bool $force_save_save Force payment source to be saved. |
|
293 | 293 | * |
294 | 294 | * @throws Exception If payment will not be accepted. |
295 | 295 | * |
@@ -162,6 +162,8 @@ |
||
162 | 162 | * |
163 | 163 | * @since 1.0.0 |
164 | 164 | * @version 4.0.0 |
165 | + * @param string $slug |
|
166 | + * @param string $class |
|
165 | 167 | */ |
166 | 168 | public function add_admin_notice( $slug, $class, $message, $dismissible = false ) { |
167 | 169 | $this->notices[ $slug ] = array( |
@@ -64,7 +64,6 @@ discard block |
||
64 | 64 | * Checks if page is pay for order and change subs payment page. |
65 | 65 | * |
66 | 66 | * @since 4.0.4 |
67 | - * @param object $source_object |
|
68 | 67 | * @return bool |
69 | 68 | */ |
70 | 69 | public function is_subs_change_payment() { |
@@ -222,7 +221,6 @@ discard block |
||
222 | 221 | * process_subscription_payment function. |
223 | 222 | * @param mixed $order |
224 | 223 | * @param int $amount (default: 0) |
225 | - * @param string $stripe_token (default: '') |
|
226 | 224 | * @param bool initial_payment |
227 | 225 | */ |
228 | 226 | public function process_subscription_payment( $order = '', $amount = 0 ) { |
@@ -267,7 +265,6 @@ discard block |
||
267 | 265 | * @todo refactor to avoid DRY. |
268 | 266 | * @param mixed $order |
269 | 267 | * @param int $amount (default: 0) |
270 | - * @param string $stripe_token (default: '') |
|
271 | 268 | * @param bool initial_payment |
272 | 269 | */ |
273 | 270 | public function retry_subscription_payment( $order = '', $amount = 0 ) { |
@@ -320,7 +317,7 @@ discard block |
||
320 | 317 | |
321 | 318 | /** |
322 | 319 | * Don't transfer Stripe fee/ID meta to renewal orders. |
323 | - * @param int $resubscribe_order The order created for the customer to resubscribe to the old expired/cancelled subscription |
|
320 | + * @param integer $renewal_order |
|
324 | 321 | */ |
325 | 322 | public function delete_renewal_meta( $renewal_order ) { |
326 | 323 | delete_post_meta( ( WC_Stripe_Helper::is_pre_30() ? $renewal_order->id : $renewal_order->get_id() ), 'Stripe Fee' ); |
@@ -562,6 +559,8 @@ discard block |
||
562 | 559 | /** |
563 | 560 | * Process the pre-order |
564 | 561 | * @param int $order_id |
562 | + * @param boolean $retry |
|
563 | + * @param boolean $force_save_source |
|
565 | 564 | * @return array |
566 | 565 | */ |
567 | 566 | public function process_pre_order( $order_id, $retry, $force_save_source ) { |
@@ -134,7 +134,6 @@ discard block |
||
134 | 134 | * process_subscription_payment function. |
135 | 135 | * @param mixed $order |
136 | 136 | * @param int $amount (default: 0) |
137 | - * @param string $stripe_token (default: '') |
|
138 | 137 | * @param bool initial_payment |
139 | 138 | */ |
140 | 139 | public function process_subscription_payment( $order = '', $amount = 0 ) { |
@@ -179,7 +178,6 @@ discard block |
||
179 | 178 | * @todo refactor to avoid DRY. |
180 | 179 | * @param mixed $order |
181 | 180 | * @param int $amount (default: 0) |
182 | - * @param string $stripe_token (default: '') |
|
183 | 181 | * @param bool initial_payment |
184 | 182 | */ |
185 | 183 | public function retry_subscription_payment( $order = '', $amount = 0 ) { |
@@ -232,7 +230,7 @@ discard block |
||
232 | 230 | |
233 | 231 | /** |
234 | 232 | * Don't transfer Stripe fee/ID meta to renewal orders. |
235 | - * @param int $resubscribe_order The order created for the customer to resubscribe to the old expired/cancelled subscription |
|
233 | + * @param integer $renewal_order |
|
236 | 234 | */ |
237 | 235 | public function delete_renewal_meta( $renewal_order ) { |
238 | 236 | delete_post_meta( ( WC_Stripe_Helper::is_pre_30() ? $renewal_order->id : $renewal_order->get_id() ), 'Stripe Fee' ); |
@@ -474,6 +472,8 @@ discard block |
||
474 | 472 | /** |
475 | 473 | * Process the pre-order |
476 | 474 | * @param int $order_id |
475 | + * @param boolean $retry |
|
476 | + * @param boolean $force_save_source |
|
477 | 477 | * @return array |
478 | 478 | */ |
479 | 479 | public function process_pre_order( $order_id, $retry, $force_save_source ) { |