How do I add a PayPal button on a page where prices may vary?

0

When we go to the PagSeguro website and we go to the generate a button , it asks us a price, code, name, etc ... And if I'm working like this:

I have only one page product, that content will be changed according to an id passed in the URL eg: www.site.com/produto.php?id=90

So how do I generate a button for a page that prices may vary?

Button code

<!-- INICIO FORMULARIO BOTAO PAGSEGURO -->
<form action="https://pagseguro.uol.com.br/checkout/v2/cart.html?action=add" method="post">
<!-- NÃO EDITE OS COMANDOS DAS LINHAS ABAIXO -->
<input type="hidden" name="itemCode" value="A8502D0C414194600442BF8E73DF92FD" />
<input type="image" src="https://p.simg.uol.com.br/out/pagseguro/i/botoes/pagamentos/209x48-comprar-assina.gif"name="submit" alt="Pague com PagSeguro - é rápido, grátis e seguro!" />
</form>
<!-- FINAL FORMULARIO BOTAO PAGSEGURO -->
    
asked by anonymous 16.11.2015 / 16:54

1 answer

2

You can not edit the button. Ideally you should use the secure paging integration libraries where you can have fine control over all the information of your products.

    
16.11.2015 / 20:13