Building a payment gateway plugin
From Sohowiki
(Difference between revisions)
(→2. pgm-checkout.php) |
(→The four components of a payment gateway pie) |
||
Line 1: | Line 1: | ||
Page under construction. Steps I (Mike M) went through to teach a guy (Brad R) how to build a payment gateway plugin. | Page under construction. Steps I (Mike M) went through to teach a guy (Brad R) how to build a payment gateway plugin. | ||
− | ==The four components of a payment gateway | + | ==The four components of a payment gateway== |
+ | #payment_options.php - Place in sitebuilder admin tool where webmaster fills-in gateway account id and whatever other data is required by the gateway, and can choose your gateway as the primary credit card processor to be used in his website checkout process. | ||
+ | #pgm-checkout.php - Outputs payment option choices to website visitor based on what webmaster sets in Payment Options | ||
+ | #pgm-payment_gateway.php - Passes the checkout order data to the gateway. | ||
+ | #pgm-show_invoice.php - Catches response from gateway and directs website customer accordingly to final invoice (on success) or failure page if payment attempt did not succeed (e.g., because of declined credit card, etc.). | ||
+ | |||
+ | ===In sitebuilder admin tool=== | ||
+ | |||
+ | ===Checkout process on website=== | ||
+ | |||
+ | |||
===1. Payment Options=== | ===1. Payment Options=== | ||
− | + | ||
===pgm-checkout.php=== | ===pgm-checkout.php=== | ||
Line 10: | Line 20: | ||
===pgm-payment_gateway.php=== | ===pgm-payment_gateway.php=== | ||
− | This is the script that | + | This is the script that . |
Revision as of 14:45, 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
- payment_options.php - Place in sitebuilder admin tool where webmaster fills-in gateway account id and whatever other data is required by the gateway, and can choose your gateway as the primary credit card processor to be used in his website checkout process.
- pgm-checkout.php - Outputs payment option choices to website visitor based on what webmaster sets in Payment Options
- pgm-payment_gateway.php - Passes the checkout order data to the gateway.
- pgm-show_invoice.php - Catches response from gateway and directs website customer accordingly to final invoice (on success) or failure page if payment attempt did not succeed (e.g., because of declined credit card, etc.).
In sitebuilder admin tool
Checkout process on website
1. Payment Options
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 .