I nedd a simple payment module to work with Portuguese Multibanco Payment References, to osCommerce and Joombla Joomla + virtuemart.
When the custommer checkout the invoice, he must have the "Multibanco" option (like Visa, and others). When he chose Multibanco he will receive an e-mail with the details of the order and the Multibanco reference to do the payment (Entity, reference, value). Addition of e-mail, is also presented the same in the desktop, so he don't need to open the e-mail to do the payment.
The Multibanco references are calculated as descrived:
Entity: 10559 (for example, this is a constant)
Reference: 497 000 163 (this is a check digit calculated reference)
Value: 234.67 (this is the payment value)
The reference is calculated as descrived in the pdf (sorry is in Portuguese) in attachement, and I also included some PHP and others code examples.
The first 3 digits of the reference (497 in the example) is a constant parameter (can be changed); the next 4 digits (0001 in example) is the invoice number or custommer id; the 2 last digits (63 in the example) are check digits (as descrived in attachements).
We need the solution to both osCommerce plataforms and Jombla + virtuemart and the instalation procidements.