Registry / http-client / stripe-stripe-php

stripe-stripe-php

JSON →
library19.3.0phppackagistunverified

Stripe PHP Library for integrating with the Stripe payment API.

composer require stripe/stripe-php
INSTALL
IMPORT
SIG · STRIPE-STRIPE-PHP
S
stripe-stripe-php
http-clientphpv19.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

StripeClient
use Stripe\StripeClient;

Create a charge using the Stripe API.

use Stripe\StripeClient; $stripe = new StripeClient('sk_test_...'); $charge = $stripe->charges->create(['amount' => 2000, 'currency' => 'usd', 'source' => 'tok_visa']); echo $charge->id;
Debug
Known issues
breakingStripe API version changes can break existing code.
fix
Pin the Stripe API version in your Stripe dashboard and test after library updates.
affects: >=19.0.0
Upgrade
Version history
19.3.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
19
Resources
stripe-stripe-php — pip install stripe-stripe-php · libregistry