【问题标题】:How to send customer email on stripe dashboard如何在条纹仪表板上发送客户电子邮件
【发布时间】:2020-07-17 06:10:21
【问题描述】:

我正在尝试在条纹仪表板上发送客户电子邮件。 如何在条带上发送电子邮件。

public function stripePost(Request $request)
    {
        Stripe\Stripe::setApiKey(env('STRIPE_SECRET'));
        Stripe\Charge::create ([
            "amount" => 100 * 100,
            "currency" => "usd",
            "source" => $request->stripeToken,
            "customer" => "customerstripe@gmail.com",
            "description" => "Test payment."
        ]);

        Session::flash('success', 'Payment successful!');

        return back();
    }

错误是。

No Such Customer: customerstripe@gmail.com

【问题讨论】:

    标签: laravel stripe-payments


    【解决方案1】:

    理想情况下,您应该使用 Payment Intents 而不是 Charges,但在这种情况下,您希望使用 receipt_email

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-05-25
      • 2022-01-13
      • 2010-10-23
      • 2013-04-03
      • 2015-06-16
      • 2021-05-23
      • 2012-07-07
      相关资源
      最近更新 更多