@@ -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; |
@@ -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 | * |
@@ -213,7 +213,6 @@ |
||
| 213 | 213 | /** |
| 214 | 214 | * Get a customers saved sources using their Stripe ID. |
| 215 | 215 | * |
| 216 | - * @param string $customer_id |
|
| 217 | 216 | * @return array |
| 218 | 217 | */ |
| 219 | 218 | public function get_sources() { |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | * Displays the admin settings webhook description. |
| 18 | 18 | * |
| 19 | 19 | * @since 4.1.0 |
| 20 | - * @return mixed |
|
| 20 | + * @return string |
|
| 21 | 21 | */ |
| 22 | 22 | public function display_admin_settings_webhook_description() { |
| 23 | 23 | /* translators: 1) webhook url */ |
@@ -556,7 +556,7 @@ discard block |
||
| 556 | 556 | * |
| 557 | 557 | * @since 4.0.8 |
| 558 | 558 | * @param string $source_id |
| 559 | - * @return bool |
|
| 559 | + * @return integer |
|
| 560 | 560 | */ |
| 561 | 561 | public function is_type_legacy_card( $source_id ) { |
| 562 | 562 | return ( preg_match( '/^card_/', $source_id ) ); |
@@ -163,7 +163,7 @@ |
||
| 163 | 163 | && preg_match( '/^[rs]k_test_/', $this->secret_key ); |
| 164 | 164 | } else { |
| 165 | 165 | return preg_match( '/^pk_live_/', $this->publishable_key ) |
| 166 | - && preg_match( '/^[rs]k_live_/', $this->secret_key ); |
|
| 166 | + && preg_match( '/^[rs]k_live_/', $this->secret_key ); |
|
| 167 | 167 | } |
| 168 | 168 | } |
| 169 | 169 | |
@@ -231,7 +231,7 @@ |
||
| 231 | 231 | * List of currencies supported by Stripe that has no decimals |
| 232 | 232 | * https://stripe.com/docs/currencies#zero-decimal from https://stripe.com/docs/currencies#presentment-currencies |
| 233 | 233 | * |
| 234 | - * @return array $currencies |
|
| 234 | + * @return string[] $currencies |
|
| 235 | 235 | */ |
| 236 | 236 | public static function no_decimal_currencies() { |
| 237 | 237 | return array( |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | * @version 4.0.0 |
| 84 | 84 | * @param string $request_headers The request headers from Stripe. |
| 85 | 85 | * @param string $request_body The request body from Stripe. |
| 86 | - * @return bool |
|
| 86 | + * @return null|boolean |
|
| 87 | 87 | */ |
| 88 | 88 | public function is_valid_request( $request_headers = null, $request_body = null ) { |
| 89 | 89 | if ( null === $request_headers || null === $request_body ) { |
@@ -1096,7 +1096,7 @@ |
||
| 1096 | 1096 | * |
| 1097 | 1097 | * @since 4.2.0 |
| 1098 | 1098 | * @param WC_Order $order The order which should be checked. |
| 1099 | - * @param object $intent The intent, associated with the order. |
|
| 1099 | + * @param stdClass $intent The intent, associated with the order. |
|
| 1100 | 1100 | */ |
| 1101 | 1101 | public function failed_sca_auth( $order, $intent ) { |
| 1102 | 1102 | // If the order has already failed, do not repeat the same message. |
@@ -895,7 +895,7 @@ |
||
| 895 | 895 | } |
| 896 | 896 | |
| 897 | 897 | if ( 'requires_payment_method' === $intent->status && isset( $intent->last_payment_error ) |
| 898 | - && 'authentication_required' === $intent->last_payment_error->code ) { |
|
| 898 | + && 'authentication_required' === $intent->last_payment_error->code ) { |
|
| 899 | 899 | $level3_data = $this->get_level3_data_from_order( $order ); |
| 900 | 900 | $intent = WC_Stripe_API::request_with_level3_data( |
| 901 | 901 | array( |
@@ -123,10 +123,10 @@ |
||
| 123 | 123 | // in includes/abstracts/abstract-wc-stripe-payment-gateway.php |
| 124 | 124 | if ( $this->testmode ) { |
| 125 | 125 | return preg_match( '/^pk_test_/', $this->publishable_key ) |
| 126 | - && preg_match( '/^[rs]k_test_/', $this->secret_key ); |
|
| 126 | + && preg_match( '/^[rs]k_test_/', $this->secret_key ); |
|
| 127 | 127 | } else { |
| 128 | 128 | return preg_match( '/^pk_live_/', $this->publishable_key ) |
| 129 | - && preg_match( '/^[rs]k_live_/', $this->secret_key ); |
|
| 129 | + && preg_match( '/^[rs]k_live_/', $this->secret_key ); |
|
| 130 | 130 | } |
| 131 | 131 | } |
| 132 | 132 | |
@@ -121,7 +121,7 @@ |
||
| 121 | 121 | * Get this instance. |
| 122 | 122 | * |
| 123 | 123 | * @since 4.0.6 |
| 124 | - * @return class |
|
| 124 | + * @return WC_Stripe_Payment_Request |
|
| 125 | 125 | */ |
| 126 | 126 | public static function instance() { |
| 127 | 127 | return self::$_this; |
@@ -321,7 +321,7 @@ |
||
| 321 | 321 | |
| 322 | 322 | /** |
| 323 | 323 | * Don't transfer Stripe fee/ID meta to renewal orders. |
| 324 | - * @param int $resubscribe_order The order created for the customer to resubscribe to the old expired/cancelled subscription |
|
| 324 | + * @param integer $renewal_order |
|
| 325 | 325 | */ |
| 326 | 326 | public function delete_renewal_meta( $renewal_order ) { |
| 327 | 327 | WC_Stripe_Helper::delete_stripe_fee( $renewal_order ); |