我正在研究定期付款意向,当我尝试这样做时Charge the saved card later Server-side,我收到以下回复:
Array
(
[error] => Array
(
[message] => You cannot attach a PaymentMethod to a Customer during PaymentMethod creation. Please instead create the PaymentMethod and then attach it using the attachment method of the PaymentMethods API.
[type] => invalid_request_error
)
)
Run Code Online (Sandbox Code Playgroud)
为此我使用了curl方法
curl https://api.stripe.com/v1/payment_methods \
-u ********: \
-d customer="{{CUSTOMER_ID}}" \
-d type=card
Run Code Online (Sandbox Code Playgroud)
谁能帮我解决这个问题吗?我已经参考了这个页面
https://stripe.com/docs/payments/save-and-reuse
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2093 次 |
| 最近记录: |