Payment API

Collect and disburse payments with QOS secure API integration

Easily enable online payments on your website and mobile app with QOS's secure API. Seamlessly integrate payment into your platform and start collecting transactions.


                session_start();
            header("Access-Control-Allow-Origin: *");
                   $message=array();
                   $message['msisdn']=$_POST['msisdn'];
                   $message['amount']=$_POST['amount'];
                   $message['firstname']=$_POST['firstname'];
                   $message['lastname']=$_POST['lastname'];
                   $message['transref']=time();
                   $message['clientid']=$_POST['clientid'];
                 $message['comment']="null";
                   $context  = "http://example_url_or_ip";
                   $username = "user";
                   $password = "password";
                   function callAPI($method, $url, $data){
              $curl = curl_init();
              switch ($method){
                 case "POST":
                    curl_setopt($curl, CURLOPT_POST, 1);
                    if ($data)
                       curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
                    break;
                 case "PUT":
                    curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "PUT");
                    if ($data)
                       curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
                    break;
                 default:
                    if ($data)
                       $url = sprintf("%s?%s", $url, http_build_query($data));
              }
              // OPTIONS:
              curl_setopt($curl, CURLOPT_URL, $url);
              curl_setopt($curl, CURLOPT_HTTPHEADER, array(
                 //'APIKEY: 111111111111111111111',
                 'Content-Type: application/json',
                 'Authorization: Basic '. base64_encode("$username:$password")
              ));
              curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
              curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
              // EXECUTE:
              $result = curl_exec($curl);
              if(!$result){die("Connection Failure");}
              curl_close($curl);
              return $result;
           }
           ////////////////////////////////////////////////////////////////////////////////
            $make_call = callAPI(
               'POST',
               "$context/QosicBridge/user/requestpayment",
               json_encode($message)
               );

            $response = json_decode($make_call, true);
           /////////////////////////////////////////////////////////////////

             $_SESSION['transref']=$response['transref'];
             $_SESSION['clientid']=$message['clientid'];

Effortless Integration

Our API offers easy integration to seamlessly connect your payment system with other software applications websites or mobile apps. This means that you can quickly integrate payment features without requiring extensive programming knowledge or spending excessive amounts of time on development.

Time and Cost Savings

By opting for an API with easy integration you can save valuable time and reduce development costs. The straightforward integration process eliminates the need for complex coding or redesigning your existing system from scratch. These savings can be redirected towards other aspects of your business enabling you to achieve your goals more efficiently

Track and manage all transactions via our merchant dashboard

Our payment link system provide reporting and tracking features allowing businesses to monitor payment activities track transaction histories and generate financial reports. This helps in streamlining accounting processes and simplifying reconciliation tasks

overview

Customers Testimony

What Customers Say
Over 27,000 businesses trust QOSPAY to power payments. Here's what some of them had to say.
Shield your finances with our unbeatable secure payment system
2FA authentication

Our system incorporates multi-factor authentication protocols, ensuring that only authorized individuals can access and make transactions using your account. This adds an extra layer of protection against potential unauthorized access and fraud.

PCI DSS compliance

We adhere strictly to the Payment Card Industry Data Security Standard (PCI DSS) guidelines. By maintaining PCI DSS compliance, we ensure that your payment card data is handled securely, minimizing the risk of unauthorized access and data breaches.