#Vikas-PaymentMethod
1 messages · Page 1 of 1 (latest)
yes
https://stripe.com/docs/api/payment_methods/object?lang=python#payment_method_object-card you can get the card details in the card hash
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Here is the response of the API:
{
"id": "pm_1L93IBDLFJuEW2E7i6fPCquR",
"object": "payment_method",
"billing_details": {
"address": {
"city": "Columbus",
"country": "US",
"line1": "31 U.S. 33",
"line2": null,
"postal_code": "43215",
"state": "OH"
},
"email": null,
"name": "Vikas 123",
"phone": null
},
"card": {
"brand": "visa",
"checks": {
"address_line1_check": "pass",
"address_postal_code_check": "pass",
"cvc_check": "pass"
},
"country": "US",
"exp_month": 12,
"exp_year": 2043,
"fingerprint": "st6xsZdGBkY1ZY3h",
"funding": "credit",
"generated_from": null,
"last4": "4242",
"networks": {
"available": [
"visa"
],
"preferred": null
},
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1654850047,
"customer": "cus_LnLkzDGdZdItdh",
"livemode": false,
"metadata": {
"connectedAccountId": "acct_1L3za2DI9nRkGTJO"
},
"type": "card"
}
Yup they are there, the country and funding
But exact data is not coming from API's
is there any way to get the data which I showed you in screenshot
brand tells you visam, funding tells you credit, and country gives you US.
What else do you need?
Okay, I need to combine all these right?
no other way
Yes, you just need to combine these data.