The page contains a responsive web form to initiate payouts. The structure is as follows:
beneficiary_name: Name of the recipient.bank_account_number: Recipient's bank account.bank_ifsc: Bank's IFSC code.beneficiary_email & beneficiary_phone: Contact details for notifications.transfer_amount: Amount to transfer (INR).transfer_remarks: Reason for the transfer.The backend PHP script processes the form submission and communicates with the Cashfree API.
When the form is submitted, the data is dynamically assigned to variables using $_POST.
A unique transfer_id is created using the current timestamp.
The script integrates the Cashfree Payout API to initiate bank transfers. Key integration parameters:
$client_id and $client_secret for authentication.2024-01-01).https://sandbox.cashfree.com/payout/transfershttps://api.cashfree.com/payout/transfersThe API payload includes:
transfer_idtransfer_amount, currency (INR), and mode (banktransfer).The script handles responses from Cashfree:
cf_transfer_id and encrypts payout details.Payout details are encrypted using AES-256-CBC for secure storage and transfer. The IV and encryption key are used for security.
The server's public IP is fetched using https://api.ipify.org for IP whitelisting in Cashfree's dashboard.