VirtueMart - 1.0 Guia do Utilizador Página 15

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 19
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 14
Caution
The code inside this form MUST BE VALID! If you use PHP code, check if you have written correct
code that can be parsed!
5.1.2. Digging deeper: The Basics
All payment modules are located in the directory
/administrator/components/com_virtuemart/classes/payment/
and provide two files: the class file and the configuration file.
Example: Module "mynewpayment"
You must have two files called
ps_mynewpayment.php (including the class ps_mynewpayment)
ps_mynewpayment.cfg.php (containing all necessary configuration constant definitions)
If the user has chosen to pay using a payment method, which has this class as its processor (entry under Class
Name), the file ps_mynewpayment.php will be included on checkout and its functions will be used to pro-
cess the payment details, regardless of the implementation.
5.1.3. The API specification
The following is a list of all methods that must be implemented in a payment module's class file.
string show_configuration( void )
Shows the configuration form for this payment module in the payment method form.
boolean has_configuration( void )
returns true if the payment module can be configured,
VirtueMart Developer Manual
15
Vista de página 14
1 2 ... 10 11 12 13 14 15 16 17 18 19

Comentários a estes Manuais

Sem comentários