catch-of-the-day/stripe-webhook-bundle
Composer 安装命令:
composer require catch-of-the-day/stripe-webhook-bundle
包简介
A Symfony 2 bundle for handling Stripe Webhooks.
关键字:
README 文档
README
A Symfony 2 bundle for handling Stripe Webhooks.
Features:
- Triggers a Symfony event from a Stripe Webhook event.
Status
WIP
Installation
Step 1:
Add MRPStripeWebhookBundle to your composer.json:
{ "require": { "mrp/stripe-webhook-bundle": "*" } }
Now tell composer to download the bundle by running the command:
$ php composer.phar update mrp/stripe-webhook-bundle
Step 2:
Enable this bundle in your kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // … new MRP\StripeWebhookBundle\MRPStripeWebhookBundle() ); }
Step 3:
Import the MRPStripeWebhookBundle routing files:
In YAML:
# app/config/routing.yml mrp_stripe_webhook: resources: "@MRPStripeWebhookBundle/Resources/config/routing/routing.yml" prefix: /
Webhooks
This bundle receives webhooks at "/stripe-webhooks" and dispatches the event which you can listen for.
For example: the 'charge.succeeded' event is dispatched as 'mrp_stripe_webhook.charge.succeeded'
统计信息
- 总下载量: 51.7k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-25