Skip to content

Instantly share code, notes, and snippets.

@kennethjohnbalgos
Created October 23, 2024 10:42
Show Gist options
  • Save kennethjohnbalgos/031ec496f6c1c2a7a67e374659399f04 to your computer and use it in GitHub Desktop.
Save kennethjohnbalgos/031ec496f6c1c2a7a67e374659399f04 to your computer and use it in GitHub Desktop.
{
"data" => {
"id" => "cs_5Va7s7epFJJyu3npssijJtGD",
"type" => "checkout_session",
"attributes" => {
"billing" => {
"address" => {
"city" => nil,
"country" => nil,
"line1" => nil,
"line2" => nil,
"postal_code" => nil,
"state" => nil
},
"email" => "[email protected]",
"name" => "Kenn John",
"phone" => nil
},
"billing_information_fields_editable" => "enabled",
"cancel_url" => "http://pageantvote.test:8081/paymongo_failed?id=68930",
"checkout_url" => "https://checkout.paymongo.com/cs_5Va7s7epFJJyu3npssijJtGD_client_GK6a2Q8G7zbE3J8VzrKxZnLE#cGtfdGVzdF9idXltTmFiYWFURVNIeHBLR0tIVzEycXU=",
"client_key" => "cs_5Va7s7epFJJyu3npssijJtGD_client_GK6a2Q8G7zbE3J8VzrKxZnLE",
"customer_email" => nil,
"description" => "50 votes for Alyssa Hernandez in Face Australia 2022",
"line_items" => [
{
"amount" => 10000,
"currency" => "PHP",
"description" => "50 votes for Php 100",
"images" => [],
"name" => "Vantle - PH Voting P100",
"quantity" => 1
}, {
"amount" => 1500,
"currency" => "PHP",
"description" => nil,
"images" => [],
"name" => "Service Fee",
"quantity" => 1
}, {
"amount" => 470,
"currency" => "PHP",
"description" => nil,
"images" => [],
"name" => "Processing Fee (4.7%)",
"quantity" => 1
}
],
"livemode" => false,
"merchant" => "PAGEANT VOTE PH",
"payments" => [],
"payment_intent" => {
"id" => "pi_KGyJTA8UxaagSMD1Z1yiyLvE",
"type" => "payment_intent",
"attributes" => {
"amount" => 11970,
"capture_type" => "automatic",
"client_key" => "pi_KGyJTA8UxaagSMD1Z1yiyLvE_client_Cwa2NQQrMhNKiWX1BAxGEeBP",
"currency" => "PHP",
"description" => "50 votes for Alyssa Hernandez in Face Australia 2022",
"livemode" => false,
"statement_descriptor" => "PAGEANT VOTE PH",
"status" => "awaiting_payment_method",
"last_payment_error" => nil,
"payment_method_allowed" => ["brankas", "billease", "dob", "gcash", "card", "grab_pay", "paymaya", "qrph"],
"payments" => [],
"next_action" => nil,
"payment_method_options" => {
"card" => {
"request_three_d_secure" => "any"
}
},
"metadata" => nil,
"setup_future_usage" => nil,
"created_at" => 1729679794,
"updated_at" => 1729679794
}
},
"payment_method_types" => ["gcash", "paymaya", "billease", "qrph", "brankas_landbank", "dob_ubp", "grab_pay", "card", "brankas_bdo", "dob", "brankas_metrobank"],
"reference_number" => "68930",
"send_email_receipt" => false,
"show_description" => true,
"show_line_items" => true,
"status" => "active",
"success_url" => "http://pageantvote.test:8081/paymongo_success?id=68930",
"created_at" => 1729679794,
"updated_at" => 1729679794,
"metadata" => nil
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment