0
我得到的錯誤與下面的代碼條紋費:創建歌廳錯誤,當我包括CUTOMER ID
$charge = \Stripe\Charge::create(array( 'card' => $myCard,
'amount' => $post['job_cost']*100,
'currency' => 'usd',
'description'=> "Charge from ".$_SESSION['email'] . " (".$_SESSION['organization'].") for job " . $post['job_title'],
'customer' => "cus_7XOlaXPFww6URY"
)
);
,如果我有「CUTOMER」,那麼錯誤是
An uncaught Exception was encountered
類型: Stripe \ Error \ InvalidRequest
消息:無效字符串:{「number」=>「424242 ****** 4242」,「exp_month」=>「1」,「exp_year」=>「2016」,「 cvc「=>」***「,」object「=>」卡「}
如果您傳遞客戶ID,則卡必須是表示已添加到客戶的卡的卡ID的字符串。 –