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
Container registry
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
0967aeea
Commit
0967aeea
authored
3 years ago
by
mattwire
Browse files
Options
Downloads
Patches
Plain Diff
Add getters for Stripe IDs to IPN class
parent
9d1a7430
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!176
Release 6.7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Core/Payment/StripeIPN.php
+40
-0
40 additions, 0 deletions
CRM/Core/Payment/StripeIPN.php
with
40 additions
and
0 deletions
CRM/Core/Payment/StripeIPN.php
+
40
−
0
View file @
0967aeea
...
...
@@ -32,8 +32,20 @@ class CRM_Core_Payment_StripeIPN {
protected
$contactID
=
NULL
;
// Properties of the event.
/**
* @var string The Stripe Subscription ID
*/
protected
$subscription_id
=
NULL
;
/**
* @var string The Stripe Customer ID
*/
protected
$customer_id
=
NULL
;
/**
* @var string The Stripe Charge ID
*/
protected
$charge_id
=
NULL
;
/**
...
...
@@ -113,6 +125,34 @@ class CRM_Core_Payment_StripeIPN {
}
}
/**
* @return string|null
*/
public
function
getStripeCustomerID
()
{
return
$this
->
customer_id
;
}
/**
* @return string|null
*/
public
function
getStripeSubscriptionID
()
{
return
$this
->
subscription_id
;
}
/**
* @return string|null
*/
public
function
getStripeInvoiceID
()
{
return
$this
->
invoice_id
;
}
/**
* @return string|null
*/
public
function
getStripeChargeID
()
{
return
$this
->
charge_id
;
}
/**
* Store input array on the class.
*/
...
...
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