|
| Iniciado por guest, 13,jul. 2017 12:51 - 3 respuestas |
| |
| | | |
|
| |
| Publicado el 13,julio 2017 - 12:51 |
Hi All
I am battling to get my head around the PageParameters function.
I am sending a request to a payment provider. The request is in a form with fields and instructions wrapped in html code. That is all working. My success, cancel and url return pages are working. The url return page [a notification page] returns the variables and status of the request. It is also coming back in a form. I am using PageParameter[1..22] to read the return variables but it is all returning no values.
How does one read this html return form?
Cheers André |
| |
| |
| | | |
|
| | |
| |
| Publicado el 13,julio 2017 - 13:47 |
Hi André,
first, you should forget this idea of a FORM... It is extremely misleading. Second, the answer depends on the payment provider and what it is sending back. Is it post? Get?
Finally, and example: For paypal (I'm using it on my web site), I'm doing: gpgaspar_TransactionToken is ANSI string = PageParameter(cstPaypalTransactionToken) with cstPaypalTransactionToken = "tx" (it's a constant)
So, I'm using the NAME of the parameter and it's working fine... in GET mode. If the provider is sending in POST mode, then the syntax is different (see help).
If I remember correctly (it was quite some time ago), I chose this method because the ORDER of parameters received was not the same as described in the SDK documentation (filled with error) -AND- depending on cases, some parameters may not be here.
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 13,julio 2017 - 14:40 |
Hi Fabrice
They say is a POST.
Will look at the help.
Andre |
| |
| |
| | | |
|
| | |
| |
| Publicado el 13,julio 2017 - 15:50 |
Hi Fabrice
PageParameter("TheToken") sorted it.
Thanks a ton.
Cheers André |
| |
| |
| | | |
|
| | | | |
| | |
|