Building a payment gateway plugin
From Sohowiki
(Difference between revisions)
(→2. pgm-checkout.php) |
|||
Line 5: | Line 5: | ||
Config form where user fills-in gateway account id and whatever other data is required by the gateway. | Config form where user fills-in gateway account id and whatever other data is required by the gateway. | ||
− | === | + | ===pgm-checkout.php=== |
#Add condition check to output hidden PAY_TYPE form/field if your gateway is set as the primary credit card processor in Payment Options | #Add condition check to output hidden PAY_TYPE form/field if your gateway is set as the primary credit card processor in Payment Options | ||
− | #Add check for your gateway to condition that determines whether to | + | #Add check for your gateway to condition that determines whether to show credit/debit card payment option to website visitor if one of the defined (checked for) credit card gateways is choosen in Payment Options. |
+ | |||
+ | ===pgm-payment_gateway.php=== | ||
+ | This is the script that passes the checkout order data to the gateway. |
Revision as of 14:35, 19 April 2007
Page under construction. Steps I (Mike M) went through to teach a guy (Brad R) how to build a payment gateway plugin.
Contents |
The four components of a payment gateway pie
1. Payment Options
Config form where user fills-in gateway account id and whatever other data is required by the gateway.
pgm-checkout.php
- Add condition check to output hidden PAY_TYPE form/field if your gateway is set as the primary credit card processor in Payment Options
- Add check for your gateway to condition that determines whether to show credit/debit card payment option to website visitor if one of the defined (checked for) credit card gateways is choosen in Payment Options.
pgm-payment_gateway.php
This is the script that passes the checkout order data to the gateway.