ai-payments
ai-payments copied to clipboard
Casting issue in omnipay file
Hi, i think there is an issue in omnipy file in sendRequest function.
the type return by this: $this->getValue( 'authorize', false ) is by default interger and there is this $provider->supportsAuthorize() which return boolean type. So this :
if( $this->getValue( 'authorize', false ) && $provider->supportsAuthorize() )
will not always be coorect.