loading-img

Quick Buying - One-Click Payments


Integrating into couldn't be simpler. Just follow the simple steps below to get up and running. You can then tailor the steps to your specifications

First of all, you need to add a reference in your HTML to our javascript file 'escrow.js', this will make it possible for you to add one-click payments to your products.

        <script type="text/javascript" src="https://www.payscrow.net/assets/js/escrow.js"></script>

You will also have to add the button CSS styling, which you will need to ensure that the button is styled the same everywhere on the internet so that it will provide the sense of security your customers will come to rely on and become familiar with.

        <link href="https://www.payscrow.net/assets/css/escrow.css" rel="stylesheet"><link>

Now you are ready to add a button to a specific product, lets say for example a pair of 'A T-Shirt and an iPad case':

<script>
    /*
     This function takes 8 parameters: 
     1) Unique merchant accesskey, without it you cannot receive payments (You can find this in your merchant account profile section)    
     2) The delivery duration for products/services
     3) A reference for the transaction or any other value that would be returned in a response. eg order id.  
     4) Shipping Cost
     5) Grand Total
     6) Response Url
     7) The list of items in the order with the following properties
        -> name: item name or title.
        -> description: full description and features of the item.
        -> price: the cost of the item which is in Naira.
        -> quantity: the quantity of items
        -> taxAmount: item specific tax
        -> deliverable: set this value to true if the item is a tangible item that can be quantified and transported. 
    8) Currency Code
     */
    
    Escrow.paynow("5c0af6d6-3406-4162-914a-751d42c7fcef", 7, "some ref value", 1200, 4480, "//www.example.com/orders/response",
                  [
                        {
                            name: "T shirt",
                            description: "Black medium size t-shirt", 
                            price: 800, 
                            quantity: 2,
                            taxAmount: 50, 
                            deliverable: true
                        },
                        {
                            name: "iPad case", 
                            description: "Leather casing for protecting an iPad",
                            price: 1500, 
                            quantity: 1, 
                            taxAmount: 80, 
                            deliverable: true
                        }
                   ], "NGN" 
                );
</script>

The result of the above call should render the following:





The following is a sample that you can copy and save locally as a html document, this will show you how simple a one click button is to create:


    <html>
	<head>
		<title>Test PayScrow Integration</title>
		<script type="text/javascript" src="https://www.payscrow.net/assets/js/escrow.js"></script>
		<link href="https://www.payscrow.net/assets/css/escrow.css" rel="stylesheet"></link>
	</head>
	<body>
		<script>
                    Escrow.paynow("5c0af6d6-3406-4162-914a-751d42c7fcef", 7, "some ref value", 1200, 4480, "http://www.example.com/orders/response"
                            [{name: "T shirt", description: "Black medium size t-shirt", price: 800, quantity: 2, taxAmount: 50, deliverable: true},
                             {name: "iPad case", description: "Leather casing for protecting an iPad", price: 1500, quantity: 2, deliverable: taxAmount: 80, false}], "NGN");
		</script>
	</body>
    </html>

Plugins

Plugins make PayScrow integrations a lot faster. Here are the plugins we have at the moment, please feel free to contact support@payscrow.net if you need help developing a plugin or you've developed a plugin and want it to be listed here


Magento

Magento is an eCommerce CMS for selling both digital and physical products. Its plugins are listed below:

WooCommerce

wooCommerce is a wordpress extension that adds ecommerce functionality to wordpress. download PayScrow plugin to extend wordpress and wooCommerce with escrow functionality below:

Open Cart

Open Cart is a wordpress extension that adds ecommerce functionality to wordpress. download PayScrow plugin to extend wordpress and wooCommerce with escrow functionality below: