This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once( 'classes/class.config.php' ); | |
require_once( 'classes/class.fdms_tools.php' ); | |
$curlSession = curl_init(); | |
$post_data[ 'chargetotal' ] = '10.00'; | |
$post_data[ 'paymentMethod' ] = 'V'; | |
$post_data[ 'creditcard_name' ] = 'Mark Anderson'; | |
$post_data[ 'baddr1' ] = '123 High St'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class Presi_Core_Class | |
* | |
* This class doesn't do anything, but provides a framework used by other classes | |
* It is specific to WordPress | |
*/ | |
abstract class Presi_Core_Class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
SINGLETON::get_instance(); | |
class SINGLETON extends Presi_Core_Class | |
{ | |
private static $instance = NULL; | |
public static function get_instance() | |
{ | |
NULL === self::$instance and self::$instance = new self; |