Explorer
home
/
zoteqbgb
/
public_html
/
vendor
/
karim007
/
laravel-bkash-tokenize
/
src
/
Payment
Location:
/home/zoteqbgb/public_html/vendor/karim007/laravel-bkash-tokenize/src/Payment
Root path:
/home/zoteqbgb/public_html/config/676626
Editing: TBRefund.php
<?php namespace Karim007\LaravelBkashTokenize\Payment; use Karim007\LaravelBkashTokenize\Traits\Helpers; class TBRefund extends TBBaseApi { use Helpers; public function refund($paymentID,$trxID,$amount,$reason='refined amount',$sku='abc', $account=1) { if ($account == 1) $account=null; else $account="_$account"; $post_token = array( 'paymentID' => $paymentID, 'amount' => $amount, 'trxID' => $trxID, 'reason' => $reason, 'sku' => $sku, ); $posttoken = json_encode($post_token); $this->getToken($account); return $this->getUrl3("/checkout/payment/refund",$posttoken, $account); } public function refundStatus($paymentID,$trxID, $account=1) { if ($account == 1) $account=null; else $account="_$account"; $post_token = array( 'paymentID' => $paymentID, 'trxID' => $trxID, ); $posttoken = json_encode($post_token); $this->getToken($account); return $this->getUrl3("/checkout/payment/refund",$posttoken, $account); } }
Save maftirs
Upload
Start Upload
New File
Create File
New Folder
Create Folder
Directory Contents
Name
Size
Perms
Modified
Actions
TBBaseApi.php
1,026 bytes
0644
2024-06-02 10:59
âï¸
ðï¸
Rename
TBPayment.php
2,218 bytes
0644
2024-06-02 10:59
âï¸
ðï¸
Rename
TBRefund.php
1,146 bytes
0644
2024-06-02 10:59
âï¸
ðï¸
Rename
Chang
Apply