【发布时间】:2019-10-26 12:52:17
【问题描述】:
我已经关注了这个documentation 关于 ACH 的条纹。
这是代码
// Set your secret key: remember to change this to your live secret key in production
// See your keys here: https://dashboard.stripe.com/account/apikeys
\Stripe\Stripe::setApiKey('sk_test_4eC39HqLyjWDarjtT1zdp7dc');
// get the existing bank account
$bank_account = \Stripe\Customer::retrieveSource(
'cus_AFGbOSiITuJVDs',
'ba_17SHwa2eZvKYlo2CUx7nphbZ'
);
// verify the account
$bank_account->verify(['amounts' => [32, 45]]);
在我的本地我得到了这个错误
未捕获的错误:调用未定义的方法 Stripe_Customer::retrieveSource()
【问题讨论】:
标签: php stripe-payments