Welcome Guest, Not a member yet? Register   Sign In
Stripe Library
#1

I'm having problems migrating my CI3 Stripe Library to CI4.

I've run composer require stripe/stripe-php and a truck load of code has ended up in my vendor folder (as expected).

I've created a StripePayments.php file in app/Libraries with the following code

Code:
<?php

namespace App\Libraries;

class StripePayments
{
  protected $stripe;

  public function __construct()
  {
    $this->stripe = new \Stripe\StripeClient([
      'api_key' => getenv('stripe.secretkey'),
      'stripe_version' => '2020-08-27'
    ]);
  }

But my intelephense vscode linter extension is telling me "Nope, not gonna happen"  Sad

I've googled and searched github for a couple of hours now.

Hopefully someone here will be able to point me in the right direction Big Grin
Reply


Messages In This Thread
Stripe Library - by paulkd - 05-14-2021, 12:48 AM
RE: Stripe Library - by InsiteFX - 05-14-2021, 01:32 AM
RE: Stripe Library - by paulkd - 05-14-2021, 02:26 AM
RE: Stripe Library - by InsiteFX - 05-14-2021, 06:07 AM
RE: Stripe Library - by paulkd - 05-14-2021, 07:48 AM
RE: Stripe Library - by InsiteFX - 05-14-2021, 11:02 AM
RE: Stripe Library - by paulkd - 05-16-2021, 12:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB