SenangPay icon

SenangPay

Generate SenangPay payment URL, query transaction, or manage recurring payments

Process Recurring Callback

AI-generated

Overview

This node integrates with SenangPay to perform various payment-related operations including generating payment URLs, querying transaction status, generating recurring payment URLs, and processing recurring payment callbacks. It is useful for automating payment workflows, verifying transaction statuses, and handling recurring payment notifications in e-commerce or subscription-based services.

Use Case Examples

  1. Generate a payment URL for a customer to complete a purchase.
  2. Query the status of a specific transaction using its order ID.
  3. Create a recurring payment URL for subscription billing.
  4. Process and validate incoming recurring payment callback data to confirm payment status.

Properties

Name Meaning
Operation Select the type of operation to perform: generate payment URL, query transaction, generate recurring payment URL, or process recurring callback.

Output

JSON

  • paymentUrl - URL for the customer to complete the payment (for generate operation).
  • qrLink - QR code image URL representing the payment or recurring payment URL.
  • order_id - Order identifier used in the payment or query.
  • recurringPaymentUrl - URL for recurring payment (for generateRecurring operation).
  • operation - Indicates the operation performed, e.g., 'generateRecurring'.
  • recurring_id - Recurring product ID used in recurring payment generation.
  • status_id - Status identifier from the transaction query or callback.
  • transaction_id - Transaction identifier from the callback data.
  • msg - Message or status description from the callback or query response.
  • error - Error message if the callback hash validation fails.

Dependencies

  • Requires SenangPay API credentials including merchant ID, secret key, and environment setting (sandbox or production).

Troubleshooting

  • Ensure the correct SenangPay API credentials are provided; invalid credentials will cause authentication failures.
  • For 'processRecurringCallback', if the hash validation fails, the node outputs an error indicating 'invalid hash'. Verify that the callback data is correctly received and the secret key matches.
  • When generating URLs, ensure all required parameters like order ID and recurring ID are provided to avoid incomplete URL generation errors.

Links

Discussion