Issues (20)

src/functions.php (1 issue)

1
<?php
2
function chpter_renew_account_token()
3
{
4
    return Kipling\ChpterPhpSdk\Chpter::accountsTokenRenewal();
5
}
6
7
function chpter_mpesa_payment($customer, $products, $amount, $callback_details)
8
{
9
    return KiplingKelvin\ChpterLaravelSdk\Chpter::mpesaPayment($customer, $products, $amount, $callback_details);
0 ignored issues
show
Bug Best Practice introduced by
The method KiplingKelvin\ChpterLara...\Chpter::mpesaPayment() is not static, but was called statically. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

9
    return KiplingKelvin\ChpterLaravelSdk\Chpter::/** @scrutinizer ignore-call */ mpesaPayment($customer, $products, $amount, $callback_details);
Loading history...
10
}
11
12
function chpter_card_payment($customer, $products, $amount,$card_details, $callback_details)
13
{
14
    return KiplingKelvin\ChpterLaravelSdk\Chpter::cardPayment($customer, $products, $amount,$card_details, $callback_details);
15
}
16
function chpter_hosted_redirect_payment($customer, $amount, $redirect_urls)
17
{
18
    return Kipling\ChpterPhpSdk\Chpter::hostedRedirectPayment($customer, $amount, $redirect_urls);
19
}
20
21
function chpter_express_redirect_payment($transaction_data, $redirect_urls)
22
{
23
    return Kipling\ChpterPhpSdk\Chpter::expressRedirectPayment($transaction_data, $redirect_urls);
24
}
25
function chpter_mobile_payout_destination($type, $phone_number)
26
{
27
    return Kipling\ChpterPhpSdk\Payouts::createMobilePayoutDestination($type, $phone_number);
28
}
29
30
function chpter_bank_payout_destination($bank_name, $bank_account_name, $bank_account_number)
31
{
32
    return Kipling\ChpterPhpSdk\Payouts::createBankPayoutDestination($bank_name, $bank_account_name, $bank_account_number);
33
}
34