我想存储16位数字卡号码从条纹对象后,付款成功,并使用它后,下次付款的用户。用户可以方便地选择卡号,并要求cvc等。例如facebook支付系统。我只想存储16位代码,而不是$card对象中的最后4位。这是最后一个4位数的对象。当我print_r($customer);时,它不会显示16个数字,.it只显示最后4个数字数组。
$card = $customer->sources->data[0];
$Stripe_card=$card->last4;发布于 2018-03-15 09:11:28
你不能。网站没有提供有关卡的所有信息,因为它是不必要的,并构成欺诈的威胁。在API文档中,我们将找到一个共享信息的示例。
"source": {
"id": "card_1BLoXK2eZvKYlo2CUZoDPXh1",
"object": "card",
"address_city": null,
"address_country": null,
"address_line1": null,
"address_line1_check": null,
"address_line2": null,
"address_state": null,
"address_zip": null,
"address_zip_check": null,
"brand": "Visa",
"country": "US",
"customer": "cus_BjH5X2utr6sBXS",
"cvc_check": null,
"dynamic_last4": null,
"exp_month": 8,
"exp_year": 2019,
"fingerprint": "Xt5EWLLDS7FJjR1c",
"funding": "credit",
"last4": "4242",
"metadata": {
},
"name": null,
"tokenization_method": null
},https://stackoverflow.com/questions/49295021
复制相似问题