Hi,
That's an interesting point. Normally, the plugin will display many payment methods on the end screen.
And so, when you cancel, you can select another payment method from there. So we didn't thought about returning to the checkout.
I think we'll add the code:
<?php
if(!empty($this->payment_params->cancel_url)) {
?>
onCancel: function (data) {
// redirect to cancel URL
window.location.href = "<?php echo $this->cancel_url; ?>";
},
<?php
}
?>
before the line:
createOrder: function(data, actions) {
in the file plugins/hikashoppayment/paypalcheckout/paypalcheckout_end.php
That way, if you provide the URL of your checkout in the "cancel URL" of your PayPal Checkout payment method, you'll be redirected back to it when canceling the payment from PayPal.
Regarding the confirmation of the order, what is the URL you end up after the payment ?
Also, check the "payment log file" setting of the HikaShop configuration. It should contain interesting information about the issue at the end. And if you have the "debug" setting of the payment method on for a test payment, you should even even more information in the payment log.