Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Returning custom input data from PayPal

I created a basic purchase script where a user enters their desired username and password, then they can purchase the membership on my website. But, when it goes to the return page, the values Username and Password don't show in the url. Here is the code:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="CKQH4CYEMYLWW">
    <center>
        <span id="msgbox" style="display:none;"></span>
        <br><br>

        <input type="text" id="rusername" name="rusername" placeholder="Desired Username" class="usernamelogin">
        <br><br>

        <input type="password" id="rpassword" name="rpassword" placeholder="Desired Password" class="passwordlogin">
        <br><br>

        <input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal — The safer, easier way to pay online.">
        <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
like image 308
user1656217 Avatar asked Nov 12 '22 22:11

user1656217


1 Answers

set cookie variable for each input variable and pass the data accordingly . . and on return from paypal you can simply check the cookie variable and pass the data in the individual input accordingly ..

like image 101
kushalbhaktajoshi Avatar answered Nov 15 '22 13:11

kushalbhaktajoshi