Skip to content

Files

Latest commit

2d438b1 · Apr 3, 2025

History

History

payment-processor

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 17, 2022
Mar 13, 2025
Dec 21, 2024
Mar 23, 2023
Jul 24, 2024
Aug 9, 2022
Nov 8, 2023
Apr 3, 2025
Oct 13, 2022
Nov 6, 2024

@requestnetwork/payment-processor

@requestnetwork/payment-processor is a typescript library part of the Request Network protocol. It contains client-side payment methods for:

  • ERC20 proxy contract
  • ETH input data

Test

To run the payment-processor tests we need a local running ganache with all our smart contracts deployed. Do not define "NETWORK" variable in the smart-contracts .env file. You can open two terminals and do:

# Terminal 1
cd ../smart-contracts/
yarn ganache

# Terminal 2
cd ../smart-contracts/
yarn deploy
cd ../payment-processor
yarn test

Basic Usage

see ERC20 and ETH usage examples.