Generate single pages for customer to make payment

2

I have a system where the client types 5 parameters and clicking send is directed to another page where the information filled in the previous screen is posted.

But today, this landing page is always the same. What I need is that every time I enter the information they are posted to a different, unique URL and hold the posted values to be accessed later.

In summary these posted values are the payment data of a gateway , and I need every time the admin enters and enters a value, a link is generated to send each client to the even make the payment.

    
asked by anonymous 19.06.2014 / 03:44

1 answer

2

You could generate these links using the client id, or the id of that payment you have in your database to generate a unique link.

The simplest way would be a query string in the URL with the type of functionality, and with the id of the invoice. For example:

dominio.com/?tipo=pagamento&fatura=10

or simpler:

dominio.com/?pagamento=10 // assim tem o tipo na chave e o id no valor

If you want you can also encrypt the query string, but it seems unnecessary here.

Using my second example I could use this way to know in PHP the url data:

<?php
if($fatura = $_GET["pagamento"]){
    echo $fatura; // dá 10
    // usar esse valor para o que precisa
}
?> 
    
19.06.2014 / 11:34