-- HikaShop version -- : 4.7.1
-- Joomla version -- : 4.2.8
-- PHP version -- : 8
-- Error-message(debug-mod must be tuned on) -- : Questa pagina non reindirizza in modo corretto
Hi,
I've implemented a payment plugin based on the one indicated, but slightly different because based in API and not on forma data sending.
Everything works ok until redirect to checkout, which fails. This is the plugin workflow:
- onAfterOrderConfirm: I send payment data to API and receive back Transaction Id and the return url for display payment options
- I store transcation Id in order_payment_params DB (needed later) and redirect to return URL
- on returned URL I make the payment (sandbox mode)
- after payment is completed the system redirects to notify URL
- onPaymentNotification: I get the transaction Id from DB, based on order Id and send it back to API to check payment
- Payment is confirmed, so I update the order state to verifiled
Until now everythig works like a charm, but when I try to redirect to return URL I get the error
"Questa pagina non reindirizza in modo corretto
Si è verificato un errore durante la connessione a zoequattro.davide-strati.it.
Questo problema spesso è causato dal blocco o dal rifiuto dei cookie."
Return URL is:
HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=after_end&order_id='.$order_id.$this->url_itemid;
Returned is like:
zoequattro.davide-strati.it/index.php?op...order_token=ADnplTaq
I tried disabling Attachinvoice plugin, that gave problems, with no result.
I enabled debugging at higher grade, bu no error is outputted.
Payment logs are ok.
If you want you can test the payment with the following data:
MasterCard nr. 5256103270096532
valid until 04/25
CVV2: 241
Attached you can see Payment log.
Thanks for help!
Barbara