craft-stripecheckout
craft-stripecheckout copied to clipboard
Using array_key_exists() on objects is deprecated
Hey, i thing the plugin needs an update, i was working with it and i got this error:
yii\base\ErrorException: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /myroot/vendor/stripe/stripe-php/lib/ApiRequestor.php:402
array_key_exists() is deprecated in PHP 7.4 so the plugin breaks, i had to change array_key_exist() for isset(), but this function was especting a second parameter, the only way i made it work was deleting 'request-id' parameter.
Do you have an other solution? Thanks!
Added https://github.com/jalendport/craft-stripecheckout/pull/27 which should solve this.