SenangPay icon

SenangPay

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

Query Transaction

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 managing recurring payments 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 services.
  4. Process callbacks from SenangPay to verify recurring payment transactions.

Properties

Name Meaning
Order ID The unique identifier for the order to query the transaction status.

Output

JSON

  • paymentUrl - The generated payment URL for completing a transaction.
  • qrLink - A QR code link representing the payment URL for easy scanning.
  • recurringPaymentUrl - The generated URL for initiating a recurring payment.
  • operation - Indicates the operation type, e.g., 'generateRecurring' for recurring payments.
  • recurring_id - The recurring product ID used in generating recurring payment URLs.
  • order_id - The unique order identifier associated with the payment or recurring payment.
  • error - Error message returned when a hash validation fails during callback processing.

Dependencies

  • SenangPay API credentials including merchant ID, secret key, and environment setting

Troubleshooting

  • Ensure the correct SenangPay API credentials are provided; invalid credentials will cause authentication failures.
  • Verify that the 'Order ID' used for querying transactions exists and is correctly formatted.
  • Hash validation errors during callback processing indicate tampering or incorrect secret key usage; verify the secret key and callback data integrity.

Links

Discussion