<?php
namespace App\Constants;
use App\Models\UserWallet;
use Illuminate\Support\Str;
class PaymentGatewayConst {
const AUTOMATIC = "AUTOMATIC";
const MANUAL = "MANUAL";
const ADDMONEY = "Add Money";
const MONEYOUT = "Money Out";
const ACTIVE = true;
const TYPEADDSUBTRACTBALANCE = "ADD-SUBTRACT-BALANCE";
const TYPEADDMONEY = "Add Money";
const TYPETRANSFERMONEY = "Transfer Money";
const CARD_PAYMENT = "Payment";
const ENV_SANDBOX = "SANDBOX";
const ENV_PRODUCTION = "PRODUCTION";
const APP = "APP";
const STATUSSUCCESS = 1;
const STATUSPENDING = 2;
const STATUSHOLD = 3;
const STATUSREJECTED = 4;
const STATUSWAITING = 5;
const STATUSTEST = 6;
const PAYPAL = 'paypal';
const G_PAY = 'gpay';
const COIN_GATE = 'coingate';
const QRPAY = 'qrpay';
const TATUM = 'tatum';
const STRIPE = 'stripe';
const FLUTTERWAVE = 'flutterwave';
const SSLCOMMERZ = 'sslcommerz';
const RAZORPAY = 'razorpay';
const PERFECT_MONEY = 'perfect-money';
const PAYSTACK = "paystack";
const SEND = "SEND";
const RECEIVED = "RECEIVED";
const PENDING = "PENDING";
const REJECTED = "REJECTED";
const CREATED = "CREATED";
const SUCCESS = "SUCCESS";
const EXPIRED = "EXPIRED";
const FIAT = "FIAT";
const CRYPTO = "CRYPTO";
const CRYPTO_NATIVE = "CRYPTO_NATIVE";
const PROJECT_CURRENCY_SINGLE = "PROJECT_CURRENCY_SINGLE";
const PROJECT_CURRENCY_MULTIPLE = "PROJECT_CURRENCY_MULTIPLE";
const ASSET_TYPE_WALLET = "WALLET";
const CALLBACK_HANDLE_INTERNAL = "CALLBACK_HANDLE_INTERNAL";
const NOT_USED = "NOT-USED";
const USED = "USED";
const SENT = "SENT";
const REDIRECT_USING_HTML_FORM = "REDIRECT_USING_HTML_FORM";
public static function add_money_slug() {
return Str::slug(self::ADDMONEY);
}
public static function money_out_slug() {
return Str::slug(self::MONEYOUT);
}
public static function register($alias = null) {
$gateway_alias = [
self::PAYPAL => "paypalInit",
self::G_PAY => "gpayInit",
self::COIN_GATE => "coinGateInit",
self::QRPAY => "qrpayInit",
self::TATUM => 'tatumInit',
self::STRIPE => 'stripeInit',
self::FLUTTERWAVE => 'flutterwaveInit',
self::SSLCOMMERZ => 'sslCommerzInit',
self::RAZORPAY => 'razorpayInit',
self::PERFECT_MONEY => 'perfectMoneyInit',
self::PAYSTACK => 'paystackInit'
];
if($alias == null) {
return $gateway_alias;
}
if(array_key_exists($alias,$gateway_alias)) {
return $gateway_alias[$alias];
}
return "init";
}
public static function registerWallet() {
return [
'web' => UserWallet::class,
'api' => UserWallet::class,
];
}
public static function apiAuthenticateGuard() {
return [
'api' => 'web',
];
}
public static function registerRedirection() {
return [
'web' => [
'return_url' => 'user.add.money.payment.success',
'cancel_url' => 'user.add.money.payment.cancel',
'callback_url' => 'user.add.money.payment.callback',
'redirect_form' => 'user.add.money.payment.redirect.form',
'btn_pay' => 'user.add.money.payment.btn.pay',
],
'api' => [
'return_url' => 'api.user.add.money.payment.success',
'cancel_url' => 'api.user.add.money.payment.cancel',
'callback_url' => 'user.add.money.payment.callback',
'redirect_form' => 'user.add.money.payment.redirect.form',
'btn_pay' => 'api.user.add.money.payment.btn.pay',
],
];
}
public static function registerGatewayRecognization() {
return [
'isGpay' => self::G_PAY,
'isPaypal' => self::PAYPAL,
'isCoinGate' => self::COIN_GATE,
'isQrpay' => self::QRPAY,
'isTatum' => self::TATUM,
'isStripe' => self::STRIPE,
'isFlutterwave' => self::FLUTTERWAVE,
'isSslCommerz' => self::SSLCOMMERZ,
'isRazorpay' => self::RAZORPAY,
'isPerfectMoney' => self::PERFECT_MONEY,
'isPaystack' => self::PAYSTACK,
];
}
}
The Kueue Pay Payment Gateway is an innovative technology that facilitates seamless and secure transactions between merchants and their customers. It enables businesses to accept debit and credit card payments both online and in physical stores.
The Kueue Pay Payment Gateway acts as a bridge between a merchant’s website or point-of-sale system and the payment processing network. It securely transmits payment information, authorizes transactions, and provides real-time status updates.
The Kueue Pay Developer API empowers developers and entrepreneurs to integrate the Kueue Pay Payment Gateway directly into their websites or applications. This streamlines the payment process for customers and provides businesses with a customizable and efficient payment solution.
To access the Kueue Pay Developer API, you need to sign up for a developer account on our platform. Once registered, you’ll receive an API key that you can use to authenticate your API requests.
The Kueue Pay Developer API allows you to initiate payments, check the status of payments, and process refunds. You can create a seamless payment experience for your customers while maintaining control over transaction management.
Yes, the Kueue Pay Developer API is designed to accommodate businesses of varying sizes and industries. Whether you’re a small online store or a large enterprise, our API can be tailored to fit your specific payment needs.
The Kueue Pay Developer API is designed with simplicity and ease of use in mind. Our comprehensive documentation, code samples, and developer support resources ensure a smooth integration process for any web platform.
We offer competitive pricing plans for using the Kueue Pay Payment Gateway and Developer API. Details about fees and pricing tiers can be found on our developer portal.
Absolutely, the Kueue Pay Developer API offers customization options that allow you to tailor the payment experience to match your brand and user interface. You can create a seamless and cohesive payment journey for your customers.
We provide dedicated developer support to assist you with any issues or questions you may have during the API integration process. Reach out to our support team at developersupport@NFCPay.com for prompt assistance.
Remember, our goal is to empower your business with a robust and efficient payment solution. If you have any additional questions or concerns, feel free to explore our developer portal or contact our support team.