Hey Aaron,
Not knowing that code in detail, I assume the OAuth implementation requires
redirection to a fixed URL, while the paypal checkout allows each payment
to be redirected to a different URL. We've implemented a different payment
method (ogone) where both static resources (for the online notification
from the payment processor to the application) and private resources (for
redirections by the GUI) are used. I'd recommend to use private resources
if you can, static resources if you must.
Best regards,
Wim.
On 9 September 2016 at 19:41, Aarón Bueno Villares <abv15...@gmail.com>
wrote:
> I'm trying to add, to a website I'm developing, a payment method (Redsys;
> a spanish virtual POS), to accept card payments. Of course, the most tricky
> part is to manage the redirection (and, in the case of Redsys, an on-line
> notification, which is an extra url to send payment details). So, the most
> obvious way to do it is emulate what Wt currently does.
>
> Reading the Wt implementation, I've seen two different approaches to
> manage these redirections.
>
> * Google OAuth: the redirection url is a static resource which redirects
> to a private resource (which closes the windows)
>
> * PayPalCheckoutExpress: the redirection url is just a private resource,
> which closes the windows and trigger a JSignal.
>
> Why Google OAuth uses two WResources? Is there any adventage? And why
> triggering a JSignal from within javascript? Isn't it better to trigger a
> signal from the resource itself?
>
> Thank you very much in advance,
>
> ------------------------------------------------------------
> ------------------
>
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest