Hi,
That's indeed how it should be. I looked into it and I think I know what's going on.
However, I'm not able to test this as it's apparently not possible to test echecks with the sandbox PayPal provides to developers.
So I'm not sure if what I think should be done will work, nor if it's actually a configuration issue, not a code issue.
So I propose to do 2 things:
- Change the code:
if($response->result->intent == 'AUTHORIZE' && $response->result->status == 'APPROVED') {
to:
if($response->result->intent == 'AUTHORIZE' && in_array($response->result->status, array('APPROVED', 'COMPLETED'))) {
in the file plugins/hikashoppayment/paypalcheckout/paypalcheckout.php
- Turn on the "debug" setting of the payment method.
That way, if the change helps, then, it's problem solved. If it doesn't, please provide what you get in the "payment log file" of the HikaShop configuration. That should give us enough information to understand what's going on.