Commit 39c1b016 authored by Honza Pobořil's avatar Honza Pobořil Committed by Pavel Bulat
Browse files

Resolve #3214820 "Send also receiptemail"

parent 05350dab
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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',
    ];
+5 −0
Original line number Diff line number Diff line
@@ -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 = '';