28require_once DOL_DOCUMENT_ROOT.
'/includes/stripe/stripe-php/init.php';
29require_once DOL_DOCUMENT_ROOT.
'/includes/stripe/stripe-php/lib/Stripe.php';
33global $stripearrayofkeysbyenv;
35$stripearrayofkeysbyenv = array(
46$stripearrayofkeys = array();
48 $stripearrayofkeys = $stripearrayofkeysbyenv[0];
50 $stripearrayofkeys = $stripearrayofkeysbyenv[1];
53\Stripe\Stripe::setApiKey($stripearrayofkeys[
'secret_key']);
54\Stripe\Stripe::setAppInfo(
"Dolibarr Stripe", DOL_VERSION,
"https://www.dolibarr.org");
55\Stripe\Stripe::setApiVersion(
getDolGlobalString(
'STRIPE_FORCE_VERSION',
"2022-11-15"));
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.