[ "number" => "4242424242424242", "exp_month" => 1, "exp_year" => date('Y') + 1, "cvc" => "123" ] ], ['api_key' => config('services.stripe.secret')])->id; // Create a new charge for some amount using a valid token $paymentGateway->charge(2500, $token); // Verify that the charge was completed successfully $lastCharge = \Stripe\Charge::all( ['limit' => 1], ['api_key' => config('services.stripe.secret')] )['data'][0]; $this->assertEquals(2500, $lastCharge->amount); } }