|
MikeHeuss.com - The eclectic repository of my life. Programming, writing, and other stuff. |
ProPayClassI am a partner in - and lead developer at - Quick Vault LLC. Our product is called JumpVault, and is a USB based backup application. Speaking of which, we just added U3 compatibility. I think we may be the first 100% U3 compatible product. Anyway, for that website, I needed to integrate ProPay to process credit card transactions. I found they did not, at that time, have a PHP interface to their XML based engine. So I wrote one. This script takes care of all the basics - it will generate the XML request, and parse the XML results. Below is an example of a credit card transaction:
We created an instance of ProPay, passing in the URL, Account Number, and Certification String. You can also specify true for the debug, which proceeds to print out information useful for testing/debugging. Set a few of the required elements (see ProPay's documentation), and then throw in a DoTransaction. For varying types, again, consult your documentation. By using GetReturnedValues, you get access to the values passed back in the XML file. DownloadMy disclaimer: I don't guarantee that it will work or do anything, it is provided as is. ProPayClass.php is made available under the BSD License. Function Referencefunction ProPayClass ($arg_url, $arg_account_number, $arg_cert_string, $arg_debug=false) {
function SetElement($arg_tag, $arg_value) {
function GetReturnedValues ($arg_tag) {
function GetReturnedStatus () {
function DoTransaction ($arg_trans_type) {
function StatusLookup ($arg_id) {
Last Updated: 12 Aug 2005 |
|
© 1998 - 2010 Mike Heuss | mike@mikeheuss.com | 386 418 0075 | 6823 NW 218th Street Alachua FL 32615 |