@@ -221,7 +221,6 @@ discard block |
||
| 221 | 221 | * process_subscription_payment function. |
| 222 | 222 | * @param mixed $order |
| 223 | 223 | * @param int $amount (default: 0) |
| 224 | - * @param string $stripe_token (default: '') |
|
| 225 | 224 | * @param bool initial_payment |
| 226 | 225 | */ |
| 227 | 226 | public function process_subscription_payment( $order = '', $amount = 0 ) { |
@@ -263,9 +262,7 @@ discard block |
||
| 263 | 262 | * This is used when renewal failed. |
| 264 | 263 | * |
| 265 | 264 | * @todo refactor to avoid DRY. |
| 266 | - * @param mixed $order |
|
| 267 | 265 | * @param int $amount (default: 0) |
| 268 | - * @param string $stripe_token (default: '') |
|
| 269 | 266 | * @param bool initial_payment |
| 270 | 267 | */ |
| 271 | 268 | public function retry_subscription_payment( $amount = 0, $renewal_order ) { |
@@ -317,7 +314,7 @@ discard block |
||
| 317 | 314 | |
| 318 | 315 | /** |
| 319 | 316 | * Don't transfer Stripe fee/ID meta to renewal orders. |
| 320 | - * @param int $resubscribe_order The order created for the customer to resubscribe to the old expired/cancelled subscription |
|
| 317 | + * @param integer $renewal_order |
|
| 321 | 318 | */ |
| 322 | 319 | public function delete_renewal_meta( $renewal_order ) { |
| 323 | 320 | delete_post_meta( ( WC_Stripe_Helper::is_pre_30() ? $renewal_order->id : $renewal_order->get_id() ), 'Stripe Fee' ); |
@@ -559,6 +556,8 @@ discard block |
||
| 559 | 556 | /** |
| 560 | 557 | * Process the pre-order |
| 561 | 558 | * @param int $order_id |
| 559 | + * @param boolean $retry |
|
| 560 | + * @param boolean $force_save_source |
|
| 562 | 561 | * @return array |
| 563 | 562 | */ |
| 564 | 563 | 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 ) { |
@@ -178,7 +177,6 @@ discard block |
||
| 178 | 177 | * |
| 179 | 178 | * @todo refactor to avoid DRY. |
| 180 | 179 | * @param int $amount (default: 0) |
| 181 | - * @param mixed $order |
|
| 182 | 180 | * @param bool initial_payment |
| 183 | 181 | */ |
| 184 | 182 | public function retry_subscription_payment( $amount = 0, $renewal_order ) { |
@@ -230,7 +228,7 @@ discard block |
||
| 230 | 228 | |
| 231 | 229 | /** |
| 232 | 230 | * Don't transfer Stripe fee/ID meta to renewal orders. |
| 233 | - * @param int $resubscribe_order The order created for the customer to resubscribe to the old expired/cancelled subscription |
|
| 231 | + * @param integer $renewal_order |
|
| 234 | 232 | */ |
| 235 | 233 | public function delete_renewal_meta( $renewal_order ) { |
| 236 | 234 | delete_post_meta( ( WC_Stripe_Helper::is_pre_30() ? $renewal_order->id : $renewal_order->get_id() ), 'Stripe Fee' ); |
@@ -463,6 +461,8 @@ discard block |
||
| 463 | 461 | /** |
| 464 | 462 | * Process the pre-order |
| 465 | 463 | * @param int $order_id |
| 464 | + * @param boolean $retry |
|
| 465 | + * @param boolean $force_save_source |
|
| 466 | 466 | * @return array |
| 467 | 467 | */ |
| 468 | 468 | public function process_pre_order( $order_id, $retry, $force_save_source ) { |