Actions6
- Wallet Actions
- Checkout Actions
Overview
The "Pay Order" operation in the Checkout resource enables users to complete a purchase transaction using a serialized payment transaction on supported blockchain networks. This node is useful for automating crypto payments in e-commerce scenarios where the payment process involves blockchain transactions, such as paying for products found via the "Find Product" operation.
Typical use cases include:
- Completing a product purchase on platforms like Amazon or Shopify by submitting a prepared blockchain transaction.
- Automating crypto checkout flows where the payment details are obtained from a prior product search or order preparation step.
- Integrating blockchain-based payment methods (e.g., USDC on Ethereum or testnets) into existing workflows.
Example: After finding a product and receiving a serialized transaction payload, this node submits that transaction on the specified blockchain network using a Crossmint-managed wallet address with sufficient funds.
Properties
| Name | Meaning |
|---|---|
| Serialized Transaction | The serialized blockchain transaction string obtained from the "Find Product" response. Required to submit the payment. |
| Payment Chain | The blockchain network to use for payment. Options include various testnets and mainnets such as Arbitrum Sepolia, Ethereum, Polygon, Optimism, Base, and others. |
| Payer Wallet Address | The wallet address of the payer, which must be a Crossmint-managed wallet funded with USDC tokens. Used to sign and pay the transaction. |
Output
The node outputs a JSON object representing the result of the transaction submission request to the Crossmint API. This typically includes details about the transaction status, any errors, or confirmation data returned by the API.
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for authenticating with the Crossmint API.
- The node interacts with the Crossmint API endpoints, either production or staging, depending on the configured environment in credentials.
- The payer wallet must be managed by Crossmint and have sufficient USDC funds to cover the transaction.
Troubleshooting
- Missing Serialized Transaction: If the serialized transaction input is empty or invalid, the node will throw an error indicating that the serialized transaction is required. Ensure you provide the exact serialized transaction string from the "Find Product" operation.
- Invalid Payer Address: The payer wallet address must be a valid Crossmint-managed wallet with USDC funds. Errors occur if the address is missing or not properly funded.
- API Request Failures: Network issues or invalid API keys can cause HTTP request failures. Verify your API key credential and network connectivity.
- Unsupported Payment Chain: Selecting an unsupported or incorrect blockchain network may cause errors. Use one of the provided options for the payment chain.
- General Error Handling: The node throws descriptive errors for missing required parameters or API errors. Review error messages carefully to identify missing inputs or misconfigurations.
Links and References
- Crossmint API Documentation (for detailed API usage and transaction formats)
- USDC Token Information (details on the stablecoin used for payments)
- Blockchain network documentation for supported chains (Ethereum, Polygon, Arbitrum, etc.)