Skip to content

Instantly share code, notes, and snippets.

@kennethjohnbalgos
Created May 30, 2016 07:44
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 kennethjohnbalgos/391a0eaff48cb4231f20f5165bb84f2a to your computer and use it in GitHub Desktop.
Save kennethjohnbalgos/391a0eaff48cb4231f20f5165bb84f2a to your computer and use it in GitHub Desktop.
{
"created" => 1326853478,
"livemode" => false,
"id" => "evt_00000000000000",
"type" => "charge.dispute.created",
"object" => "event",
"request" => nil,
"pending_webhooks" => 1,
"api_version" => "2015-10-16",
"data" =>
{
"object" =>
{
"id" => "dp_00000000000000",
"object" => "dispute",
"amount" => 3000,
"balance_transactions" => [
{
"id" => "txn_18Fc4eJR1yx79QblApRwUxm7",
"object" => "balance_transaction",
"amount" => -3000,
"available_on" => 1464912000,
"created" => 1464321348,
"currency" => "usd",
"description" => "Chargeback withdrawal for ch_18Fc4dJR1yx79QblWx3qJ1j6",
"fee" => 1500,
"fee_details" => [
{
"amount" => 1500,
"application" => nil,
"currency" => "usd",
"description" => "Dispute fee",
"type" => "stripe_fee"
}
],
"net" => -4500,
"source" => "dp_18Fc4dJR1yx79QblaK2l5zAD",
"sourced_transfers" =>
{
"object" => "list",
"data" => nil,
"has_more" => false,
"total_count" => 0,
"url" => "/v1/transfers?source_transaction=ad_18Fc4eJR1yx79QblcWSAiFYg"
},
"status" => "pending",
"type" => "adjustment"
}
],
"charge" => "ch_00000000000000",
"created" => 1464321347,
"currency" => "usd",
"evidence" =>
{
"access_activity_log" => nil,
"billing_address" => nil,
"cancellation_policy" => nil,
"cancellation_policy_disclosure" => nil,
"cancellation_rebuttal" => nil,
"customer_communication" => nil,
"customer_email_address" => "kenneth+oa@railscraft.asia",
"customer_name" => "Customer for RSportz National Junior Basketball organization (#83)",
"customer_purchase_ip" => "49.144.201.85",
"customer_signature" => nil,
"duplicate_charge_documentation" => nil,
"duplicate_charge_explanation" => nil,
"duplicate_charge_id" => nil, "product_description" => nil,
"receipt" => nil,
"refund_policy" => nil,
"refund_policy_disclosure" => nil,
"refund_refusal_explanation" => nil,
"service_date" => nil,
"service_documentation" => nil,
"shipping_address" => nil,
"shipping_carrier" => nil,
"shipping_date" => nil,
"shipping_documentation" => nil,
"shipping_tracking_number" => nil,
"uncategorized_file" => nil,
"uncategorized_text" => nil
},
"evidence_details" =>
{
"due_by" => 1465775999,
"has_evidence" => false,
"past_due" => false,
"submission_count" => 0
},
"is_charge_refundable" => false,
"livemode" => false,
"metadata" => {},
"reason" => "general",
"status" => "needs_response"
}
},
"controller" => "stripe_charge_webhook",
"action" => "dispute",
"stripe_charge_webhook" =>
{
"created" => 1326853478,
"livemode" => false,
"id" => "evt_00000000000000",
"type" => "charge.dispute.created",
"object" => "event",
"request" => nil,
"pending_webhooks" => 1,
"api_version" => "2015-10-16",
"data" =>
{
"object" =>
{
"id" => "dp_00000000000000",
"object" => "dispute",
"amount" => 3000,
"balance_transactions" => [
{
"id" => "txn_18Fc4eJR1yx79QblApRwUxm7",
"object" => "balance_transaction",
"amount" => -3000,
"available_on" => 1464912000,
"created" => 1464321348,
"currency" => "usd",
"description" => "Chargeback withdrawal for ch_18Fc4dJR1yx79QblWx3qJ1j6",
"fee" => 1500,
"fee_details" => [
{
"amount" => 1500, "application" => nil, "currency" => "usd",
"description" => "Dispute fee", "type" => "stripe_fee"
}
],
"net" => -4500,
"source" => "dp_18Fc4dJR1yx79QblaK2l5zAD",
"sourced_transfers" =>
{
"object" => "list",
"data" => nil,
"has_more" => false,
"total_count" => 0,
"url" => "/v1/transfers?source_transaction=ad_18Fc4eJR1yx79QblcWSAiFYg"
},
"status" => "pending",
"type" => "adjustment"
}
],
"charge" => "ch_00000000000000",
"created" => 1464321347,
"currency" => "usd",
"evidence" =>
{
"access_activity_log" => nil,
"billing_address" => nil,
"cancellation_policy" => nil,
"cancellation_policy_disclosure" => nil,
"cancellation_rebuttal" => nil,
"customer_communication" => nil,
"customer_email_address" => "kenneth+oa@railscraft.asia",
"customer_name" => "Customer for RSportz National Junior Basketball organization (#83)",
"customer_purchase_ip" => "49.144.201.85",
"customer_signature" => nil,
"duplicate_charge_documentation" => nil,
"duplicate_charge_explanation" => nil,
"duplicate_charge_id" => nil,
"product_description" => nil,
"receipt" => nil,
"refund_policy" => nil,
"refund_policy_disclosure" => nil,
"refund_refusal_explanation" => nil,
"service_date" => nil,
"service_documentation" => nil,
"shipping_address" => nil,
"shipping_carrier" => nil,
"shipping_date" => nil,
"shipping_documentation" => nil,
"shipping_tracking_number" => nil,
"uncategorized_file" => nil,
"uncategorized_text" => nil
},
"evidence_details" =>
{
"due_by" => 1465775999,
"has_evidence" => false,
"past_due" => false,
"submission_count" => 0
},
"is_charge_refundable" => false,
"livemode" => false,
"metadata" => {},
"reason" => "general",
"status" => "needs_response"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment