0.1.0 • Published 6 months ago

jpm_online_payments v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

Online Payments API Typescript SDK

This SDK is community generated and maintained, and is not an official release from nor affiliated with J.P. Morgan Payments.

Overview

Online Payments is the primary payment solution for card not present transactions. Manage the entire payments lifecycle for multiple methods of payments, including card payments, alternative methods of payment, and wallet payments.

Example Client Initialization

import Client from "jpm_online_payments";

const client = new Client({
  auth: {
    clientId: process.env["OAUTH_CLIENT_ID"]!!,
    clientSecret: process.env["OAUTH_CLIENT_SECRET"]!!,
  },
});

Module Documentation and Snippets

captures

  • get - Retrieve Payment Details
  • get_by_id - Retrieve Payment Details by transaction Id

fraudcheck

healthcheck

payments

  • create - Create a payment
  • get - Get a specific payment transaction by request Id
  • get_by_id - Get a specific payment transaction by transaction Id
  • patch - Update payment transaction by transaction Id

payments.captures

refunds

  • create - Create a refund
  • get - Get a specific refund transaction by request Id
  • get_by_id - Get a specific refund transaction by transaction Id

verifications

  • create - Verify a payment instrument
  • get - Get a specific verification transaction by request Id
  • get_by_id - Get a specific verification transaction by transaction Id