@@ -96,7 +96,6 @@ discard block |
||
96 | 96 | * process_subscription_payment function. |
97 | 97 | * @param mixed $order |
98 | 98 | * @param int $amount (default: 0) |
99 | - * @param string $stripe_token (default: '') |
|
100 | 99 | * @param bool initial_payment |
101 | 100 | */ |
102 | 101 | public function process_subscription_payment( $order = '', $amount = 0 ) { |
@@ -139,6 +138,8 @@ discard block |
||
139 | 138 | /** |
140 | 139 | * Process the pre-order |
141 | 140 | * @param int $order_id |
141 | + * @param boolean $retry |
|
142 | + * @param boolean $force_customer |
|
142 | 143 | * @return array |
143 | 144 | */ |
144 | 145 | public function process_pre_order( $order_id, $retry, $force_customer ) { |
@@ -239,7 +240,7 @@ discard block |
||
239 | 240 | |
240 | 241 | /** |
241 | 242 | * Don't transfer Stripe fee/ID meta to renewal orders. |
242 | - * @param int $resubscribe_order The order created for the customer to resubscribe to the old expired/cancelled subscription |
|
243 | + * @param integer $renewal_order |
|
243 | 244 | */ |
244 | 245 | public function delete_renewal_meta( $renewal_order ) { |
245 | 246 | delete_post_meta( $renewal_order->id, 'Stripe Fee' ); |
@@ -177,7 +177,7 @@ |
||
177 | 177 | * @param float $total Amount due. |
178 | 178 | * @param string $currency Accepted currency. |
179 | 179 | * |
180 | - * @return float|int |
|
180 | + * @return double |
|
181 | 181 | */ |
182 | 182 | public function get_stripe_amount( $total, $currency = '' ) { |
183 | 183 | if ( ! $currency ) { |
@@ -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; |
@@ -210,7 +210,6 @@ |
||
210 | 210 | /** |
211 | 211 | * Get a customers saved cards using their Stripe ID. Cached. |
212 | 212 | * |
213 | - * @param string $customer_id |
|
214 | 213 | * @return array |
215 | 214 | */ |
216 | 215 | public function get_cards() { |
@@ -139,6 +139,8 @@ |
||
139 | 139 | |
140 | 140 | /** |
141 | 141 | * Allow this class and other classes to add slug keyed notices (to avoid duplication) |
142 | + * @param string $slug |
|
143 | + * @param string $class |
|
142 | 144 | */ |
143 | 145 | public function add_admin_notice( $slug, $class, $message ) { |
144 | 146 | $this->notices[ $slug ] = array( |