Changes

m
Line 104: Line 104:     
= Step 4 - Fallback on result page =
 
= Step 4 - Fallback on result page =
When calling the page when payment is OK, the following parameters must also be provided:
+
When payment is complete, the use finally reach the page paymentok.php or paymentko.php.
* FULLTAG (this parameter was defined into the public/payment/newpayment.php page). With this parameter, the page paymentok.php will be able to make all complementary action like closing invoice or order or recording a subscription for a membership subscription, and more...
+
The page paymentko will just return a message to explain the payment has failed. The page paymentok, will use the parameter fulltag and variables saved into session to make complementary actions like (registering the payment in the application, closing the invoice, sending an email...). The paymentok/ko page can retrieve information from:
 +
* Parameter "fulltag" AG (this parameter was defined into the public/payment/newpayment.php page). With this parameter, the page paymentok.php will be able to make all complementary action like closing invoice or order or recording a subscription for a membership subscription, and more...
 
* Some payment mode include also more parameters like PAYERID for Paypal. Only FULLTAG should be mandatory.
 
* Some payment mode include also more parameters like PAYERID for Paypal. Only FULLTAG should be mandatory.
   −
Some other parameters may be retreived in the session like:
+
Some other parameters may be retrieved in the session like:
 
* $_SESSION['ipaddress']
 
* $_SESSION['ipaddress']
 
* $_SESSION['errormessage']  An error message to show
 
* $_SESSION['errormessage']  An error message to show