Skip to content

Instantly share code, notes, and snippets.

@Kcin1993
Last active May 21, 2019 02:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kcin1993/e563988f1e1e8ec56891dda3e203159d to your computer and use it in GitHub Desktop.
Save Kcin1993/e563988f1e1e8ec56891dda3e203159d to your computer and use it in GitHub Desktop.
{
clone_url:
"https://yosgo-store.myshopify.com/22925049933/checkouts/0643d219cd07b6c43e92e8b74c78951e/clone",
completed_at: "2019-05-20T11:01:19-04:00",
created_at: "2019-05-20T10:52:31-04:00",
currency: "TWD",
presentment_currency: "TWD",
customer_id: 1820020080717,
customer_locale: "en",
device_id: null,
discount_code: null,
email: "realman82823@gmail.com",
legal_notice_url: null,
location_id: null,
name: "#7729136992333",
note: "",
note_attributes: {},
order_id: 1058566996045,
order_status_url:
"https://yosgo-store.myshopify.com/22925049933/checkouts/0643d219cd07b6c43e92e8b74c78951e/thank_you?key=ff1687295786961036b23587994d9e4e",
order: {
id: 1058566996045,
name: "#1007",
status_url:
"https://yosgo-store.myshopify.com/22925049933/checkouts/0643d219cd07b6c43e92e8b74c78951e/thank_you?key=ff1687295786961036b23587994d9e4e"
},
payment_due: "58.30",
payment_url: "https://elb.deposit.shopifycs.com/sessions",
payments: [
{
id: 758985883725,
unique_token: "70bc93b705b3863ce9517777605e2e13",
payment_processing_error_message: null,
fraudulent: false,
transaction: {
amount: "58.30",
amount_in: null,
amount_out: null,
amount_rounding: null,
authorization: null,
created_at: "2019-05-20T10:53:26-04:00",
currency: "TWD",
error_code: "processing_error",
parent_id: null,
gateway: "bogus",
id: 1298596102221,
kind: "sale",
message: "Bogus Gateway: Forced failure",
status: "failure",
test: true,
receipt: {
paid_amount: "58.30",
error: "Bogus Gateway: Forced failure",
error_code: "processing_error"
},
location_id: null,
user_id: null,
transaction_group_id: null,
device_id: null
},
credit_card: {
first_name: "Bogus",
last_name: "Gateway",
first_digits: "2",
last_digits: "2",
brand: "bogus",
expiry_month: 12,
expiry_year: 2024,
customer_id: 1820020080717
}
},
{
id: 758988111949,
unique_token: "c2c7bdd95121829e99803820358a7602",
payment_processing_error_message: null,
fraudulent: false,
transaction: {
amount: "58.30",
amount_in: null,
amount_out: null,
amount_rounding: null,
authorization: null,
created_at: "2019-05-20T10:56:30-04:00",
currency: "TWD",
error_code: null,
parent_id: null,
gateway: "bogus",
id: 1298600525901,
kind: "sale",
message:
"Bogus Gateway: Use CreditCard number ending in 1 for success, 2 for exception and anything else for error",
status: "failure",
test: false,
receipt: {},
location_id: null,
user_id: null,
transaction_group_id: null,
device_id: null
},
credit_card: {
first_name: "Nick",
last_name: "",
first_digits: "3",
last_digits: "3",
brand: "bogus",
expiry_month: 12,
expiry_year: 2024,
customer_id: 1820020080717
}
},
{
id: 758991159373,
unique_token: "e101d02198b46f355b2080078af4aa0a",
payment_processing_error_message: null,
fraudulent: false,
transaction: {
amount: "58.30",
amount_in: null,
amount_out: null,
amount_rounding: null,
authorization: "53433",
created_at: "2019-05-20T11:01:18-04:00",
currency: "TWD",
error_code: null,
parent_id: null,
gateway: "bogus",
id: 1298606096461,
kind: "sale",
message: "Bogus Gateway: Forced success",
status: "success",
test: true,
receipt: {
paid_amount: "58.30"
},
location_id: null,
user_id: null,
transaction_group_id: null,
device_id: null
},
credit_card: {
first_name: "Nick",
last_name: "",
first_digits: "1",
last_digits: "1",
brand: "bogus",
expiry_month: 12,
expiry_year: 2024,
customer_id: 1820020080717
}
}
],
phone: null,
shopify_payments_account_id: null,
privacy_policy_url: null,
refund_policy_url: null,
requires_shipping: true,
reservation_time_left: 0,
reservation_time: null,
source_identifier: null,
source_name: "2905547",
source_url: null,
subtotal_price: "46.00",
shipping_policy_url: null,
tax_exempt: false,
taxes_included: false,
terms_of_sale_url: null,
terms_of_service_url: null,
token: "0643d219cd07b6c43e92e8b74c78951e",
total_price: "58.30",
total_tax: "2.30",
total_tip_received: "0.00",
total_line_items_price: "46.00",
updated_at: "2019-05-20T11:01:23-04:00",
user_id: null,
web_url:
"https://yosgo-store.myshopify.com/22925049933/checkouts/0643d219cd07b6c43e92e8b74c78951e?key=ff1687295786961036b23587994d9e4e",
line_items: [
{
id: "d6b24f08fa5bbbe4f86cb9a826bf063e",
key: "d6b24f08fa5bbbe4f86cb9a826bf063e",
product_id: 3551242911821,
variant_id: 28215148609613,
sku: "",
vendor: "Liam Fashions",
title: "Classic Leather Jacket",
variant_title: "medium",
image_url:
"https://cdn.shopify.com/s/files/1/0229/2504/9933/products/photo-1548712370-806c729f72ef.jpeg?v=1558237628",
taxable: true,
requires_shipping: true,
gift_card: false,
price: "46.00",
compare_at_price: null,
line_price: "46.00",
properties: {},
quantity: 1,
grams: 331,
fulfillment_service: "manual",
applied_discounts: []
}
],
gift_cards: [],
tax_lines: [
{
price: "2.30",
rate: 0.05,
title: "VAT",
compare_at: 0.05
}
],
tax_manipulations: [],
shipping_line: {
handle: "shopify-Standard%20Shipping-10.00",
price: "10.00",
title: "Standard Shipping"
},
shipping_rate: {
id: "shopify-Standard%20Shipping-10.00",
price: "10.00",
title: "Standard Shipping"
},
shipping_address: {
id: 2066059690061,
first_name: "Nick",
last_name: "Chen",
phone: null,
company: null,
address1: "address",
address2: "apartment",
city: "city",
province: null,
province_code: null,
country: "Taiwan",
country_code: "TW",
zip: "123"
},
credit_card: {
first_name: "Nick",
last_name: "",
first_digits: "1",
last_digits: "1",
brand: "bogus",
expiry_month: 12,
expiry_year: 2024,
customer_id: 1820020080717
},
billing_address: {
id: 2066059690061,
first_name: "Nick",
last_name: "Chen",
phone: null,
company: null,
address1: "address",
address2: "apartment",
city: "city",
province: null,
province_code: null,
country: "Taiwan",
country_code: "TW",
zip: "123"
},
applied_discount: null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment