Git Product home page Git Product logo

goutam197 / online-payments Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jpmorgan-payments/online-payments

0.0 0.0 0.0 817 KB

The Online Payments API allows you to accept web payments across a variety of regions and countries. Various payment methods are supported depending on your business and how your customers expect to pay. We will be adding more use cases so you can get an idea of how to use these flexible APIs to meet your specific business needs.

Home Page: https://www.online-payments-dev.com

License: Apache License 2.0

JavaScript 14.88% TypeScript 84.09% CSS 0.36% HTML 0.67%

online-payments's Introduction

Link to deployed version of this app

Online Payments showcase app

The Online Payments API allows you to accept web payments across a variety of regions and countries. Various payment methods are supported depending on your business and how your customers expect to pay. We will be adding more use cases so you can get an idea of how to use these flexible APIs to meet your specific business needs.

You can:

  • Spin-up a sample application with UI that demonstrates the main use case for each endpoint. For example, authorizing a payment.
  • Explore the API resources using a Postman Collection.

What's included in this repo?

There are two main directories for you to access:

  • /app for the showcase UI.
  • /postman for the Postman Collection.

Application (App)

A TS/JS application with a client used to demonstrate how to integrate with our APIs on frontend applications.

All your actions on this application are served by mock data included in the app codebase.

Postman Collection

Get straight to the API endpoints in action, make calls and see responses. To use the Postman collection, import the collection file to Postman and follow the included setup instructions to access all possible calls to the Online Payments API. You will need certificates to run these calls.

Included in the App project folders

This is the core UI application written in TS/JS with the React framework. This application illustrates the various capabilities of Online Payments API, using mocked responses stored within the codebase.

We have created capabilities for all Online Goods and Services using our API such as:

  • Authorizing a payment
  • Capture a payment
    • Full
    • Partial
    • Multi Capture
  • Refund a payment
    • Full

Check out the features directory to explore the the components and hooks that use these features.

Run the Showcase Application locally

Install and run a TS/JS application with a client used to demonstrate how to integrate with our APIs on frontend applications.

Install and serve the app

This example requires Yarn.

To start our client code with mocked responses:

  1. Clone this repo.

  2. Install the client folder:

cd app
cd client
yarn install
  1. Start the UI:
yarn start
  1. Open a browser and navigate to the locally deployed app using the URL provided in the command line. Usually localhost:3000.

You have deployed the showcase Online Payments app. Follow the onscreen instructions to explore the banking functionality available.

Mocked Data

You will see in this showcase that we are currently mocking the server responses using MSW. You will still be able to see the request in the network tab of your browser developer tools.

You can ignore the code stored in the data, mocks and mockServiceWorker folders as this only relates to our mocking services.

Accessing J.P. Morgan Sandbox environment

If you would like to try out our APIs you can use our postman collection provided in this repository or follow the quick start guide here.

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.