Click here to Skip to main content
15,885,670 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there im trying to add functions to my codeigniter project so that people can checkout using perfectmoney and advcash by clicking buttons which link them to the api and redirect user to the appropriate payment service. I have followed the relevant api documentation for each and placed some buttons into the relevant view page where I want them but when I click the buttons they don't redirect to my desired link just /index.php/processing/asdasd? can anyone guide me on where im going wrong? here is a sample for perfectmoney:

<button link="https://perfectmoney.is/api/step1.asp" method="POST">
<input type="hidden" name="PAYEE_ACCOUNT" value="U3492039">
<input type="hidden" name="PAYEE_NAME" value="Cryptonage">
<input type="hidden" name="PAYMENT_UNITS" value="USD">
<input type="hidden" name="STATUS_URL" value="https://perfectmoney.is/api/step1.asp">
<input type="hidden" name="PAYMENT_URL" value="http://127.0.0.1/cryptonage.net/index.php/processing#wizard-h-3">
<input type="hidden" name="PAYMENT_URL_METHOD" value="GET">
<input type="hidden" name="NOPAYMENT_URL" value="http://127.0.0.1/cryptonage.net">
<input type="hidden" name="NOPAYMENT_URL_METHOD" value="GET">
<input type="hidden" name="SUGGESTED_MEMO" value="">
<input type="hidden" name="BAGGAGE_FIELDS" value="">
<input type="submit" name="PAYMENT_METHOD" value="Perfectmoney checkout">
</button> 


What I have tried:

following relevant payment api docs and placing html buttons in my codeigniter project.
Posted
Comments
Richard Deeming 20-Mar-18 17:08pm    
Why are you using a <button> element, rather than a <form> element?

In regular HTML, I'd expect to see:
<form action="https://perfectmoney.is/api/step1.asp" method="POST">
...
</form>
Member 13707161 20-Mar-18 17:17pm    
even using the form element, getting same link problem
Richard MacCutchan 21-Mar-18 5:19am    
Why are you trying to send to the loopback address?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900