Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Stripe Laravel Package

crs/stripe

View on GitHub
Deep Wiki
Context7

Stripe payment Symfony Bundle

The bundle is use to make payment and manage the client with strip payment gatway

Table of Contents

Installation:

Install Package

Add CRS/SendGridBundle to your composer.json file.

{
  "require": {
    "crs/stripe": "~1.0"
  }
}

Add path in appKernel.php in bundle variable.


        $bundles = [
            ....
            ....
            ....
            new CRS\StripeBundle\CRSStripeBundle(),
        ];

Alternative: Install package from cmd

	composer require crs/stripe

Quick Start:

Add configuration to your config.yml file

#Stripe API Access
crs_stripe:
    publishable_key: "pk_test_key" #add your publishable key here
    secret_key: "sk_test_key"   #add your secret key here
    currency: "USD" #add your currency key here

Note: amount should be in cent means $1 = 100 cent. So, use 100 insted of $1, 200 insted of $2 means amount = amount * 100

How to use:

Create an object

   $stripe = new crs_stripe();
  1. For making the payment directly :
 $stripe->setCardNumber(<Your card Number>);
        $stripe->setName('<Card holder name>);
        $stripe->setExpMonth(<Expiration month>);
        $stripe->setExpYear('Expiration Year');
        $stripe->setCVC(<CVV number of your card>);
        $new_customer = $stripe->Charge()->Pay(<amount> * 100);
  1. Stripe Charge retrive :
 $retrive_charge = $stripe->Charge()->get('ch_key');
  1. Stripe Charge List :
 $retrive_charge = $stripe->Charge()->All(<perpage list>);
  1. Stripe Customer create :
        $stripe->setCardNumber(<Your card Number>);
                         $stripe->setName('<Card holder name>);
                         $stripe->setExpMonth(<Expiration month>);
                         $stripe->setExpYear('Expiration Year');
                         $stripe->setCVC(<CVV number of your card>);
        $new_customer = $stripe->Customer()->Create(<Customer email-Id>);
  1. Stripe Customer retrive :
 $new_customer = $stripe->Customer()->get('cus_key');
  1. Stripe Customer list :
 $new_customer = $stripe->Customer()->All(<perpage list>);
  1. Stripe Customer delete :
 $new_customer = $stripe->Customer()->Delete('cus_key');
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
ecotone/kafka
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata