Redirect to external website with POST data(payments)

I am working at implementing payments into my Meteor app. What I need to do is redirect to the external website(payments processing company) with the POST data. So far I was able to do redirect like window.location.href = '' but it works only as a GET request. I don’t want to show payment data in URL bar. Is there any package or anything what can help me? I can’t use stripe or anything like that, because I need to process transfers from local banks.

Thanks in advance!

Hello, how do you resolv your question? Can share with me? :wink:

Hi, My solution was creating an additional form with display: hidden. After submitting form visible for the user I programmatically assign values to the hidden one and then submit it. Simple example below:

<form method="POST" id="hidden-form" action="" style="display: hidden">
  <input id="id" type="hidden" />
  <input id="amount" type="hidden" />

In function which handles visible form submit I have below code:


Have a nice day!

1 Like