Loading src/Plugin/Commerce/PaymentGateway/StripeGateway.php +1 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,7 @@ class StripeGateway extends StripeGatewayBase implements SupportsAuthorizationsI 'order_id' => $order_id, 'payment_gateway' => $payment->getPaymentGateway()->label(), ], 'receipt_email' => $order->getEmail(), // Let Stripe to capture funds automatically. 'capture_method' => 'automatic', ]; Loading src/Plugin/Commerce/PaymentGateway/StripeGatewayBase.php +5 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,11 @@ abstract class StripeGatewayBase extends OnsitePaymentGatewayBase implements Sup public function createPaymentMethod(PaymentMethodInterface $payment_method, array $payment_details) { $owner = $payment_method->getOwner(); $email = $owner->getEmail(); // If anonymous do not create customer. if (!$email) { return; } $stripe_customer_id = NULL; $customer_name = ''; Loading Loading
src/Plugin/Commerce/PaymentGateway/StripeGateway.php +1 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,7 @@ class StripeGateway extends StripeGatewayBase implements SupportsAuthorizationsI 'order_id' => $order_id, 'payment_gateway' => $payment->getPaymentGateway()->label(), ], 'receipt_email' => $order->getEmail(), // Let Stripe to capture funds automatically. 'capture_method' => 'automatic', ]; Loading
src/Plugin/Commerce/PaymentGateway/StripeGatewayBase.php +5 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,11 @@ abstract class StripeGatewayBase extends OnsitePaymentGatewayBase implements Sup public function createPaymentMethod(PaymentMethodInterface $payment_method, array $payment_details) { $owner = $payment_method->getOwner(); $email = $owner->getEmail(); // If anonymous do not create customer. if (!$email) { return; } $stripe_customer_id = NULL; $customer_name = ''; Loading