1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fix for WePay app fee

This commit is contained in:
Hillel Coren 2016-08-28 00:30:05 +03:00
parent 2d15c43251
commit 9feddabd4b

View File

@ -53,8 +53,8 @@ class WePayPaymentDriver extends BasePaymentDriver
$data['transaction_id'] = $transactionId;
}
$data['applicationFee'] = (WEPAY_APP_FEE_MULTIPLIER * $data['amount']) + WEPAY_APP_FEE_FIXED;
$data['feePayer'] = WEPAY_FEE_PAYER;
$data['applicationFee'] = (env('WEPAY_APP_FEE_MULTIPLIER') * $data['amount']) + env('WEPAY_APP_FEE_FIXED');
$data['feePayer'] = env('WEPAY_FEE_PAYER');
$data['callbackUri'] = $this->accountGateway->getWebhookUrl();
if ($this->isGatewayType(GATEWAY_TYPE_BANK_TRANSFER, $paymentMethod)) {