GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WEBDEV 2024
→
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
Conecte-se…
Gautam
#1
Membro registado
67 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
Denunciar
0
0
Leonardo Aviles
#2
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
Denunciar
0
0
Argus
#3
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
Denunciar
0
0
Gautam
#4
Membro registado
67 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!
Denunciar
0
0
Leonardo Aviles
#5
Publicado em setembro, 15 2020 - 3:25 AM
Thanks Argus and Gautam !!!
Denunciar
0
0
→ Voltar para WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto