Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1277 Visualizzazioni

Hi,

I'm trying to create a custom form that will automatically go to payment acquirer page when submit button is clicked without losing form data(just like ecommerce).

Any Idea?

Avatar
Abbandona
Risposta migliore

Hello Minaz,

I hope this is what you're looking for,

Custom HTML form:

<form action="https://checkout.TestPay.com/paymentPage" method="POST">
<input type="text" name="card_number"/>
<input type="text" name="card_holder_name"/>
<input type="text" name="expiry_date"/>
<input type="password" name="card_security_code"/>
<button value="Send" type="submit"/>
</form>   

*You can add the payment-acquirer page's URL in the form action

*And can submit the form using a controller function and can redirect to any URL 

*Or can submit from js(eg:- form.submit() )

Regards

Avatar
Abbandona