marshmallow/payable
最新稳定版本:v2.10.2
Composer 安装命令:
composer require marshmallow/payable
包简介
This package will make it possible to accept payments on all our laravel resources. This was orignaly build for our e-commerce package but can be used on anything.
README 文档
README
Marshmallow Payable
This package will make it possible to accept payments on all our laravel resources. This was orignaly build for our e-commerce package but can be used on anything.
Installation
Composer
You can install the package via composer:
composer require marshmallow/payable
Publish Nova Resources
php artisan marshmallow:resource Payment Payable php artisan marshmallow:resource PaymentProvider Payable php artisan marshmallow:resource PaymentType Payable
Events
PaymentStatusOpen::class PaymentStatusPaid::class PaymentStatusFailed::class PaymentStatusCanceled::class PaymentStatusExpired::class PaymentStatusRefunded::class PaymentStatusUnknown::class ExternalCustomerModified::class
Usage
MOLLIE_KEY="test_*****" MULTI_SAFE_PAY_KEY="*****" PAYABLE_TEST_PAYMENTS=true
Prepare your models
Add the Payable trait to your model that should support payments.
Use order information
First let the payable package know we want to sent order information to the payment provider.
return [ 'use_order_payments' => true, ]
Add the trait PayableWithItems to your Payable model.
Implements the following methods on your Payable model.
getBillingOrganizationName(), getBillingTitle(), getBillingGivenName(), //required getBillingFamilyName(), //required getBillingEmailaddress(), //required getBillingPhonenumber(), getBillingStreetAndNumber(), //required getBillingStreetAdditional(), getBillingPostalCode(), getBillingCity(), //required getBillingRegion(), getBillingCountry(), //required
Providers
Multisafe pay
- Simple checkout
- Complex checkout
Mollie
- Simple checkout
- Complex checkout
Tests
Test mollie simple checkout
\Marshmallow\Payable\Facades\PayableTest::mollie($test = false, $api_key = 'live_xxxx');
Changelog
Please see CHANGELOG for more information what has changed recently.
Security
If you discover any security related issues, please email stef@marshmallow.dev instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 7.69k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-04-02