### Initialize a Transaction Source: https://developers.paystack.co/docs Use this endpoint to start a payment session. Requires a valid secret key in the Authorization header. ```cURL curl https://api.paystack.co/transaction/initialize -H "Authorization: Bearer YOUR_SECRET_KEY" -H "Content-Type: application/json" -X POST ``` -------------------------------- ### Initialize Payment Source: https://developers.paystack.co/docs Use this endpoint to initiate a payment transaction. It requires authentication and content type specification. ```APIDOC ## POST /transaction/initialize ### Description Initializes a payment transaction. ### Method POST ### Endpoint https://api.paystack.co/transaction/initialize ### Request Example ```json { "example": "{\"amount\": \"10000\", \"email\": \"customer@example.com\", \"callback_url\": \"https://example.com/callback\"}" } ``` ### Response #### Success Response (200) - **data** (object) - Transaction details. - **message** (string) - Success message. - **status** (boolean) - Indicates if the operation was successful. #### Response Example ```json { "example": "{\"status\": true, \"message\": \"Transaction initialized successfully\", \"data\": { \"authorization_url\": \"https://paystack.com/pay/abcdef\", \"access_code\": \"xyz123\" }}" } ``` ``` -------------------------------- ### Create a Transfer Recipient Source: https://developers.paystack.co/docs Use this endpoint to register a recipient for transfers. Ensure the request is authenticated with your secret key. ```cURL curl https://api.paystack.co/transferrecipient -H "Authorization: Bearer YOUR_SECRET_KEY" -H "Content-Type: application/json" -X POST ``` -------------------------------- ### Create Transfer Recipient Source: https://developers.paystack.co/docs Use this endpoint to create a recipient for making transfers. It requires authentication and content type specification. ```APIDOC ## POST /transferrecipient ### Description Creates a recipient for making money transfers. ### Method POST ### Endpoint https://api.paystack.co/transferrecipient ### Request Example ```json { "example": "{\"name\": \"Adekunle Gold\", \"description\": \"Customer account\", \"email\": \"adekunle.gold@example.com\", \"bank_code\": \"047\", \"account_number\": \"1234567890\"}" } ``` ### Response #### Success Response (200) - **data** (object) - Transfer recipient details. - **message** (string) - Success message. - **status** (boolean) - Indicates if the operation was successful. #### Response Example ```json { "example": "{\"status\": true, \"message\": \"Recipient created successfully\", \"data\": { \"id\": 123, \"name\": \"Adekunle Gold\", \"recipient_code\": \"RCP_abcdef\" }}" } ``` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.