Skip to main content
The @zkp2p/contracts-v2/paymentMethods module provides unified payment method configurations including payment method hashes, supported currencies, and provider hashes from on-chain deployments.

Import Payment Methods

Import payment method configurations for a specific network:

Network-Specific Payment Methods

Payment Method Configuration

Each payment method contains:

Available Payment Methods

Venmo

Venmo only supports USD currency and is available in the United States.

Revolut

Revolut supports 24+ currencies including USD, EUR, GBP, AUD, CAD, and more.

Cash App

Wise

Working with Payment Method Hashes

Get Payment Method Hash

Check Currency Support

Verify Provider Hash

Helper Functions

Get All Payment Methods

Find Methods by Currency

Using in Smart Contract Calls

Signal Intent with Payment Method

Type Definitions

Direct JSON Import

For bundle size optimization:

Next Steps

Utilities

Use protocol utility functions

Constants

Access protocol constants