Stripe\Stripe::setAppInfo PHP Method

setAppInfo() public static method

public static setAppInfo ( string $appName, string $appVersion = null, string $appUrl = null )
$appName string The application's name
$appVersion string The application's version
$appUrl string The application's URL
    public static function setAppInfo($appName, $appVersion = null, $appUrl = null)
    {
        if (self::$appInfo === null) {
            self::$appInfo = array();
        }
        self::$appInfo['name'] = $appName;
        self::$appInfo['version'] = $appVersion;
        self::$appInfo['url'] = $appUrl;
    }

Usage Example

示例#1
0
 public static function init()
 {
     // include class vendor
     require Kohana::find_file('vendor/stripe', 'init');
     // Set your secret key: remember to change this to your live secret key in production
     // See your keys here https://manage.stripe.com/account
     \Stripe\Stripe::setAppInfo('Open Classifieds', Core::VERSION, 'http://open-classifieds.com');
     \Stripe\Stripe::setApiKey(Core::config('payment.stripe_private'));
 }
All Usage Examples Of Stripe\Stripe::setAppInfo