shoperti / payme
A multi-gateway payment platform for PHP
Installs: 11 941
Dependents: 0
Suggesters: 0
Security: 0
Stars: 49
Watchers: 8
Forks: 5
Open Issues: 0
Requires
- php: >=7.2.0
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phpunit/phpunit: ^4.1
- dev-master / 4.x-dev
- v4.2.1
- v4.2.0
- v4.1.0
- v4.0.0
- v3.8.3
- v3.8.2
- v3.8.1
- v3.8.0
- v3.7.3
- v3.7.2
- v3.7.1
- v3.7.0
- v3.6.0
- v3.5.1
- v3.5.0
- v3.4.0
- v3.3.5
- v3.3.4
- v3.3.3
- v3.3.2
- v3.3.1
- v3.3.0
- v3.2.3
- v3.2.2
- v3.2.1
- v3.2.0
- v3.1.3
- v3.1.2
- v3.1.1
- v3.1.0
- 3.0.x-dev
- v3.0.0
- v2.2.0
- v2.1.9
- v2.1.8
- v2.1.7
- v2.1.6
- v2.1.5
- v2.1.4
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- 2.0.x-dev
- v2.0.0
- 1.0.x-dev
This package is auto-updated.
Last update: 2024-11-30 01:36:40 UTC
README
Supported Gateways:
- Bogus
- Conekta
- Manual
- MercadoPago
- OpenPay
- PayPal Express / Plus
- Sr Pago
- Stripe
Installation
Begin by installing this package through Composer. Edit your project's composer.json
file to require shoperti/payme
.
"require": { "shoperti/payme": "4.0-dev" }
Next, update Composer from the Terminal:
composer update
Examples
// Create a new PayMe instance choosing the driver $config = [ 'driver' => 'stripe', 'private_key' => 'secret_key', 'public_key' => 'public_key', ]; $payme = new Shoperti\PayMe\PayMe($config); // or $payme = PayMe::make($config); // Make a charge $response = $payme->charges()->create('100', 'tok_test', []); if (!$response->success()) { return ':('; } return 'Hurray!';
You can also use our factory.
$payme = new Shoperti\PayMe\PayMeFactory(); // Make a charge $response = $payme->make($config)->charges()->create('100', 'tok_test', []); if (!$response->success()) { return ':('; } return 'Hurray!';
See the tests for more examples.
If you are looking for the old API we still have branch 1.0
Todo
- Add Missing Gateways tests
- Add Credit Card object
- Create a Laravel Bridge
- Add more gateways
License
PayMe is licensed under The MIT License (MIT).