我正在使用Stripe在本地主机上测试Stripe webhooks,到目前为止,我已经成功地使用它返回了一个PaymentIntent对象,该对象包含了我需要捕获并保存到数据库中的大部分数据,但我仍然无法获得文档中提到的的一些细节,即:
用户使用的支付方法类型。
用户在Stripe Payment元素表单中输入的邮政编码
我使用以下代码获取这两条信息,这也是在触发payment_intent.succeeded web钩子时函数中唯一不能工作的行:
// Webhooks by default return an Event object that is stored in
如何通过其电子邮件地址检索现有客户的标识符,或者在使用API Stripe创建付款时毫不犹豫地创建客户?
我搜索了Stripe文档,但找不到答案。
require "Stripe/vendor/autoload.php";
// This is your test secret API key.
\Stripe\Stripe::setApiKey("sk_test_XXX");
header("Content-Type: application/json");
try {
// retrieve JSON from POST bod
使用条带支付网关开发eCommerce,每次都会遇到这个错误。 正如在here中提到的,我必须提供客户的name、billing address、description和shipping address,否则,付款将失败,这是印度政府规定的法律。 这是我在条带API日志中得到的错误 invalid_request_error - description
As per Indian regulations, export transactions require a description. More info here: https://stripe.com/docs/india-expor