-
-
Notifications
You must be signed in to change notification settings - Fork 90
Payment Token
Shipu Ahamed edited this page Sep 29, 2019
·
2 revisions
bkash will provide all information when a merchant on-boarding.
use Shipu\Bkash\Apis\Payment\PaymentBaseApi;
$tokenApi = new PaymentBaseApi($paymentConfig);
$grandToken = $tokenApi->grantToken();
$grandToken()->id_token; // return only id_token
$grandToken()->refresh_token; // return only refresh_token
$grandToken()->statusCode; // return only statusCode
$grandToken()->statusMessage; // return only statusMessage
or
$payment->getToken(); // return only id_token
$payment
initialization here.
In laravel use Shipu\Bkash\Facades\Payment
instead of $payment
if you want.
use Shipu\Bkash\Apis\Payment\PaymentBaseApi;
$tokenApi = new PaymentBaseApi($paymentConfig);
$refreshToken = $tokenApi->refreshToken( $refreshToken );
$refreshToken()->id_token; // return only id_token
$refreshToken()->refresh_token; // return only refresh_token
$refreshToken()->statusMessage; // return only statusMessage
you can get $refreshToken
after tokenized grant token call.