Skip to content

Latest commit

 

History

History
79 lines (54 loc) · 3.46 KB

README.md

File metadata and controls

79 lines (54 loc) · 3.46 KB

Online Payments API Python 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.

Synchronous Client

from jpm_online_payments import Client
from os import getenv

client = Client(
    auth={
        "client_id": getenv("OAUTH_CLIENT_ID"),
        "client_secret": getenv("OAUTH_CLIENT_SECRET"),
    }
)

Asynchronous Client

from jpm_online_payments import AsyncClient
from os import getenv

client = AsyncClient(
    auth={
        "client_id": getenv("OAUTH_CLIENT_ID"),
        "client_secret": getenv("OAUTH_CLIENT_SECRET"),
    }
)

Module Documentation and Snippets

  • get - Retrieve Payment Details
  • get_by_id - Retrieve Payment Details by transaction Id
  • 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
  • create - Create a refund
  • get - Get a specific refund transaction by request Id
  • get_by_id - Get a specific refund transaction by transaction Id
  • 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