Skip to content

Instantly share code, notes, and snippets.

@gbradley
Last active February 14, 2018 10:16
Show Gist options
  • Select an option

  • Save gbradley/8e0f38110bf19a79007d8a1d9f00c837 to your computer and use it in GitHub Desktop.

Select an option

Save gbradley/8e0f38110bf19a79007d8a1d9f00c837 to your computer and use it in GitHub Desktop.
"Payment success" - with use_sales_opportunities set to false
{
"currency": "gbp",
"card": "tok_1BsXU2Kq9YwkKz0GvyfHX3OR",
"receipt_email": "xxx@gbradley.com",
"metadata": {
"email": "xxx@gbradley.com",
"company": "GMB Technology Ltd",
"first_name": "Graham",
"last_name": "Bradley4",
"phone": "0131 123 456",
"address1": "196 Rose St",
"city": "Edinburgh",
"territory": "",
"postal_code": "EH2 4AT",
"country": "UK"
},
"amount": "75000",
"description": "Diploma in Single Malt Whisky"
}
{
"id": "ch_1BsXU4Kq9YwkKz0GR0ZvnIC8",
"object": "charge",
"amount": 75000,
"amount_refunded": 0,
"application": null,
"application_fee": null,
"balance_transaction": "txn_1BsXU4Kq9YwkKz0GslI8nchW",
"captured": true,
"created": 1517927504,
"currency": "gbp",
"customer": null,
"description": "Diploma in Single Malt Whisky",
"destination": null,
"dispute": null,
"failure_code": null,
"failure_message": null,
"fraud_details": {},
"invoice": null,
"livemode": false,
"metadata": {
"email": "xxx@gbradley.com",
"company": "GMB Technology Ltd",
"first_name": "Graham",
"last_name": "Bradley4",
"phone": "0131 123 456",
"address1": "196 Rose St",
"city": "Edinburgh",
"postal_code": "EH2 4AT",
"country": "UK"
},
"on_behalf_of": null,
"order": null,
"outcome": {
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"receipt_email": "xxx@gbradley.com",
"receipt_number": null,
"refunded": false,
"refunds": {
"object": "list",
"data": [],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1BsXU4Kq9YwkKz0GR0ZvnIC8/refunds"
},
"review": null,
"shipping": null,
"source": {
"id": "card_1BsXU2Kq9YwkKz0GMDTYsZUp",
"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": null,
"cvc_check": "pass",
"dynamic_last4": null,
"exp_month": 12,
"exp_year": 2020,
"fingerprint": "GnoHZtyzoDrIVYos",
"funding": "credit",
"last4": "4242",
"metadata": {},
"name": "Graham Bradley4",
"tokenization_method": null
},
"source_transfer": null,
"statement_descriptor": null,
"status": "succeeded",
"transfer_group": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment