承接 crs/stripe 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

crs/stripe

Composer 安装命令:

composer require crs/stripe

包简介

Bundle used to make payment amd manage client payment by stripe

README 文档

README

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

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-03-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固