Skip to content

telepaidev/NowPaymentsAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NowPaymentsAPI

An official API wrapper for NowPayments.

Check this gists for example: click

Introduction

Welcome to NowPaymentsAPI Wrapper, lets start to create payments.

Base Classes & Methods

  • NowPaymentsAPI(api_key: str)

  • InvoiceContext(response: Response, api_key: str)

  • PaymentContext(response: Response, api_key: str)

  • GetPaymentContext(response: Response, api_key: str)

  • Invoices(payment: Payment, api_key: str)

  • Payments(payment: Payment, api_key: str)

Dataclasses

Belongs dataclasses in NowPayments library.

  • Invoice Dataclass
  • Payment Dataclass
  • InvoicePayment Dataclass

Defined dataclasses has same attributes with API response fields.

Example: response = {price_amount: Any, price_currency: Any, order_id: Any, order_description: Any, ipn_callback_url: Any, success_url: Any, cancel_url: Any }

invoice = Invoice(**response) # this will return a Invoice object that has all fields

Note: Field values has to be same type with attribute types in dataclass interface.

About

An official API wrapper for NowPayments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages