infoservio/donate-fast
Composer 安装命令:
composer require infoservio/donate-fast
包简介
Donate Fast
关键字:
README 文档
README
This plugin can be used for anyone that accept donations to help others.
Table of contents
Requirements
This plugin requires Craft CMS 3.0.0-beta.23 or later.
Usage
You have to create form with amount input if you need to and button for donation process. You can manually set up it with css, name button too. Also, you have to add checkout stripe library and our donate-fast library. Anyway, you can setup our script for you goals. You can set up button for donation fixed amount of money or give an opportunity for users to put amount by hand. More about attributes and their definitions in the docs for donate-fast script.
<form id="donate-fast-form" action="/donate-fast/donate" method="post"> <input id="amount" type="number" name="amount"> <button id="donate-btn" class="btn">Donate</button> </form> <script src="https://checkout.stripe.com/checkout.js"></script> <script id="donate-fast-script" src="https://cdn.infoserv.io/donate-fast.min.js" data-stripe-public-key="your_stripe_public_key" data-stripe-form-name="Donation" data-stripe-form-description="One-time donation" data-form-id="donate-fast-form" data-btn-id="donate-btn" data-amount-min="5" data-amount-input-id="amount" data-project-id="1" data-project-name="name"></script>
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project -
Then tell Composer to load the plugin:
composer require donate-fast -
In the Control Panel, go to Settings → Plugins and click the “Install” button for donate-fast.
Overview
For testing purpose you can try stripe form. Credit card number: 4242 4242 4242 4242 https://sandbox.infoserv.org/stripe
Configuring
You have to fill in stripe keys in settings of the donate-fast.
Go to Settings -> Plugins -> Donate Fast ---- Settings
Where to get stripe tokens:
API credentials are unique account identifiers that must be added to your code before you can process payments via the API. Think of them as your username and password to payment processing. This is your user-specific public identifier. Each user associated with your Stripe gateway will have their own public and private keys. To find your keys:
- Log into either the production Control Panel or the sandbox Control Panel, depending on which environment you are working in
- Navigate to Account > My User
- Under API Keys, Token Keys, Encryption Keys, click View Authorizations
You'll find your keys under the API Keys section at the top. If no API keys appear, click Generate New API Key.
You should also fill in information about your non-profit organizations and success with error messages for users.
Go to Donate Fast -> Settings
Roadmap
Some things to do, and ideas for potential features:
- Release it
Brought to you by infoserv.io
infoservio/donate-fast 适用场景与选型建议
infoservio/donate-fast 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 15 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 06 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「payment」 「stripe」 「donation」 「craftcms」 「non-profit」 「craft-plugin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 infoservio/donate-fast 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 infoservio/donate-fast 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 infoservio/donate-fast 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Flexible payment integration for Laravel, lunarphp, supporting multiple payment providers.
Rich payment solutions for Laravel framework. Paypal, payex, authorize.net, be2bill, omnipay, recurring paymens, instant notifications and many more
Donation Alerts OAuth2 Provider for Laravel Socialite
A simple Symfony bundle for Stripe API.
add a 'donation' or 'any price' product to your silverstripe e-commerce
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-24