Understand the processor you are setting upYou need to check your processor's documentation and understand the flow of the processor's process and compare it to existing processors (I intend that people should add descriptions of existing ones at the end of this wiki entry to assist with this) Factors you should take note of are:
Note that None of the plugins distributed with CiviCRM use a model where the donor's credit card info is stored in the CiviCRM site's database. For PayPal Pro, Authorize.net and PayJunction - Credit card numbers, exp date and security codes are entered on the CiviCRM contribution page and immediately passed to the processor / not saved. For PayPal Std, Google Checkout - the info is entered at the processors' site. Determine what 'type' of processor you are dealing with.Figuring this out will set you on the right track. In CiviCRM there are three 'billing types':
The BillingID will determine the process followed. ID types are: Curiously although 2 is defined as button in the payment.php script no processors in the processor_type table use type 2 and payment express uses type 3 which seems to have the button functionality. This method seems fairly hard coded to paypal e.g. Store any function files from your payment processorCreate an appropriately named folder in the 'packages' directory for any files provided by your payment processor which have functions you need Create files in the components for your processorThere needs to be a file for your processor in CRM\Event\Payment and in CRM\Contribute\Payment. The name needs to be the same as the name you inserted into the processor_types table. These are pretty easy to copy from others as they don't have much in them. Write your processor
|
Creating Additional Payment Processor Plugins
Skip to end of metadata
Go to start of metadata
Labels:
