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
b3ee52b7
Commit
b3ee52b7
authored
Oct 06, 2019
by
mattwire
Browse files
Fix missing function when IPN parameters are invalid
parent
b4fec98b
Changes
1
Show whitespace changes
Inline
Side-by-side
CRM/Core/Payment/StripeIPN.php
View file @
b3ee52b7
...
...
@@ -103,15 +103,15 @@ class CRM_Core_Payment_StripeIPN extends CRM_Core_Payment_BaseIPN {
* @param array $parameters
*/
public
function
setInputParameters
(
$parameters
)
{
if
(
!
is_object
(
$parameters
))
{
$this
->
exception
(
'Invalid input parameters'
);
}
// Determine the proper Stripe Processor ID so we can get the secret key
// and initialize Stripe.
$this
->
getPaymentProcessor
();
$this
->
_paymentProcessor
->
setAPIParams
();
if
(
!
is_object
(
$parameters
))
{
$this
->
exception
(
'Invalid input parameters'
);
}
// Now re-retrieve the data from Stripe to ensure it's legit.
// Special case if this is the test webhook
if
(
substr
(
$parameters
->
id
,
-
15
,
15
)
===
'_00000000000000'
)
{
...
...
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