For developers
  • 1 // Publish on your site
  • 2<form method="POST" action="" target="_blank">
  • 3 <input type="hidden" name="merchant" value="7">
  • 4 <input type="hidden" name="item_name" value="Testing payment">
  • 5 <input type="hidden" name="amount" value="112">
  • 6 <input type="hidden" name="currency" value="debit_base">
  • 7 <input type="hidden" name="custom" value="comment">
  • 8 <button type="submit">Pay now!</button>
  • 9<form/>

Simple form and instant payment POST notifications

Fast start

Register your account, go through verification and start accepting payments!

IPN system

Get notifications about payments to your sites built on any CMS!

Test mode

Special test payment mode for developers without using real money!

Get payments using the HTML form or on website OkPay

How to receive payments?


On your site - just publish the HTML form and enter payment parameters. User pay for purchase on a special page


Shops and payment - add your store to our categories and the user pay the purchase in your account


Invoicing system - Enter the cost, the recipient and the description of the invoice.


POST form for payment

Variable Description Conditions Necessarily
merchant Merchant ID in the system OkPay. Assigned to the merchant automatically after adding a store to your account. Your store must be moderated Not equal to 0 Yes
item_name Product name or purpose of payment. This item is visible to the payer Minimum number of characters 3, maximum - 100 Yes
amount The sum in any form. The sum is rounded to decimal places. The total amount including commission will be calculated automatically Sum is more than 1 Yes
currency Currency of payment. Available currencies debit_base, debit_extra1, debit_extra2, debit_extra3, debit_extra4, debit_extra5 Only values from the list Yes
custom Comment to the payment. For example, the order number in your store. This item is not displayed to the buyer Maximum - 100 Yes

IPN notifications

Variable Description Example
$POST['amount'] The received amount without commissions 100.00
$POST['fee'] Fee for payment. Paid by the buyer or merchant according to the settings 0.20
$POST['total'] Total transaction amount including commission 100.20
$POST['currency'] Transaction currency for which payment was made debit_base
$POST['payer'] Buyer username in the system OkPay johndoe
$POST['receiver'] Merchant username in the system OkPay envato
$POST['status'] The status of the transaction. Always Value "Confirmed" Confirmed
$POST['date'] Transaction date 2018-01-09 03:11:07
$POST['id_transfer'] Unique transaction number in the system OkPay 58954
$POST['merchant_name'] Merchant store name in the system OkPay Google Inc
$POST['merchant_id'] Unique number of merchant in the system OkPay 21
$POST['balance'] Available merchant balance in transaction currency 2100.56
$POST['item_name'] Name of paid goods Test payment
$POST['custom'] Comment on payment, formed by the merchant in the HTML form INV 1452485
$POST['hash'] A unique signature that is used to verify the validity of a notification. A string join is created of the total amount, merchant password, date transaction and transaction ID. The string is encrypted using an algorithm MD5. C93D3BF7A7C4AFE94B64E30C2CE39F4F

Example of a notification handler in PHP

Create account and get started