Hi,
Im calling a URL for payment to MercadoPago , posting a jSon to a URL like:
https://www.mercadopago.com.ar/checkout/v1/redirect?pref_id=55501893-1b62ecfe-ce4c-4448-bd37-3c2bc782a2b3Im sending it the SessionID as a variable 'external_reference' inside the jSon and it is returned from the payment page returning to a NT proc called
MercadoPago_FailureThe Log is:
GET /
MercadoPago_Failure?collection_id=null&collection_status=null&
external_reference=124738790&payment_type=null&merchant_order_id=null&preference_id=55501893-3d5118bd-09a2-4a05-91f2-83c7a25dadeb&site_id=MLA&processing_mode=aggregator&merchant_account_id=null HTTP/1.1
Host: 192.168.1.111:88
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: es-AR,es;q=0.9,es-419;q=0.8,en;q=0.7
Cookie: LOC__REMEMBER=1; USER_TYPE=; LOC__EMPRESA=wsami-arm-1279-2009; LOC__PASSWORD=123; LOC__LOGIN=armi
As you can see theres no SESSIONIDX cookie
Im trying to set it back using
p_web.sessionID = p_web.GetValue('external_reference")
It seams to work in the MercadoPago_Failure proc but whe I click in a link to another page called mEcommers
using HTML:
<a href="mEcommers">Continuar</a>
The log is:
GET /mEcommers HTTP/1.1
Host: 192.168.1.111:88
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Referer:
http://192.168.1.111:88/MercadoPago_Failure?collection_id=null&collection_status=null&external_reference=124738790&payment_type=null&merchant_order_id=null&preference_id=55501893-3d5118bd-09a2-4a05-91f2-83c7a25dadeb&site_id=MLA&processing_mode=aggregator&merchant_account_id=null
Accept-Encoding: gzip, deflate
Accept-Language: es-AR,es;q=0.9,es-419;q=0.8,en;q=0.7
Cookie: LOC__REMEMBER=1; USER_TYPE=; LOC__EMPRESA=wsami-arm-1279-2009; LOC__PASSWORD=123; LOC__LOGIN=armi;
SESSIONIDX=141849643The SESSIONIDX cookie is wrong and then the user becomes disconnected.
How to solve this?