Actions55
- Webhooks Actions
- Payments Actions
- Products Actions
- Plans Actions
- Partner Referrals Actions
- Reporting Actions
- Orders Actions
- Subscriptions Actions
- Invoicing Actions
- Disputes Actions
Orders → Capture Payment
AI-generatedOverview
The node "N8N Tools - PayPal Enhanced" provides a comprehensive integration with PayPal's API, supporting over 70 operations across multiple resources such as Orders, Subscriptions, Invoicing, Disputes, Webhooks, and more. Specifically, the Capture Payment operation under the Orders resource allows users to capture payment for an existing PayPal order.
This operation is useful in scenarios where an order has been authorized but the payment needs to be captured to complete the transaction. For example, after confirming product availability or shipment readiness, you can capture the payment to finalize the sale.
Practical examples:
- E-commerce platforms capturing payment after order confirmation.
- Subscription services capturing initial payments for orders.
- Marketplaces managing order payments through PayPal.
Properties
| Name | Meaning |
|---|---|
| ID | The unique identifier of the PayPal order for which the payment capture will be performed. |
| Additional Options | Optional settings including: • Environment: "Sandbox" or "Live" PayPal environment. • Page Size: Number of items per page (for list operations). • Start Time: Filter start date (ISO 8601 format). • End Time: Filter end date (ISO 8601 format). |
Output
The node outputs a JSON object containing:
resource: The resource name ("orders").operation: The operation name ("capturePayment").success: Boolean indicating if the operation was successful.- All fields returned by the PayPal API response for the capture payment request, typically including details about the captured payment.
creditsUsedandcreditsRemaining: Information about API usage credits from the external validation service.timestamp: ISO string timestamp of when the operation was executed.
If the operation fails and "Continue On Fail" is enabled, the output will contain an error message and success set to false.
The node does not output binary data.
Dependencies
- Requires credentials for:
- An API key credential for the external "N8N Tools API" used for validating operations and tracking usage.
- A PayPal OAuth2 API credential providing an access token and environment configuration.
- The node makes HTTP requests to both the external validation API and the official PayPal API endpoints.
- The PayPal API base URL depends on the environment selected (sandbox or live).
Troubleshooting
- Invalid JSON in Request Body: If the user inputs malformed JSON in the "Request Body" property, the node throws an error indicating invalid JSON. Ensure the JSON syntax is correct.
- Validation Failure: If the external validation API rejects the operation, the node throws an error with the validation message. Check API key validity and operation parameters.
- Unknown Operation or Resource: Errors occur if unsupported operations or resources are specified. Verify that the operation and resource names match supported values.
- API Authentication Issues: If PayPal OAuth2 credentials are missing or expired, API calls will fail. Refresh tokens or reauthenticate as needed.
- Rate Limits or Quotas: The node tracks API credit usage; exceeding limits may cause failures. Monitor usage and adjust accordingly.