Skip to content
Snippets Groups Projects
Commit 8b233cf9 authored by mattwire's avatar mattwire
Browse files

Add CiviCRM version info to stripe customer.

parent 7f1d1121
Branches
Tags
1 merge request!706.2
......@@ -3,6 +3,8 @@
* https://civicrm.org/licensing
*/
use CRM_Stripe_ExtensionUtil as E;
/**
* Class CRM_Stripe_Customer
*/
......@@ -202,6 +204,7 @@ class CRM_Stripe_Customer {
'metadata' => [
'CiviCRM Contact ID' => $params['contact_id'],
'CiviCRM URL' => CRM_Utils_System::url('civicrm/contact/view', "reset=1&cid={$params['contact_id']}", TRUE),
'CiviCRM Version' => CRM_Utils_System::version() . ' ' . civicrm_api3('Extension', 'getvalue', ['return' => "version", 'full_name' => E::LONG_NAME]),
],
];
return $stripeCustomerParams;
......
......@@ -47,8 +47,9 @@ The following metadata is created for a Stripe Customer:
* Contact Name, Email address
* Description (`CiviCRM: ` + site name).
* Contact ID
* Link to CiviCRM contact record
* Contact ID.
* Link to CiviCRM contact record.
* CiviCRM version info (eg. `5.18.3 6.2`).
![Stripe Customer](/images/stripedashboard_customerdetail.png)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment