Online Payment Module Architecture: Difference between revisions

m
Tag: 2017 source edit
Tag: 2017 source edit
 
(One intermediate revision by the same user not shown)
Line 152: Line 152:


=Step 4 - Fallback on result page=
=Step 4 - Fallback on result page=
When payment is complete, the use finally reach the page paymentok.php or paymentko.php.
When payment is complete, the user finally reach the page '''/public/payment/paymentok.php''' or '''/public/payment/paymentko.php'''.
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:
The page paymentko.php will just return a message to explain the payment has failed. The page paymentok.php, will use the parameter '''fulltag''' and variables saved into session to make complementary actions (like validating remotely the payment, registering the payment in the Dolibarr application, closing the invoice, sending emails...). 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...
*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...
Line 162: Line 162:
*$_SESSION['ipaddress']
*$_SESSION['ipaddress']
*$_SESSION['errormessage']  An error message to show
*$_SESSION['errormessage']  An error message to show


=Other features=
=Other features=
To complete...
To complete...