Giter Site home page Giter Site logo

kprabhatgit / payumserver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from payum/payumserver

0.0 0.0 0.0 777 KB

Payment processing microservice. Written in Symfony4

Home Page: https://payum.forma-pro.com/

License: MIT License

PHP 90.35% JavaScript 4.45% HTML 4.54% Shell 0.27% Dockerfile 0.39%

payumserver's Introduction

Supporting Payum

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.

Join the chat at https://gitter.im/Payum/Payum Build Status Total Downloads Latest Stable Version

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:

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

  1. Copy .test.env.dist to .test.env
  2. 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.

Site

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 [email protected]

License

Code MIT licensed.

payumserver's People

Contributors

makasim avatar qymaen avatar vitaliy-svinchyak avatar zifius avatar jaike avatar cordoval avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.