Skip to content

Commit ed6ec32

Browse files
committed
Resolving conflicts manually
1 parent 0ea407a commit ed6ec32

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

includes/Abstracts/WC_Stripe_Payment_Gateway.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,9 @@ public function process_response( $response, $order ) {
611611

612612
/* translators: transaction id */
613613
$message = sprintf( __( 'Stripe charge complete (Charge ID: %s)', 'woocommerce-gateway-stripe' ), $response->id );
614+
if ( isset( $response->is_webhook_response ) ) {
615+
$message .= ' (via webhook)';
616+
}
614617
$order->add_order_note( $message );
615618
}
616619
}

includes/WC_Stripe_Account.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class WC_Stripe_Account {
6565
* Constructor
6666
*
6767
* @param WC_Stripe_Connect $connect Stripe connect
68-
* @param $stripe_api Stripe API class
68+
* @param string $stripe_api Stripe API class
6969
*/
7070
public function __construct( WC_Stripe_Connect $connect, $stripe_api ) {
7171
$this->connect = $connect;

includes/WC_Stripe_Customer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ public function create_customer( $args = [] ) {
316316
$args = $this->generate_customer_request( $args );
317317

318318
// For guest users, check if a customer already exists with the same email and name in Stripe account before creating a new one.
319-
if ( ! $this->get_id() && 0 === $this->get_user_id() ) {
319+
if ( ! $this->get_id() && 0 === $this->get_user_id() && ! empty( $args['email'] ) && ! empty( $args['name'] ) ) {
320320
$response = $this->get_existing_customer( $args['email'], $args['name'] );
321321
}
322322

0 commit comments

Comments
 (0)