Integration and testing

There is a couple of things you should know to integrate with PayLane to make the whole thing easier and even more comfortable.

Use a test account

First of all, you should always use a test account. Every account created via the PayLane website or PayLane for Startups is a test account, so no worries here.
What’s important, no money will be ever charged, refunded or processed in any other way if you use a test account. You’re completely safe, even if you happen to make a mistake.

Start the PayLane Rest Client

Whenever you want to perform any operation regarding PayLane’s API, make sure you have included and started the PayLane Rest Client (remember to provide your user name and password). It’s very simple and can be done as follows:

1
2
include_once ('PayLaneRestClient.php');
$client = new PayLaneRestClient('your_login', 'your_password');
1
2
require 'paylane_client'
client = PayLane::Client.new('your_login', 'your_password')
1
2
from client import PayLaneRestClient
client = PayLaneRestClient("your_login", "your_password")

How to trigger error transactions

It’s actually very simple – just enter the desired error code as the transaction amount.

You can find all error codes in the error codes section.

Deprecated API documentation

For those of you who have integrated with PayLane systems using the old SOAP API, we have the old documentation files:

Please note that the old API is deprecated. It will still work and you’ll be able to process payments, but no new features will be added in the future. Consider switching to the current RESTful API to make the most of all the payment features.