payum / payum-server
PHP 7.1+ Payment processing server. Setup once and rule them all
Installs: 314
Dependents: 0
Suggesters: 0
Security: 0
Stars: 115
Watchers: 12
Forks: 33
Open Issues: 4
Type:project
Requires
- php: >=5.5.0
- ext-mongo: ~1.6
- authorizenet/authorizenet: ~1.0
- doctrine/mongodb: ~1.2
- fp/klarna-invoice: ~0.1
- jdesrosiers/silex-cors-provider: 0.1.5
- klarna/checkout: ~2.0
- makasim/values: 0.1.*@dev
- omnipay/omnipay: ~2.3
- paypal/rest-api-sdk-php: ~1.0
- payum/omnipay-bridge: 1.0.*@dev
- payum/payum: dev-payum-server-fixes as 1.0.0
- payum/payum-silex-provider: 1.0.*@dev
- raven/raven: ~0.10.0
- silex/silex: ~1.2
- stripe/stripe-php: ~1.0
- symfony/config: ~2.6
- symfony/form: ~2.6
- symfony/locale: ~2.6
- symfony/options-resolver: ~2.6
- symfony/security-csrf: ~2.6
- symfony/translation: ~2.6
- symfony/twig-bridge: ~2.6
- symfony/validator: ~2.6
- symfony/yaml: ~2.6
- twig/twig: ~1.12
Requires (Dev)
- phpunit/phpunit: ~4.0
- symfony/browser-kit: ~2.6
- symfony/css-selector: ~2.6
- symfony/filesystem: ~2.6
This package is auto-updated.
Last update: 2024-11-07 06:21:10 UTC
README
Payum is an MIT-licensed open source project with its ongoing development made possible entirely by the support of community and our customers. If you'd like to join them, please consider:
PayumServer.
PHP 7.1+ Payment processing server. Setup once and rule them all. Here you can find a good introduction to what it does and what problems it solves.
Try it online:
- Demo: https://server.payum.forma-pro.com/demo.html
- Backend: https://server-ui.payum.forma-pro.com
- Server: https://server.payum.forma-pro.com
Run local server
Create docker-compose.yml file:
version: '2' services: payum-server: image: payum/server environment: - PAYUM_MONGO_URI=mongodb://mongo:27017/payum_server - PAYUM_DEBUG=1 links: - mongo ports: - "8080:80" mongo: image: mongo
and run docker-compose up
. You server will be at localhost:8080
port.
Test local server
- Copy
.test.env.dist
to.test.env
- Run
bin/phpunit
Docker registry
The payum/server image and payum/server-ui are built automatically on success push to the master branch.
Setup & Run
$ php composer.phar create-project payum/payum-server --stability=dev
$ cd payum-server
$ php -S 127.0.0.1:8000 web/app.php
An example on javascript:
// do new payment var payum = new Payum('http://localhost:8000'); var payment = {totalAmount: 100, currencyCode: 'USD'}; payum.payment.create(payment, function(payment) { var token = { type: 'capture', paymentId: payment.id, afterUrl: 'http://afterPaymentIsDoneUrl' }; payum.token.create(token, function(token) { // do redirect to token.targetUrl or process at the same page like this: payum.execute(token.targetUrl, '#payum-container'); }); });
Note: You might need a web client to manage payments gateways or you can use REST API.
Developed by Forma-Pro
Forma-Pro is a full stack development company which interests also spread to open source development. Being a team of strong professionals we have an aim an ability to help community by developing cutting edge solutions in the areas of e-commerce, docker & microservice oriented architecture where we have accumulated a huge many-years experience. Our main specialization is Symfony framework based solution, but we are always looking to the technologies that allow us to do our job the best way. We are committed to creating solutions that revolutionize the way how things are developed in aspects of architecture & scalability.
If you have any questions and inquires about our open source development, this product particularly or any other matter feel free to contact at opensource@forma-pro.com
License
Code MIT licensed.