Stripe API 和 ApplePay“账单地址无效”问题

问题描述

我正在使用此代码创建 Stripe 结帐:

$checkout_session = \Stripe\Checkout\Session::create([
            'customer_email' => 'my_test_email@gmail.com','payment_method_types' => ['card'],'line_items' => [[
            'price_data' => [
                'currency' => 'usd','unit_amount' => 1000,'product_data' => [
                    'name' => 'Balance top-up',],'quantity' => 1,]],'mode' => 'payment','client_reference_id' => $clientReferenceId,'success_url' => 'https://example.com/user-deposit/?result=success','cancel_url' => 'https://example.com/user-deposit/?result=Failed','Metadata' => [
                'user_id' => '1',]);

一切正常,但如果我尝试从移动浏览器使用 ApplePay 付款 - 我收到了这样的错误(尽管这张卡一切正常,并且帐单地址已在 Apple 帐户设置中填写):

enter image description here

我该怎么办?事实上,我不想向我的用户询问账单地址,我可以使用一些存储的信息(如国家和城市)来传递给这个 API 请求,或者我可以以某种方式强制 Stripe 不要求账单/送货地址(我不卖商品,只是为了在我的服务中充值内部余额)?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)