消息:从上下文'Stripe\PaymentIntent'调用私有方法Stripe\ApiResource::_validateParams((
require_one('application/librarys/stripe/init.php'(;
StripeStripe::setApiKey('sk_test_4eC39HqLyjWDarjtT1zdp7dc');
StripePaymentIntent::create([
'payment_method_types' => ['card'],
'amount' => 1099,
'currency' => 'usd',
'customer' => '{{CUSTOMER_ID}}',
'payment_method' => '{{CARD_ID}}',
]);
作为预stripe文档,stripe使用StripeClient((来设置apikey。
更换
StripeStripe::setApiKey('sk_test_4eC39HqLyjWDarjtT1zdp7dc');
带有
StripeStripeClient("sk_test_4eC39HqLyjWDarjtT1zdp7dc");
源