Entrance for Electronic Payment back interface (EPTBack).The
bank needs a static .php file with many parameters (phone/mail
them to change adress). WikiZam needs a special page
(index.php?title=Special:EPTBack). Mod_rewrite creates a proxy
to map bank's needs to WikiZam needs. Flags: P (Proxy, use
mod_proxy), NE (No Escape [for %]), QSA (Query String Added
[Passes Query from request to target])
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/payment/Phase2Retour.php http://papilusion.seizam.com:80/index.php?title=Special:EPTBack [P,NE,QSA]
</ifmodule>
Details
Messages between WikiZam & Bank are called ep_message (db table) / EPMessage (php class).
Data sent and reveived are EPMessage->$epm[]
Each transaction is recorder as TMRecord->$tmr[] (linked by Hook BeforeTransactionSave).
epm['epm_o_reference'] = $tmr['tmr_id'].
When accessing /index.php?title=Special:ElectronicPayment&status=attempt&amount=43, an attempt message is recorded (ep_message.epm_type=out/ EPMessage::$epm['type']='out').
People click on "access payment interface".
People reach "CIC payment interface"
People pays online.
Bank accesses /index.php?title=Special:ElectronicPayment&action=EPTBack with much parameters. example: