In dwolla cut amount 5$ but right amount is cut 4.825 see response and Screenshot

array:3 [ // app\Traits\BusinessTrait.php:172
“_links” => array:2 [
“source” => array:1 [
“href” => “https://api-sandbox.dwolla.com/funding-sources/24fe78ed-f531-4420-ab28-3a915552e25d
]
“destination” => array:1 [
“href” => “https://api-sandbox.dwolla.com/funding-sources/2688e7b6-5fe5-4278-a361-cbd68ae738b9
]
]
“amount” => array:2 [
“currency” => “USD”
“value” => 4.825
]
“fees” => array:1 [
0 => array:2 [
“_links” => array:1 [
“charge-to” => array:1 [
“href” => “https://api-sandbox.dwolla.com/customers/9a7cf093-a601-450d-9c7c-fea105d5af47
]
]
“amount” => array:2 [
“value” => 0.175
“currency” => “USD”
]
]
]
]

CODE::::
$tax_amount = ((1.5 / 100) * $balance_data[‘balance_amount’]) + 0.10; //for business add more
$transfer_request = [
‘_links’ => [
‘source’ => [
‘href’ => config(‘app.dwolla.url’) . “/funding-sources/” . $balance_data[‘bank_uuid’]
],
‘destination’ => [
‘href’ => config(‘app.dwolla.url’) . “/funding-sources/” . $business_account[‘balance_account_uuid’]
],
]
];

        if ($balance_data['transfer_type'] == 'instant') {

            $transfer_request['amount'] = [
                'currency' => 'USD',
                'value' => $balance_data['balance_amount'] - $tax_amount
            ];
            $transfer_request['processingChannel'] = [
                'destination' => 'real-time-payments'
            ];
            $transfer_request['rtpDetails'] = [
                'destination' => [
                    'remittanceData' => 'ABC_123 Remittance Data'
                ]
            ];
            $transfer_request['fees'] = [
                [
                    '_links' => [
                        'charge-to' => [
                            'href' => config('app.dwolla.url') . "/customers/" . $business_account['business_uuid']
                        ]
                    ],
                    'amount' => [
                        'value' => $tax_amount,
                        'currency' => 'USD'
                    ]
                ]
            ];
        } else {
            $transfer_request['amount'] = [
                'currency' => 'USD',
                'value' => $balance_data['balance_amount']
            ];
            $transfer_request['clearing'] = [
                'source' => 'standard', //next-day,same-day,next-available,standard
                'destination' => 'next-available' //next-day,same-day,next-available
            ];
        }

        $transferApi = new DwollaSwagger\TransfersApi($this->apiClient);
        $transferUrl = $transferApi->create($transfer_request);

Screenshot by Lightshot - please see this SS

Hi @ragini – If the entered amount has more than two decimal places, Dwolla will automatically round it to the nearest even integer using Banker’s Rounding.

I would recommend only using up to 2 decimal places in your amount.

SORRY but that is not my question.
whenever any customer account add his bank and his bank to wallet transfer at that moment cut 5$ and fees also, but i want to cut 4.825 and fees. :innocent:
and also when we other customer bank to another customer wallet transfer money at that time work perfectly.

$transfer_request[‘amount’] = [
‘currency’ => ‘USD’,
‘value’ => $balance_data[‘balance_amount’] - $tax_amount
];

i used this but not mins fees amount.

Screenshot by Lightshot - please see this SS

see bellow
$balance_data[‘balance_amount’] = 5.00
FYI: fees will be = 0.175

try {
            $this->init();
            $tax_amount = ((1.5 / 100) * $balance_data['balance_amount']) + 0.10; //for business add more
            $transfer_request = [
                '_links' => [
                    'source' => [
                        'href' => config('app.dwolla.url') . "/funding-sources/" . $balance_data['bank_uuid']
                    ],
                    'destination' => [
                        'href' => config('app.dwolla.url') . "/funding-sources/" . $business_account['balance_account_uuid']
                    ],
                ],
                'amount' => [
                    'currency' => 'USD',
                    'value' => $balance_data['balance_amount'] - $tax_amount
                ]
                // 'metadata' => [
                //     'note' => 'payment for completed work Dec. 1',
                // ]
            ];

            $transfer_request['rtpDetails'] = [
                'destination' => [
                    'remittanceData' => 'ABC_123 Remittance Data'
                ]
            ];
            $transfer_request['fees'] = [
                [
                    '_links' => [
                        'charge-to' => [
                            'href' => config('app.dwolla.url') . "/customers/" . $business_account['business_uuid']
                        ]
                    ],
                    'amount' => [
                        'value' => $tax_amount,
                        'currency' => 'USD'
                    ]
                ]
            ];

            $transferApi = new DwollaSwagger\TransfersApi($this->apiClient);
            $transferUrl = $transferApi->create($transfer_request);

Hi @ragini , I am struggling to follow the root of your issue. Can you please provide an example were you seeing the behavior that is leading to the discrepancy in what you are attempting to accomplish? Example transfer IDs would be helpful and a more concrete write-up with additional context will help us in debugging further. Thanks!

Okay… when i am trying to transfer amount customer_A’s bank to customer_A’s wallet at that time cut my input amount $ 5 and with the fees $ 0.18 amount. But my Question is why not follow this scenario cut $ 4.8 and with fees $ 0.18. check bellow
Screenshot by Lightshot - See SS
transection id = c9625d40-04c3-ed11-814e-e06c8c43255b

Also, When i am trying to transfer amount customer_B’s bank to customer_A’s wallet at that time follow this scenario cut $ 4.82 and with fees $ 0.18. check bellow
Screenshot by Lightshot - See SS
transection id = f58cd00e-07c3-ed11-814e-e06c8c43255b

@shreya and @spencer give me answer i need your help

Hi @ragini – this is how fees are expected to behave for deposits from a Customer’s bank into their Balance funding-source.

In the case of a Customer A to Customer B transfer with a fee charged to Customer A, when you retrieve the transfer from the API, you will find that the transfer.amount is $4.82, and if you traverse back to the funding-transfer link, you will find that the transfer.amount is $5, which represents the total amount that was debited from the bank account.

In the case of a deposit from Customer A’s bank to their balance, this funding-transfer is what you are seeing alone when you retrieve the transfer from the API. Since there is no other Bank or Customer involved, you will see a single debit transfer.

I hope this explanation helps to clarify things for you. If you have any further questions, please let me know!