\FoxyCart_Helper
FoxyCart_Helper
- Author: FoxyCart.com
- Copyright: FoxyCart.com LLC, 2011
- License: MIT http://opensource.org/licenses/MIT
Synopsis
class FoxyCart_Helper
{
- // members
- private static string $secret = 'ENTER YOUR KEY HERE';
- protected static string $cart_url = 'https://YOURDOMAIN.foxycart.com/cart';
- protected static array $cart_excludes = ;
- protected static array $cart_excludes_prefixes = ;
- protected static boolean $debug = FALSE;
- protected static array $log = ;
- // methods
- public static void setSecret()
- public static void getSecret()
- public static void setCartUrl()
- public static void getCartUrl()
- public static string fc_hash_querystring()
- public static string|null fc_hash_value()
- public static string fc_hash_html()
Members
private
- $secret
—
string
API Key (Secret)
protected
- $cart_excludes
—
array
Cart Excludes - $cart_excludes_prefixes
- $cart_url
—
string
Cart URL -
$debug
Debugging - $log
Methods
public
- fc_hash_html() — Raw HTML Signing: Sign all links and form elements in a block of HTML
- fc_hash_querystring() — "Link Method": Generate HMAC SHA256 for GET Query Strings
- fc_hash_value() — "Form Method": Generate HMAC SHA256 for form elements or individual <input />s
- getCartUrl()
- getSecret()
- setCartUrl()
- setSecret()