カテゴリー:
Stripe
閲覧数:355 配信日:2019-02-19 11:09
Subscriptionオブジェクトのidプロパティ
The subscription object の idプロパティ
’sub_xxxx’
PaymentIntentオブジェクトのidプロパティ
'pi_××××'
PaymentMethod オブジェクトのidプロパティ
The PaymentMethod object の idプロパティ
'pm_××××' あるいは 'card_××××' あるいは 'src_××××'
PaymentMethod API を介して取得したカード例
{
"id": "card_1EBXBSDuWL9wT9brGOaALeD2",
"object": "payment_method",
"billing_details": {
"address": {
"city": "San Francisco",
"country": "US",
"line1": "1234 Fake Street",
"line2": null,
"postal_code": null,
"state": null
},
"name": null,
"phone": null,
"email": null
},
"card": {
"brand": "visa",
"checks": {
"address_line1_check": null,
"address_postal_code_check": null,
"cvc_check": null
},
"country": "US",
"exp_month": 8,
"exp_year": 2024,
"fingerprint": "53v265akSHAnIk1X",
"funding": "credit",
"last4": "4242",
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 123456789,
"customer": "cus_EepWxEKrgMaywv",
"livemode": false,
"metadata": {
},
"type": "card"
}
PaymentMethod API を介して取得したsource例
{
"id": "card_1EBXBSDuWL9wT9brGOaALeD2",
"object": "payment_method",
"billing_details": {
"address": {
"city": "Berlin",
"country": "DE",
"line1": "Nollendorfstraße 27",
"line2": null,
"postal_code": "10777",
"state": null
},
"name": "Jenny Rosen",
"phone": null,
"email": "jenny.rosen@example.com"
},
"card": {
"brand": "visa",
"checks": {
"address_line1_check": null,
"address_postal_code_check": null,
"cvc_check": null
},
"country": "US",
"exp_month": 4,
"exp_year": 2024,
"fingerprint": "53v265akSHAnIk1X",
"funding": "credit",
"last4": "4242",
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1500471469,
"customer": "#{customer_id}",
"livemode": false,
"metadata": {
},
"type": "card"
}