Amiro.Ru / Manual | |||||||
Packages:
DB Debug Driver_PaymentSystem Environment Library Module ModuleComponent Package Plugin Plugin_AJAXResponder Plugin_Sample Service Template TxCommand TxService Hyper_AmiCatalog Hyper_AmiClean Hyper_AmiEshopShipping Hyper_AmiExt Hyper_AmiFiles Hyper_AmiMultifeeds Hyper_AmiSearch Hyper_AmiUsers Config_AmiCatalog_Items Config_AmiClean_AmiNewsList Config_AmiClean_AmiSample Config_AmiClean_EshopOrder Config_AmiClean_Sape Config_AmiClean_Trustlink Config_AmiClean_Webservice Config_AmiEshopShipping_Fields Config_AmiEshopShipping_Methods Config_AmiEshopShipping_Types Config_AmiFake_AmiroPayDrvExample Config_AmiFiles_Files Config_AmiMultifeeds_Articles Config_AmiMultifeeds_Blog Config_AmiMultifeeds_FAQ Config_AmiMultifeeds_News Config_AmiMultifeeds_Photoalbum Config_AmiMultifeeds_PhotoGallery Config_AmiMultifeeds_Stickers Config_AmiUsers_Users Module_Catalog Module_Pages Module_Sample Module_SearchHistory |
Loading search... The Example_PaymentSystemDriver classBILL_driver_base | --AMI_PaymentSystemDriver | --Example_PaymentSystemDriver • IntroductionExample pay driver. • Class synopsis/* Inherited Properties */
// Flag specifying to clear cart on pay process
// Currencies.
// Iniitial currencies.
// Driver name
/* Methods */
// Get checkout button HTML form
// Get the form that will be autosubmitted to payment system. This step is required for some shooping cart actions.
// Return real system order id from data that provided by payment system.
// Verify the order by payment system background responce. In success case 'confirmed' status will be setup for order.
// Verify the order from user back link. In success case 'accepted' status will be setup for order.
/* Inherited Methods */
// Get checkout button HTML form.
public
AMI_PaymentSystemDriver::getPayButton ( &$aRes, $aData, [ bool $bAutoRedirect = false ] ) returns bool;
// Get the form that will be autosubmitted to payment system. This step is required for some shooping cart actions.
// Return real system order id from data that provided by payment system.
public
AMI_PaymentSystemDriver::getProcessOrder ( $aGet, $aPost, &$aRes, $aAdditionalParams ) returns int;
// Do required operations after the payment is confirmed with payment system call.
// Verify the order by payment system background responce. In success case 'confirmed' status will be setup for order.
public
AMI_PaymentSystemDriver::payCallback ( $aGet, $aPost, &$aRes, $aCheckData, $aOrderData ) returns int;
// Verify the order from user back link. In success case 'accepted' status will be setup for order.
public
AMI_PaymentSystemDriver::payProcess ( $aGet, $aPost, &$aRes, $aCheckData, $aOrderData ) returns bool;
// Cleanups user cart by passed order Id.
protected
AMI_PaymentSystemDriver::cleanupCartByOrderId ( int $orderId, [ $sessionVarName $sessionVarName = '' ] ) returns void;
// Set debug flag.
// Returns scope as HTML form hidden fields.
// Returns driver settings.
// Logs message.
protected
AMI_PaymentSystemDriver::log ( string $message, [ int $level = E_USER_NOTICE ] ) returns void;
// Parses the string like "crn1 crn2 #crn3 crn4" to the array(crn3, crn1, crn2, crn4).
}
• Class DetailsHow to create your own pay driver:
• Class Methods// Get checkout button HTML form
Overrides: AMI_PaymentSystemDriver::getPayButton(). // Get the form that will be autosubmitted to payment system. This step is required for some shooping cart actions.
Overrides: AMI_PaymentSystemDriver::getPayButtonParams(). // Return real system order id from data that provided by payment system.
Overrides: AMI_PaymentSystemDriver::getProcessOrder(). Tags:
// Verify the order by payment system background responce. In success case 'confirmed' status will be setup for order.
Overrides: AMI_PaymentSystemDriver::payCallback(). Tags:
// Verify the order from user back link. In success case 'accepted' status will be setup for order.
Overrides: AMI_PaymentSystemDriver::payProcess(). Tags:
|