Checkout page + PAGSEGURO API | How to get cookies from other browsers [PHP]

0

Well I was doing a shopping cart system with php but I got to a level I got stuck ...

As "everyone" knows in the PagSeguro API for HTML payment you should declare the items to be paid example:

<input name="itemDescription1" type="hidden" value="'.$plugin_name.'"> 

In my case I wanted to change the itemDescription1 to + a number according to the items in the cart ....

If the person has 4 items in the cart PHP should change the itemDescription1 to an additional number according to the quantity of item in the cart type ... 1, 2, 3, 4 ...

And another question would be how do I get cookies from other browsers because they identify the user and their respective products? link

And if the user changes the browser, I'll lose this information ...

    
asked by anonymous 27.05.2018 / 17:46

0 answers