boltpay/bolt-php
Composer 安装命令:
composer require boltpay/bolt-php
包简介
Official PHP library to interact with Bolt
README 文档
README
Official PHP library to interact with Bolt APIs.
Requirements
PHP 5.6+
API credentials
- The following three required values, (i.e. API Key, Signing Secret, Publishable Key) can be found in your Bolt Merchant Dashboard under Developers > API. The Publishable Key is for the multi-step checkout by default. You can find other publishable keys (Payment Only) in the division dropdown at the top-right corner.
- For production, these will be found at: https://merchant.bolt.com
- For sandbox mode, use the following URL: https://merchant-sandbox.bolt.com".
Bolt Configuration:
Let's say https://your-store-url.com is the base URL of your store. You need go to Developers > API > Merchant API and configure hook URLs in your Bolt Merchant Dashboard
- Universal API: https://your-store-url.com/example/universalapi.php (If universal API feature is enabled)
- Shipping: https://your-store-url.com/example/shipping.php (if the split shipping and tax feature is enabled)
- Tax: https://your-store-url.com/example/tax.php (if the split shipping and tax feature is enabled)
- Shipping And Tax: https://your-store-url.com/example/shipping_and_tax.php (if the split shipping and tax feature is disabled)
- Create Order: https://your-store-url.com/example/preauth_create_order.php (if the pre-auth order creation feature is enabled)
- WebHook: https://your-store-url.com/example/apihook.php
Plugin configuration:
Go to file example/config.php and configure value for essential settings below
- API_KEY: This is used for calling Bolt API from your back-end server
- IS_SANDBOX: This is used for setting up testing vs. production execution environment
- SIGNING_SECRET: This is used for signature verification in checking the authenticity of webhook requests
- PUBLISHABLE_KEY: This is used to open the Bolt Payment Popup typically on cart (multi step) page (example/cart.php)
- PUBLISHABLE_KEY_PAYMENT_ONLY: This is used to open the Bolt Payment Popup typically on cart payment only page (example/cart_paymentonly.php)
Demo:
Let's say https://your-store-url.com is the base URL of your store
- Go to https://your-store-url.com/example/cart.php to see the cart page
- Go to https://your-store-url.com/example/cart_paymentonly.php to see the cart payment only page
boltpay/bolt-php 适用场景与选型建议
boltpay/bolt-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 75.31k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2019 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 boltpay/bolt-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 boltpay/bolt-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 75.31k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-01-04