FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
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
Connectez-vous…
Gautam
#1
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
Signaler
0
0
Leonardo Aviles
#2
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
Signaler
0
0
Argus
#3
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
Signaler
0
0
Gautam
#4
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!
Signaler
0
0
Leonardo Aviles
#5
Posté le 15 septembre 2020 - 03:25
Thanks Argus and Gautam !!!
Signaler
0
0
→ Revenir à WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte