Page 1 of 1

Popup / lightbox payments

Posted: 06 Nov 2019, 10:51
by flomo
Some payment gateways offer lightbox payments, where the payment form opens in a popup window and payment negotiations occur over Javascript (for example Datatrans). I wasn't able to find out, if this is supported in Aimeos.

I checked the code of Omnipay and its concrete gateway implementation (Datatrans, in my case). There is support for both, the redirect as well as the lightbox mode. I'm just not sure, how (and if) this is implemented in Aimeos standard and onepage checkout.

Re: Popup / lightbox payments

Posted: 06 Nov 2019, 18:39
by aimeos
The Datatrans payment provider in the ai-payments extension only supports the redirect mode AFAIK

Re: Popup / lightbox payments

Posted: 07 Nov 2019, 18:29
by flomo
The Datatrans payment provider in the ai-payments extension only supports the redirect mode AFAIK
The implementation has a lightbox mode: https://github.com/academe/omnipay-data ... htbox-mode

But I was more wondering, if and how such a function could be enabled in Aimeos. I checked the checkout templates and only found out, that Aimeos checkout builds a form based on the extension parameters. This would imply, that only redirect modes can be used with Aimeos (with any Omnipay extension)?

Re: Popup / lightbox payments

Posted: 09 Nov 2019, 10:43
by aimeos
I think you have to extend the Datatrans service provider to create the HTML/JS that is required for lightbox mode just like the Stripe provider does:
- https://github.com/aimeoscom/ai-payment ... e.php#L187
- https://github.com/aimeoscom/ai-payment ... #L217-L302

Re: Popup / lightbox payments

Posted: 09 Nov 2019, 15:16
by flomo
I think you have to extend the Datatrans service provider to create the HTML/JS that is required for lightbox mode just like the Stripe provider does:
I'm a bit confused. It would indeed help to see this implemented in any provider, that's why I also tried out other payment methods. But I have Stripe installed and the payment page is only added as an additional step in the checkout process, there is no popup:

Re: Popup / lightbox payments

Posted: 10 Nov 2019, 11:59
by aimeos
It looks the same bit is totally different in the backend because the form is created via Javascript and also the communication between the client and the Stripe server is AJAX only compared to a redirect to the payment gateway server in traditional mode.