Skip to content
Snippets Groups Projects
Commit 900aae00 authored by Peter Hartmann's avatar Peter Hartmann
Browse files

use current date-time for failed contribution receive_date

parent 68a602de
Branches
Tags
No related merge requests found
......@@ -257,7 +257,7 @@ class CRM_Stripe_Page_Webhook extends CRM_Core_Page {
$new_invoice_id = $stripe_event_data->data->object->id;
$charge_id = $stripe_event_data->data->object->charge;
$attempt_count = $stripe_event_data->data->object->attempt_count;
$fail_date = date("Y-m-d H:i:s", $stripe_event_data->data->object->date);
$fail_date = date("Y-m-d H:i:s");
$amount = $charge->amount / 100;
$fee_amount = isset($charge->fee) ? ($charge->fee / 100) : 0;
$transaction_id = $charge->id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment