Payment Intents
Payment intents give you a two-phase payment flow — create an intent, then confirm it separately. This is useful for AI agent transactions, cart-based checkouts, and any flow where the payment amount is known before the customer’s wallet is available.intents create
Create a new payment intent.Options
| Flag | Description | Default |
|---|---|---|
--amount <amount> | Amount in USD | Interactive prompt |
--currency <currency> | Currency code | USD |
--description <text> | Payment description | Interactive prompt |
--capture <method> | automatic or manual | Interactive prompt |
Capture Methods
| Method | Behavior |
|---|---|
automatic | Captures the payment immediately when confirmed |
manual | Authorizes only; you capture later via the API |
Example
intents list
List all payment intents for your account.intents get
Get detailed information about a specific payment intent.Arguments
| Argument | Description | Required |
|---|---|---|
intent-id | The payment intent ID (e.g., pi_test_abc123) | Yes |
intents confirm
Confirm a payment intent with a customer’s wallet address.Arguments
| Argument | Description | Required |
|---|---|---|
intent-id | The payment intent ID to confirm | Yes |
Options
| Flag | Description | Default |
|---|---|---|
--wallet <address> | Customer’s Solana wallet address | Interactive prompt |
--client-secret <secret> | Client secret for verification | Interactive prompt |
Example
intents cancel
Cancel a payment intent that has not yet been confirmed.Arguments
| Argument | Description | Required |
|---|---|---|
intent-id | The payment intent ID to cancel | Yes |
Intent Lifecycle
PPP Pricing
Purchasing Power Parity (PPP) lets you offer fair, localized pricing based on a customer’s country. The CLI provides tools to look up PPP factors, list all supported countries, and calculate adjusted prices.ppp check
Look up the PPP factor for a specific country.Arguments
| Argument | Description | Required |
|---|---|---|
country | 2-letter ISO country code (e.g., BR, IN, NG) | Yes |
Options
| Flag | Description | Default |
|---|---|---|
--price <price> | Calculate the localized price for this amount | — |
Example
--price, the command shows the factor and an example calculation for $100.
ppp factors
List PPP factors for all supported countries.Options
| Flag | Description | Default |
|---|---|---|
--sort <sort> | Sort by discount or country | country (alphabetical) |
Example
ppp calculate
Calculate a localized price for a specific country.--price and --country are required.
Options
| Flag | Description | Required |
|---|---|---|
--price <price> | Original price in USD | Yes |
--country <country> | 2-letter ISO country code | Yes |
Example
Supported Countries
The PPP system covers 45+ countries across all major regions. Some notable flags:| Code | Country | Typical Discount Range |
|---|---|---|
| AR | Argentina | 60-70% |
| BR | Brazil | 60-65% |
| EG | Egypt | 80-85% |
| IN | India | 70-75% |
| MX | Mexico | 40-50% |
| NG | Nigeria | 70-75% |
| PK | Pakistan | 75-80% |
| PH | Philippines | 55-65% |
| TR | Turkey | 55-65% |
| VN | Vietnam | 65-70% |
zendfi ppp factors for the complete, up-to-date list.
Use Cases
SaaS pricing pages: Runzendfi ppp check for your target markets during planning to set tier-specific pricing.
Dynamic checkout: Use the PPP API endpoint server-side to adjust prices at checkout based on the customer’s IP-derived country code.
Market analysis: Run zendfi ppp factors --sort discount to identify markets where aggressive pricing could drive adoption.