sierratecnologia / payment-laravel
Sierratecnologia Cashier provides an expressive, fluent interface to SierraTecnologia's subscription billing services.
Fund package maintenance!
ricasolucoes
ricasolucoes.com.br/open-source/support-us
Requires
- php: ^7.2|^8.0
- ext-json: *
- dompdf/dompdf: >=0.8.0
- illuminate/contracts: ^7.0 || ^8.0
- illuminate/database: ^7.0 || ^8.0
- illuminate/http: ^7.0 || ^8.0
- illuminate/routing: ^7.0 || ^8.0
- illuminate/support: ^7.0 || ^8.0
- illuminate/view: ^7.0 || ^8.0
- nesbot/carbon: >=1.26
- sierratecnologia/payment-php: ^0.3.0 | ^0.4.0
- sierratecnologia/telefonica: ^0.4.0
- symfony/http-kernel: >=4.2
Requires (Dev)
- mockery/mockery: >=1.0
- orchestra/testbench: ^4.0|^5.0|^6.0
- phpunit/phpunit: >=7.5
- psalm/plugin-laravel: ^1.5
This package is auto-updated.
Last update: 2024-11-16 04:59:47 UTC
README
Introduction
Laravel Cashier provides an expressive, fluent interface to SierraTecnologia's subscription billing services. It handles almost all of the boilerplate subscription billing code you are dreading writing. In addition to basic subscription management, Cashier can handle coupons, swapping subscription, subscription "quantities", cancellation grace periods, and even generate invoice PDFs.
Official Documentation
Documentation for Cashier can be found on the Laravel website.
Running Cashier's Tests
You will need to set the SierraTecnologia testing secret environment variable in a custom phpunit.xml
file in order to run the Cashier tests.
Copy the default file using cp phpunit.xml.dist phpunit.xml
and add the following line below the SITECPAYMENT_MODEL
environment variable in your new phpunit.xml
file:
<env name="SITECPAYMENT_SECRET" value="Your SierraTecnologia Secret Key"/>
Please note that due to the fact that actual API requests against SierraTecnologia are being made, these tests take a few minutes to run.
Contributing
Thank you for considering contributing to the Cashier. You can read the contribution guide lines here.
License
Laravel Cashier is open-sourced software licensed under the MIT license.