NATURAL_API_KEY to your Sandbox API key. The examples use https://api.sandbox.natural.com. For MCP, connect to https://mcp.sandbox.natural.com.
Testing for a customer? Pass their party ID as
customerPartyId on each call. Your agent needs
permission to act on their behalf.1. Create an intent
Create a payment intent for $39.20. Amounts are in cents.data.attributes.payUrl.
2. Pay with a test card
OpenpayUrl and enter a test card. Use a future expiration date and any three-digit CVC.
3. Check the result
Get the payment intent to check its status.4. Settle the payment
Sandbox payments require simulated settlement. Open the payment in the Sandbox dashboard and select Simulate settlement, or use the API:settledAt is null, get the card payment again to check settlement.