Skip to content
Snippets Groups Projects
Commit 0af2088a authored by mattwire's avatar mattwire
Browse files

Add invoice_date to API

parent dcab876b
Branches
Tags
1 merge request!241Stripe Import extension
......@@ -115,6 +115,15 @@ class CRM_Stripe_Api {
}
return self::formatDate($timestamp);
case 'invoice_date':
if (!empty($stripeObject->status_transitions->finalized_at)) {
$timestamp = $stripeObject->status_transitions->finalized_at;
}
else {
$timestamp = $stripeObject->created;
}
return self::formatDate($timestamp);
case 'subscription_id':
return (string) $stripeObject->subscription;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment