#tedtanner
1 messages · Page 1 of 1 (latest)
After its successful, there are at least two ways to do that, both using expansion: https://stripe.com/docs/expand
You can either expand the payment_method and look at the type or you can expand the latest_charge and examine the payment_method_details
Thanks! I tried expanding the latest_charge and the payment_method_details doesn't seem to contain anything the would indicate whether it was card presetn or card not present.
Here is the relevant part of a response I received
"card": Object {
"brand": String("visa"),
"checks": Object {
"address_line1_check": Null,
"address_postal_code_check": Null,
"cvc_check": Null,
},
"country": String("US"),
"exp_month": Number(12),
"exp_year": Number(2028),
"fingerprint": String("HfyeqUmtr4t2dz2l"),
"funding": String("credit"),
"installments": Null,
"last4": String("0077"),
"mandate": Null,
"network": String("visa"),
"network_token": Object {
"used": Bool(false),
},
"three_d_secure": Null,
"wallet": Null,
},
"type": String("card"),
},```
I see that is was a card, but how do I know whether it was a card manullay input (card not present, such as an online transaction) or a swipe/tap at a reader (card present)?
type card vs type card_present -- those are two separate types
Oh! Thank you!
card is always card not present
Thanks for your time. That helps a good deal