Commit 63587b2c authored by mattwire's avatar mattwire

Fix check that we are handling a supported IPN

parent e977bea2
......@@ -92,8 +92,8 @@ class CRM_Core_Payment_AuthNetIPN {
// \Civi::log()->debug('bank account payment but not echeck processor');
return TRUE;
}
else {
$this->exception('Unsupported payment type (not creditCard or bankAccount');
if (!property_exists($response->transaction->payment, 'creditCard') && !property_exists($response->transaction->payment, 'bankAccount')) {
$this->exception('Unsupported payment type (not creditCard or bankAccount)');
}
// Set parameters required for IPN functions
......
......@@ -14,7 +14,7 @@
<author>Matthew Wire</author>
<email>mjw@mjwconsult.co.uk</email>
</maintainer>
<releaseDate>2020-11-17</releaseDate>
<releaseDate>2020-11-19</releaseDate>
<version>2.2.2-dev</version>
<develStage>beta</develStage>
<compatibility>
......
Markdown is supported
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