initialize_transaction
Accept payments by creating a Paystack transaction with customer email, amount, and reference. Set up subscriptions, splits, and payment channels.
Instructions
Initialize a transaction to accept payment on Paystack
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | If transaction is to create a subscription to a predefined plan, provide plan code here. | |
| Yes | Customer's email address | ||
| amount | Yes | The amount to charge in the subunit of the supported currency | |
| bearer | No | Who bears Paystack charges? account or subaccount (defaults to account). | |
| channels | No | An array of payment channels to control what channels you want to make available to the user to make a payment with. Available channels include: ["card", "bank", "apple_pay", "ussd", "qr", "mobile_money", "bank_transfer", "eft"] | |
| currency | No | The currency to charge in. Default is your integration currency. | |
| metadata | No | Additional information to store with the transaction. | |
| reference | Yes | Unique transaction reference. Only -, ., = and alphanumeric characters allowed. If not provided, a unique reference will be generated. | |
| split_code | No | The split code of the transaction split. | |
| subaccount | No | The code for the subaccount that owns the payment. e.g. ACCT_8f4s1eq7ml6rlzj | |
| callback_url | No | URL to redirect to after payment. Only required for inline payment methods. | |
| transaction_charge | No | A flat fee to charge the subaccount for this transaction (in the subunit of the supported currency). |