From 7336d946f3ad93a7f970c82814a3850912bf0c61 Mon Sep 17 00:00:00 2001 From: dev-chiefworks Date: Sat, 4 Jun 2022 11:53:10 -0400 Subject: [PATCH] flutter test --- application/helpers/flutterwave_helper.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/application/helpers/flutterwave_helper.php b/application/helpers/flutterwave_helper.php index dbf918b..33878d2 100644 --- a/application/helpers/flutterwave_helper.php +++ b/application/helpers/flutterwave_helper.php @@ -24,8 +24,10 @@ if ( ! function_exists('flutterwave_api')) $reference = str_replace('.','-',$in['id'].'.'.microtime()); $out['my_reference'] = $reference; - //$in['bank_code'] = "044"; - //$in['account_no'] = "0690000031"; + // temorarily + $in['bank_code'] = "044"; + $in['account_no'] = "0690000031"; + // ---- testing // Setup request to send json via POST. $payload = json_encode(array( @@ -52,6 +54,8 @@ if ( ! function_exists('flutterwave_api')) $data = json_decode($result, true); + //var_dump( $data); + //exit; /* {"account_bank":"044","account_number":"0690000031","amount":"123.00","narration":"Transfer from Olusesan Amey ses66181+1@gmail.com","currency":"NGN","reference":"120-0-97165300 1652605656","debit_currency":"NGN"} //// {"status":200,"statusText":"OK","data":{"status":"success","message":"Transfer Queued Successfully","data":{"id":345332,"account_number":"0690000031","bank_code":"044","full_name":"Forrest Green","created_at":"2022-05-15T09:07:37.000Z","currency":"NGN","debit_currency":"NGN","amount":123,"fee":10.75,"status":"NEW","reference":"120-0-97165300 1652605656","meta":null,"narration":"Transfer from Olusesan Amey