Paystack icon

Paystack

Interact with Paystack API

Actions22

Transaction → Initialize

AI-generated

Summary

Initialize a transaction on Paystack by providing the customer's email address and the amount to be charged.

Inputs

  • Email (required) — Customer's email address.
  • Amount (required) — Amount in kobo (if NGN) or subunit of the currency to be charged.

Output shape

a list of JSON objects representing the initialized transaction details

The output contains the transaction initialization response data from Paystack, extracted from the API response. If multiple input items are processed, the output will be an array with one element per item. On failure, an error message is included in the corresponding output item if 'Continue On Fail' is enabled.

Examples

Example 1: Initialize a transaction for a customer with email 'customer@example.com' to charge 5000 kobo (₦50.00 NGN).

Set Resource to 'Transaction' and Operation to 'Initialize', then provide 'customer@example.com' for the Email parameter and 5000 for the Amount parameter.

Links

Discussion