Skip to content

Commit 5500822

Browse files
feat: bkash payment
1 parent 5179eb8 commit 5500822

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

‎src/Products/BkashPayment.php‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,61 +6,61 @@
66

77
class BkashPayment
88
{
9-
private PaymentService $checkoutUrl;
9+
private PaymentService $paymentService;
1010

1111
public function __construct()
1212
{
13-
$this->checkoutUrl = new PaymentService();
13+
$this->paymentService = new PaymentService();
1414
}
1515

1616
public function create($request = [])
1717
{
18-
return $this->checkoutUrl->createPayment($request);
18+
return $this->paymentService->createPayment($request);
1919
}
2020

2121
public function execute($paymentID)
2222
{
23-
return $this->checkoutUrl->executePayment($paymentID);
23+
return $this->paymentService->executePayment($paymentID);
2424
}
2525

2626
public function verify($paymentID)
2727
{
28-
return $this->checkoutUrl->verifyPayment($paymentID);
28+
return $this->paymentService->verifyPayment($paymentID);
2929
}
3030

3131
public function query($paymentID)
3232
{
33-
return $this->checkoutUrl->queryPayment($paymentID);
33+
return $this->paymentService->queryPayment($paymentID);
3434
}
3535

3636
public function search($trxID)
3737
{
38-
return $this->checkoutUrl->searchTransaction($trxID);
38+
return $this->paymentService->searchTransaction($trxID);
3939
}
4040

4141
public function refund($paymentID, $trxID, $amount)
4242
{
43-
return $this->checkoutUrl->refundTransaction($paymentID, $trxID, $amount);
43+
return $this->paymentService->refundTransaction($paymentID, $trxID, $amount);
4444
}
4545

4646
public function capture($paymentID)
4747
{
48-
return $this->checkoutUrl->capturePayment($paymentID);
48+
return $this->paymentService->capturePayment($paymentID);
4949
}
5050

5151
public function void($paymentID)
5252
{
53-
return $this->checkoutUrl->voidPayment($paymentID);
53+
return $this->paymentService->voidPayment($paymentID);
5454
}
5555

5656
public function failed($message)
5757
{
58-
return $this->checkoutUrl->failed($message);
58+
return $this->paymentService->failed($message);
5959
}
6060

6161
public function success($txrID)
6262
{
63-
return $this->checkoutUrl->success($txrID);
63+
return $this->paymentService->success($txrID);
6464
}
6565

6666
}

0 commit comments

Comments
 (0)