Skip to content

Instantly share code, notes, and snippets.

@gordonbisnor
Last active June 17, 2020 16:02
Show Gist options
  • Save gordonbisnor/9c714b30653ade7a3ec7815e67acfa76 to your computer and use it in GitHub Desktop.
Save gordonbisnor/9c714b30653ade7a3ec7815e67acfa76 to your computer and use it in GitHub Desktop.
Stripe example charge JSON
{
"id":"ch_1GsgOp2cKSiqTnd4XE34Wdig",
"object":"charge",
"amount":1500,
"amount_refunded":0,
"application":null,
"application_fee":null,"
application_fee_amount":null,
"balance_transaction":"txn_1GsgOp2cKSiqTnd4D2nY1USH",
"billing_details":{"address":{"city":null,"country":null,"line1":null,"line2":null,"postal_code":null,"state":null},"email":null,"name":null,"phone":null},
"calculated_statement_descriptor":"CKDU-FM SOCIETY","captured":true,
"card":{
"id":"card_1GsgOo2cKSiqTnd4MbYTIW9f",
"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_HRZXnhcifFM749",
"cvc_check":"pass",
"dynamic_last4":null,
"exp_month":3,
"exp_year":2021,
"fingerprint":"MsPFUrE7UByObNQG",
"funding":"debit",
"last4":"5556",
"metadata":{},
"name":null,
"tokenization_method":null,
"type":"Visa"
},
"created":1591843455,
"currency":"cad",
"customer":"cus_HRZXnhcifFM749",
"description":"Membership payment",
"destination":null,
"dispute":null,
"disputed":false,
"failure_code":null,
"failure_message":null,
"fraud_details":{},
"invoice":null,
"livemode":false,
"metadata":{},
"on_behalf_of":null,
"order":null,
"outcome":{"network_status":"approved_by_network","reason":null,"risk_level":"normal","risk_score":32,"seller_message":"Payment complete.","type":"authorized"},
"paid":true,
"payment_intent":null,
"payment_method":"card_1GsgOo2cKSiqTnd4MbYTIW9f",
"payment_method_details":{"card":{"brand":"visa","checks":{"address_line1_check":null,"address_postal_code_check":null,"cvc_check":"pass"},"country":"US","exp_month":3,"exp_year":2021,"fingerprint":"MsPFUrE7UByObNQG","funding":"debit","installments":null,"last4":"5556","network":"visa","three_d_secure":null,"wallet":null},"type":"card"},
"receipt_email":null,
"receipt_number":null,
"receipt_url":"https://pay.stripe.com/receipts/acct_102shN2cKSiqTnd4/ch_1GsgOp2cKSiqTnd4XE34Wdig/rcpt_HRZXsh2GemXcpjqCqqfdZoZ7WVIkGxc",
"refunded":false,
"refunds":[],
"review":null,
"shipping":null,
"source":{"id":"card_1GsgOo2cKSiqTnd4MbYTIW9f","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_HRZXnhcifFM749","cvc_check":"pass","dynamic_last4":null,"exp_month":3,"exp_year":2021,"fingerprint":"MsPFUrE7UByObNQG","funding":"debit","last4":"5556","metadata":{},"name":null,"tokenization_method":null,"type":"Visa"},
"source_transfer":null,
"statement_description":null,
"statement_descriptor":null,
"statement_descriptor_suffix":null,
"status":"paid",
"transfer_data":null,
"transfer_group":null
}
],
"has_more": true,
"url": "/v1/charges"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment