I'm trying to either use custom or express onboarding for stripe. It's not properly reading the Stripe client class however that is how it's denoted in documentation.

Fatal error: Uncaught Error: Class 'Stripe\StripeClient' not found

<?
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

$stripe = new \Stripe\StripeClient(
    'sk_test_key'
);

$link = $stripe->accountLinks->create([
    'account' => 'acct_here',
    'refresh_url' => 'https://example.com/reauth',
    'return_url' => 'https://example.com/return',
    'type' => 'account_onboarding',
]);
                        $var_url = var_export($link->url, true);
                        $good_url = str_replace("'", "", $var_url);

echo $good_url;
?>

    So are you including the Stripe library files?

      Write a Reply...