2017 © Pedro Peláez
 

symfony-bundle stripe

Bundle used to make payment amd manage client payment by stripe

image

crs/stripe

Bundle used to make payment amd manage client payment by stripe

  • Sunday, March 25, 2018
  • by sbsanjaybharti
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Stripe payment Symfony Bundle

The bundle is use to make payment and manage the client with strip payment gatway, (*1)

Table of Contents

, (*2)

Installation:

Install Package

Add CRS/SendGridBundle to your composer.json file., (*3)

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

Add path in appKernel.php in bundle variable., (*4)


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

Alternative: Install package from cmd

    composer require crs/stripe

Quick Start:

Add configuration to your config.yml file, (*5)

#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, (*6)

How to use:

Create an object, (*7)

   $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');

The Versions

25/03 2018

dev-master

9999999-dev

Bundle used to make payment amd manage client payment by stripe

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sanjay Bharti

25/03 2018

dev-development

dev-development

Bundle used to make payment amd manage client payment by stripe

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sanjay Bharti

25/03 2018

v1.0

1.0.0.0

Bundle used to make payment amd manage client payment by stripe

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sanjay Bharti