ai-payments icon indicating copy to clipboard operation
ai-payments copied to clipboard

Casting issue in omnipay file

Open speroamey opened this issue 1 year ago • 0 comments

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.

speroamey avatar Sep 11 '23 21:09 speroamey