@@ -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 ) { |
@@ -884,7 +884,7 @@ |
||
884 | 884 | } |
885 | 885 | |
886 | 886 | if ( 'requires_payment_method' === $intent->status && isset( $intent->last_payment_error ) |
887 | - && 'authentication_required' === $intent->last_payment_error->code ) { |
|
887 | + && 'authentication_required' === $intent->last_payment_error->code ) { |
|
888 | 888 | $intent = WC_Stripe_API::request( array( |
889 | 889 | 'payment_method' => $intent->last_payment_error->source->id, |
890 | 890 | ), 'payment_intents/' . $intent->id . '/confirm' ); |