Overview
This node integrates with the Pagar.me API to facilitate payment processing using card tokens or saved card IDs. Specifically, the 'Pay With Token' operation allows users to charge a specified amount to a card by providing either a saved Card ID or a Card Token. It supports setting the amount in cents, number of installments, immediate capture of payment, and a custom statement descriptor for the card statement. This node is useful for automating payment workflows where card details are tokenized or saved, enabling secure and streamlined payment transactions without handling raw card data directly.
Use Case Examples
- Charging a customer using a saved card token for an online purchase.
- Processing installment payments for a subscription service using a card ID.
- Capturing payments immediately or authorizing them for later capture based on business needs.
Properties
| Name | Meaning |
|---|---|
| Amount (in cents) | The amount to charge the card, specified in cents. |
| Card ID or Token | Either a saved Card ID (starting with 'card_') or a Card Token (starting with 'tok_') used to identify the payment method. |
| Installments | The number of installments to split the payment into. |
| Capture | Boolean flag indicating whether to capture the payment immediately or just authorize it. |
| Statement Descriptor | Custom text to appear on the cardholder's statement describing the charge. |
Output
JSON
items- Array containing details of the items being charged, including amount, description, and quantity.charges- Array containing charge details such as amount, payment method, and credit card information including installments, capture flag, card ID or token, and statement descriptor.
Dependencies
- Pagar.me API
Troubleshooting
- Ensure the API key credential is correctly configured and valid to avoid authentication errors.
- For tokenization operations, a public key credential is required; missing or invalid public key will cause errors.
- Input JSON fields must be valid JSON objects; malformed JSON will result in parsing errors.
- Check that the Card ID or Token is correctly formatted and valid; invalid tokens will cause payment failures.
- API errors include HTTP status codes and messages; review error details for troubleshooting.
Links
- Pagar.me API Documentation - Official API documentation for Pagar.me payment processing.