Download the PHP package 64robots/stripe without Composer
On this page you can find all versions of the php package 64robots/stripe. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package stripe
Add stripe integration to laravel applications
This package makes it easier to add stripe integrations to laravel applications
Installation and setup
To get the latest version, simply require the package using Composer:
Once installed, this package will automatically register its service provider.
To publish the config file to config/stripe.php
run:
Usage
The class you'd propably interact with the most is PaymentProcessor
class. The processor class can be injected into other classes or can be resolved from the container.
Charges
- To charge a credit or a debit card, you create a Charge object. You can create a charge using the
createCharge
method on thePaymentProcessor
class. AR64\Stripe\Objects\Charge
object would be returned.
Customers
The processor allows you to create, update, list customers and get a single customer.
-
To create a customer, use the
createCustomer
method on the processor. AR64\Stripe\Objects\Customer
object would be returned. -
To update a customer, use the
updateCustomer
method on the processor. AR64\Stripe\Objects\Customer
object would be returned. - To get a single customer, use the
getCustomer
method on the processor. AR64\Stripe\Objects\Customer
object would be returned.
Card
You can get a card, create and update a card using the processor.
-
To get a single card details, use the
getCard
method on the processor. AR64\Stripe\Objects\Card
object would be returned. -
To create a card, use the
createCard
method on the processor. AR64\Stripe\Objects\Card
object would be returned. - To update a card, use the
updateCard
method on the processor. AR64\Stripe\Objects\Card
object would be returned.
Plan and Subscription
Plans define the base price, currency, and billing cycle for subscriptions.
-
To create a product, use the
createProduct
method on the processor. AR64\Stripe\Objects\Product
object would be returned. -
To create a plan, use the
createPlan
method on the processor. AR64\Stripe\Objects\Plan
object would be returned. -
To create a subscription, use the
createSubscription
method on the processor. AR64\Stripe\Objects\Subscription
object would be returned. -
To create an invoice, use the
createInvoice
method on the processor. AR64\Stripe\Objects\Invoice
object would be returned. -
To create an invoice item, use the
createInvoiceItem
method on the processor. AR64\Stripe\Objects\InvoiceItem
object would be returned. -
To get an invoice details, use the
getInvoice
method. AR64\Stripe\Objects\Invoice
object would be returned. - To get a subscription details, use the
getSubscription
method. AR64\Stripe\Objects\Subscription
object would be returned.
Card Holder
You can create, update and get a card holder's details.
-
To create a card holder, use the
createCardHolder
method. AR64\Stripe\Objects\CardHolder
object would be returned. -
To update a card holders details, use the
updateCardHolder
method. AR64\Stripe\Objects\CardHolder
object would be returned. - To retrieve a card holder, use the
getCardHolder
method. AR64\Stripe\Objects\CardHolder
object would be returned.
All versions of stripe with dependencies
illuminate/support Version ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0
illuminate/container Version ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0
fakerphp/faker Version ^1.9.1
stripe/stripe-php Version ^7.9