use CCPP\Config;
use CCPP\Locale;
$config = Config::init();
$config->merchantId = 'JT02';
$config->secretKey = '72B8F060B3B923E580411200068A764610F61034AE729AB9EF20CAFF93AFA1B9';
$config->currencyCode = 'MMK';
$config->locale = Locale::MYANMAR;
$config->baseUrl = BaseUrl::SANDBOX;
use CCPP\Requests\RedirectApiRequest;
$invoiceNo = uniqid(); // Your invoice Number
$request = new RedirectApiRequest();
$request->amount = 10000;
$request->frontendReturnUrl = 'https://example.com/';
$request->description = 'Invoice Description';
$request->invoiceNo = $invoiceNo;
$request->paymentChannel = [PaymentChannel::CREDIT_CARD];
$request->customerName = 'Zin Kyaw Kyaw';
$request->customerEmail = 'necessarylion@gmail.com';
use CCPP\RedirectApi;
$payment = new RedirectApi();
$url = $payment->getUrl($request);
$paymentToken = $payload->paymentToken();
$result = $payment->inquiryPayment(); // return PaymentInquiryResponse
$success = $payment->inquiryStatus(); // return boolean (true or false)
$payment->response()
get full api response