Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stripe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Extensions
Stripe
Commits
8b233cf9
Commit
8b233cf9
authored
5 years ago
by
mattwire
Browse files
Options
Downloads
Patches
Plain Diff
Add CiviCRM version info to stripe customer.
parent
7f1d1121
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!70
6.2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CRM/Stripe/Customer.php
+3
-0
3 additions, 0 deletions
CRM/Stripe/Customer.php
docs/contribution.md
+3
-2
3 additions, 2 deletions
docs/contribution.md
with
6 additions
and
2 deletions
CRM/Stripe/Customer.php
+
3
−
0
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
;
...
...
This diff is collapsed.
Click to expand it.
docs/contribution.md
+
3
−
2
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`
).

...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment