出于合规性原因,我在客户端生成令牌并将这些详细信息发送到条带。我想在确认页面上显示最后四位数字和卡片类型
我正在创建一个客户
// Create a Customer:
$customer = \Stripe\Customer::create([
'source' => $token,
'email' => $current_user->user_email,
]);
而不是将它们添加到订阅
//create the subscription for the customer
$subscription = \Stripe\Subscription::create(array(
'customer' => $customer->id,
"items" => array(
array(
"plan" => "dpc-standard",
),
)
));
订阅返回https://stripe.com/docs/api#subscription_object 大量数据,包括为订阅生成的invoice_id,但不返回任何CC详细信息