quartet/stripe-bundle

此包已被废弃且不再维护。未建议替代包。

将 stripe 集成到 symfony2。

安装次数: 18,962

依赖者: 1

建议者: 1

安全: 0

星标: 1

关注者: 9

分支: 0

开放问题: 1

类型:symfony-bundle

v0.4.1 2016-12-20 01:36 UTC

This package is not auto-updated.

Last update: 2023-02-04 18:11:41 UTC


README

Build Status

安装

使用 composer 下载 QuartetStripeBundle

 $ composer require quartet/stripe-bundle

启用包

在 kernel 中启用包

<?php
// app/Appkernel.php

 public function registerBundles()
 {
    $bundles = [
        new Quartet\StripeBundle\QuartetStripeBundle(),
    ];
 }

配置您的 stripe 应用程序密钥

# app/config/config.yml

quartet_stripe:
    api_secret: your stripe api secret
    api_public: your stripe api public
    logger: logger_service_id # [optional] to enable http client logging feature
    debug: true or false      # [optional] to enable http client debugging feature (Useful for functional test)