BoltApp / sleet

Payment abstraction library - one interface for multiple payment processors ( inspired by Ruby's ActiveMerchant )

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request - Redirect Gateway Support

burhan opened this issue Β· comments

πŸ‘‹

I would like to request a feature to support merchants are using PSP hosted platforms like PayPal, for example, where the process involves a redirect to the PSP, and then a callback.

I would like to start working on a PR for this but am looking for some guidance on how best to implement the feature. My main concern is with managing the redirect. Should the integration provide the callback URL, or simply take it as a parameter to pass onto the PSP? The parameter passing is simpler, but then it just acts like a very thin API; not sure if there is much value in that?

If the integration should also host the callback, then there is a need to manage ports/APIs and configuration around that.

Appreciate any thoughts on this.

I'm not sure if I understand your point. By "integration" you mean sleet itself? I tend to think pass-through would be simple. Based on quick google search it seems here is how activemerchnat handles it https://stackoverflow.com/a/51306358/1019366

Sleet also does not support paypal-like use case today and I'd be curious to see how we can design generic-ish api for that