Changes

m
Line 45: Line 45:       −
The parameter are used by the page to find the amount to ask for the payment from the object retrieved in URL.  
+
The parameter are used by the page to find the amount to ask for the payment from the object retrieved in URL. Then the page search the list of all available payment mode and suggest them as a different button "Pay using MyPaymentMode".
Then the page makes a list of all available payment mode and suggest them as a different button "Pay using XXX".
     −
* To include your own payment method in this list, your module must implement the hook '''doAddButton''' for the context "newpayment". Your hook must return an  
+
To include your own payment method in this list, your module must implement the hook '''doAddButton''' for the context "newpayment". Your hook must return an  
array('yourpaymentcode' => 'Label to show')
+
array('yourpaymentcode' => 'MyPaymentMode')
    
=> You can already test your module by checking a new entry to pay appear on the payment page.
 
=> You can already test your module by checking a new entry to pay appear on the payment page.