即使条纹卡 ID 为空,条纹支付也会通过
Stripe payment went through even though the stripe card id was null
我正在尝试使用 laravel 从客户的特定信用卡中扣款。
我试过这个:
$charge = Charge::create([
'amount' => $amount*100,
'currency' => $currency,
'card' => $stripe_card,
'customer' => $customer_id
]);
但是即使卡 ID $stripe_card
为空,付款也已完成。这怎么会发生?是拿客户的默认卡吗?
如果 $stripe_card
为空,Stripe API 图书馆将不会发送卡片 属性 作为 API 调用的一部分。如果您没有为客户指定卡号,则默认卡将被收取费用。
我正在尝试使用 laravel 从客户的特定信用卡中扣款。
我试过这个:
$charge = Charge::create([
'amount' => $amount*100,
'currency' => $currency,
'card' => $stripe_card,
'customer' => $customer_id
]);
但是即使卡 ID $stripe_card
为空,付款也已完成。这怎么会发生?是拿客户的默认卡吗?
如果 $stripe_card
为空,Stripe API 图书馆将不会发送卡片 属性 作为 API 调用的一部分。如果您没有为客户指定卡号,则默认卡将被收取费用。