Payme
A multi-gateway payment platform for PHP
Install / Use
/learn @Shoperti/PaymeREADME
Shoperti PayMe
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).
Related Skills
node-connect
331.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
81.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
331.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
81.5kCommit, push, and open a PR
