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

Fix retrieving parameter for IPN

parent 8360c4fa
No related branches found
No related tags found
1 merge request!42Fix retrieving parameter for IPN !38 !39 thanks @JonGold
...@@ -151,7 +151,7 @@ class CRM_Core_Payment_StripeIPN extends CRM_Core_Payment_BaseIPN { ...@@ -151,7 +151,7 @@ class CRM_Core_Payment_StripeIPN extends CRM_Core_Payment_BaseIPN {
* @throws \CRM_Core_Exception * @throws \CRM_Core_Exception
*/ */
public function retrieve($name, $type, $abort = TRUE) { public function retrieve($name, $type, $abort = TRUE) {
$value = CRM_Stripe_Api::getObjectParam($name, $type, $this->_inputParameters->data->object); $value = CRM_Stripe_Api::getObjectParam($name, $this->_inputParameters->data->object);
$value = CRM_Utils_Type::validate($value, $type, FALSE); $value = CRM_Utils_Type::validate($value, $type, FALSE);
if ($abort && $value === NULL) { if ($abort && $value === NULL) {
...@@ -359,7 +359,7 @@ class CRM_Core_Payment_StripeIPN extends CRM_Core_Payment_BaseIPN { ...@@ -359,7 +359,7 @@ class CRM_Core_Payment_StripeIPN extends CRM_Core_Payment_BaseIPN {
*/ */
public function setInfo() { public function setInfo() {
$abort = FALSE; $abort = FALSE;
$this->customer_id = CRM_Stripe_Api::getParam('customer_id', $this->_inputParameters); $this->customer_id = CRM_Stripe_Api::getObjectParam('customer_id', $this->_inputParameters->data->object);
if (empty($this->customer_id)) { if (empty($this->customer_id)) {
$this->exception('Missing customer_id!'); $this->exception('Missing customer_id!');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment