条带API返回了哪些信息


What information is returned by stripe API

在stripe网站上,它说我可以将stripe API返回的任何信息存储在我自己的数据库中。然而,我不知道条纹API从网站返回了什么信息。

我期待着看到其中的一些:

  • CVC
  • CC的最后4位

但有人能告诉我,成功付款后会得到什么样的全面回应吗?

以下示例中的样本请求

require_once('./lib/Stripe.php');   
Stripe::setApiKey("sk_test_BQokikJOvBiI2HlWgH4olfQ2");   
Stripe_Charge::create(  
  array( "amount" => 400,   
         "currency" => "usd",   
         "card" => "tok_14Z9t42eZvKYlo2CbJqWYQrT", // obtained with Stripe.js,   
         "metadata" => array("order_id" => "6735")   
));  

根据Stripe API的API文档,以下将是响应,

{"id":"ch_14ZKti2eZvKYlo2CXVZ58Tno",
"object":"charge",
"已创建":1409916538,
"livemode":false,
"已支付":true,
"金额":1200,
"货币":"美元",
"已退款":false,
"卡片":{
"id":"card_14ZKtM2eZvKYlo2CJIxNJiZq",
"对象":"卡片",
"last4":"4242",
"品牌":"Visa",
"融资":"信贷",
"exp_month":9,
"exp_year":2014,
"指纹":"Xt5EWLLDS7FJR1c",
"country":"US",
"name":"Test",
"address_line1":null,
"address_line2":null,
"address_city":null,
"address_state":null,
"address_zip":null,
"address_country":null,
"cvc_check":"pass",
"address_line1_check":null,
"address_zip_check":null,
"客户":"cus_4heg86QFWN3sVn"
},
"捕获":true,
"退款":{
"对象":"列表",
"total_count":0,
"has_more":false,
"url":"/v1/charges/ch_14ZKti2eZvKYlo2CXVZ58T无/退款",
"数据":[]
},
"balance_transaction":"txn_14WzKB2eZvKYlo2CIbBDo1SD",
"failure_message":null,
"failure_code":null,
"amount_refunded":0,
"客户":"cus_4heg86QFWN3sVn",
"发票":空,
"description":null,
"争议":null,
"元数据":{
"order_id":"6735"
},
"statementdescription":null,
"receipt_email":空
}

有关API文档的更多信息,您可以访问stripe docs