Commit 0967aeea authored by mattwire's avatar mattwire
Browse files

Add getters for Stripe IDs to IPN class

parent 9d1a7430
......@@ -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.
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment