pluginssyliuspayum

EuPlatesc payment integration


EuPlatesc is a Romanian provider for online payments. I want to integrate this in Sylius platform as a plugin. I've reached the phase where I'm handling the step after checkout that reaches CaptureAction.php.

However EuPlatesc works with a POST request made to a secure url, similar to this description PHP Redirect with POST data.

Is it possible to implement this kind of behavior in Sylius ?


Solution

  • You can use Payum\Core\Reply\HttpPostRedirect class, which makes a POST request and redirects user to payment processor page. The example of it usage you can find in Be2Bill gateway