PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WEBDEV 25 → AWP Context - restoring stored variables on a callback
AWP Context - restoring stored variables on a callback
Iniciado por Gautam, ago., 06 2015 10:48 AM - 4 respostas
Membro registado
59 mensagems
Publicado em agosto, 06 2015 - 10:48 AM
In Webdev, You store AWP Context using DeclareAWPContext(var1, var2, etc). How do you then restore these variables?

I have a website that connects to a payment gateway.

I am sending the ordernumber and amount through to the payment gateway and upon successful payment, the payment gateway calls back an AWP page in my project showing the user that the payment was successful.

At this point, I want to call back the main dynamic page without asking the user to re-login so I need to restore the variables that were stored earlier using the declarecontext function.

I think I have to use the IdentifierAWPContext command but not sure how to use it. The online help is very thin on this.

Can anyone help me please?

Gautam
Publicado em setembro, 02 2020 - 2:43 AM
Hi, i have the same problem. Did you work the call back from the payment gateway ?
How???
Thanks
Leonardo
Publicado em setembro, 02 2020 - 4:42 PM
I do not use the awp context thingy... Instead I:
- store everything I need in the DB, using an unique ID.
- I PASS that unique ID to the payment system (they all have a way of doing that)
- the payment system sends that ID back to me with their payment answer/IPN
- I read the DB with that ID to know what to do
Membro registado
59 mensagems
Publicado em setembro, 02 2020 - 6:03 PM
Hi Leonardo

I solved the problem in the same manner as described by Argus - using the Pageparameter function to catch the UniqueID returned by the payment.
Thanks Argus!
Publicado em setembro, 15 2020 - 3:25 AM
Thanks Argus and Gautam !!!