PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → AWP Context - restoring stored variables on a callback
AWP Context - restoring stored variables on a callback
Débuté par Gautam, 06 aoû. 2015 10:48 - 4 réponses
Membre enregistré
67 messages
Posté le 06 août 2015 - 10:48
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
Posté le 02 septembre 2020 - 02:43
Hi, i have the same problem. Did you work the call back from the payment gateway ?
How???
Thanks
Leonardo
Posté le 02 septembre 2020 - 16:42
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
Membre enregistré
67 messages
Posté le 02 septembre 2020 - 18:03
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!
Posté le 15 septembre 2020 - 03:25
Thanks Argus and Gautam !!!