Email our support team at support@paystudio.vip
Save yourself from boring integrations

Multiple payment gateways for single integration

All you need is to make just 1 integration with us instead of cumbersome multiple integrations with all payment systems you want to work with.

Introduction

PayStudio REST API supports the ability to perform purchases, recurring payments, refunds, and pay-outs. PayStudio gateway allows the user tp process card payments from the following schemes: Maestro, Mastercard and Visa, American Express (AMEX), JCB , CUP and many more. We also haven the capability for other alternative payment methods (APM’s). For issuing of payments by using REST APIs, you need to develop your own payment interface, with full UI control. For payment processing by using payment cards, your payment interface needs to be a PCI-compliant.

The merchant’s web service sends a request to the API end points when performing a payment. Our payment gateway receives the request, and the server processes that request, then redirects it to the third parties participating the payment. This responds with a callback containing the final payment result.

The merchant’s web service sends a request to the API end points when performing a payment. Our payment gateway receives the request, and the server processes that request and redirects it to the third parties participating payment and responds with a callback containing the final payment result.

 

Direct Payment API

				
					URL -
https://demo.paystudio.vip/api/transaction
Method - POST
API Call Example
				
			
				
					// You can call our API following curl post example
$url = "https://demo.paystudio.vip/api/transaction";
$key = "Your API Key";
// Fill with real customer info
$data = [
    'api_key' => $key,
    'first_name' => 'First Name',
    'last_name' => 'Last Name',
    'address' => 'Address',
    'customer_order_id' => 'ORDER-78544646461235',
    'country' => 'US',
    'state' => 'NY', // if your country US then use only 2 letter state code.
    'city' => 'New York',
    'zip' => '38564',
    'ip_address' => '192.168.168.4',
    'email' => 'test@gmail.com',
    'country_code' => '+91',
    'phone_no' => '999999999',
    'amount' => '10.00',
    'currency' => 'USD',
    'card_no' => '4242424242424242',
    'ccExpiryMonth' => '02',
    'ccExpiryYear' => '2026',
    'cvvNumber' => '123',
    'response_url' => 'https://yourdomain.com/callback.php',
    'webhook_url' => 'https://yourdomain.com/notification.php',
];

$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_HTTPHEADER,[
    'Content-Type: application/json'
]);
$response = curl_exec($curl);
curl_close($curl);

$responseData = json_decode($response);

if(isset($responseData['status']) && $respsonseData['status'] == '3d_redirect') {
    header("Location: ".$responseData['redirect_3ds_url']);
} elseif(isset($responseData['status']) && $respsonseData['status'] == 'success') {
    echo "your transaction was approved.";
    print_r($responseData);
} else {
    echo "your transaction was declined";
    print_r($responseData);                    
}
				
			
Need some advice from our experts?

Request a Call Back Today Now!

We will make a single attempt to contact you from a withheld number, usually within 24 hours of your request.