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.
Installs: 6 899
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Requires
- php: ^8.1
- http-interop/http-factory-guzzle: ^1.2.0
- marshmallow/commands: ^1.2
- marshmallow/helpers: ^2.12
- marshmallow/nova-tinymce: ^2.1
- marshmallow/sluggable: ^1.4
- mollie/laravel-mollie: ^3.0
- multisafepay/php-sdk: ^5.4.0
- paypal/paypal-checkout-sdk: ^1.0.2
- stripe/stripe-php: ^7.87.0 || ^17.0.0
Requires (Dev)
- orchestra/testbench: ^6.2
- phpunit/phpunit: ^9.5.20
- dev-main
- v3.x-dev
- v2.10.0
- v2.9.2
- v2.9.1
- v2.9.0
- v2.8.1
- v2.8.0
- v2.7.3
- v2.7.2
- v2.7.1
- v2.7.0
- v2.6.1
- v2.6.0
- v2.5.6
- v2.5.5
- v2.5.4
- v2.5.3
- v2.5.2
- v2.5.1
- v2.5.0
- v2.4.0
- v2.3.0
- v2.2.1
- v2.2.0
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.2
- v2.0.1
- v2.0.0
- v1.x-dev
- v1.16.2
- v1.16.1
- v1.16.0
- v1.15.2
- v1.15.1
- v1.15.0
- v1.14.0
- v1.13.0
- v1.12.1
- v1.12.0
- v1.11.0
- v1.10.1
- v1.10.0
- v1.9.0
- v1.8.1
- v1.8.0
- v1.7.0
- v1.6.1
- v1.6.0
- v1.5.0
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.0
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-hotfix/stripe
This package is auto-updated.
Last update: 2025-08-07 12:50:30 UTC
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.