Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
capo
Stripe
Commits
8b233cf9
Commit
8b233cf9
authored
Oct 17, 2019
by
mattwire
Browse files
Add CiviCRM version info to stripe customer.
parent
7f1d1121
Changes
2
Hide whitespace changes
Inline
Side-by-side
CRM/Stripe/Customer.php
View file @
8b233cf9
...
...
@@ -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
;
...
...
docs/contribution.md
View file @
8b233cf9
...
...
@@ -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`
).

...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment