Payment (Action) Links & Buttons Overview
Although forwarding customers to a payment checkout is the main purpose of the Payment Links API, there may also be links to a subscription, pre-authorised billing etc. For simplicity, we call these links "payment", although it would also be correct to call them "action" links.
A typical scenario of payment link usage
Your customers can pay with just a few mouse clicks. A typical payment routine is as follows.
1. You place a payment link (or graphic button with one of the offered designs) for any of your goods or services on a page on your website.
2. Your customer clicks on this link and is transferred to a payment processing page at OKPAY. This page can contain a logo, title and description of your online store. You can also choose to specify your phone number, email address and/or the URL of customer support. All these details will be displayed at the top of the payment processing page, so customers can request support if they have problems or questions about the purchase.
3. Once payment is complete, the customer returns to your website and lands on the page that you specify in the auto-return URL.
Your customer stays on your website while making the purchase.
Creating action links and buttons
Automated generation of payment links
Your site is up, but how are customers going to pay you? The OKPAY Button Generator is the fastest way to set up online payment on your website.
You will find this generator very handy if you only sell a few products or services. If yours is a big business, however, we recommend that you use a different option, as discussed below.
Dynamic creation of payment links
If your website sells goods or services in large volumes or if your products are stored in a database with descriptions, prices, etc., you will need to be able to create purchase links dynamically, i.e. "on the fly".
These dynamically created payment links will look and work exactly like those created by the generator, however they are made with the help of “API variables”. We provide a detailed description of the puprose, default values, maximum length, etc. of these variables. Check out the Variable Reference to learn how to fully employ the functionality of the OKPAY payment system.
Generated payment link code
When you create a button, OKPAY responds by generating code that you can paste into your web page or document.
The generated code includes:
- HTML code to place the button on a web page;
- URL link code for adding buttons to emails and documents that support links.
This example shows HTML code for displaying a Buy Now button to sell an item titled "Robot":
OKPAY-generated code for a link would be as follows:
Use these resources to learn more about Payment Links features: