Skip to content

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.

License

Notifications You must be signed in to change notification settings

jpmorgan-payments/online-payments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.
  • /docs for documents supporting the testing and usage of the apis.

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.

About

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.

Resources

License

Code of conduct

Stars

Watchers

Forks