修改逻辑
This commit is contained in:
parent
cf68049323
commit
79911a28b5
|
@ -61,12 +61,16 @@ class PaymentNew
|
||||||
{
|
{
|
||||||
$url = "https://mdf.hr5688.com/api/createPaymentOrder";
|
$url = "https://mdf.hr5688.com/api/createPaymentOrder";
|
||||||
$PaymentChannelId = 0;
|
$PaymentChannelId = 0;
|
||||||
if ($payeeBankName == "bKash") {
|
$banks = [strtoupper("bKash"), strtoupper("Nagad")];
|
||||||
|
if (!in_array(strtoupper($payeeBankName), $banks)) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if (strtoupper($payeeBankName) == strtoupper("bKash")) {
|
||||||
$PaymentChannelId = 34;
|
$PaymentChannelId = 34;
|
||||||
} else {
|
}
|
||||||
|
if (strtoupper($payeeBankName) == strtoupper("Nagad")) {
|
||||||
$PaymentChannelId = 35;
|
$PaymentChannelId = 35;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Guzzle HTTP client
|
// Guzzle HTTP client
|
||||||
$client = new Client();
|
$client = new Client();
|
||||||
// var_dump($orderId);
|
// var_dump($orderId);
|
||||||
|
|
Loading…
Reference in New Issue