Logo

Creating a Payment (Payment Form)

To initiate a payment using a single payment form, you need to direct the user to a special URL and pass several required parameters for the payment.

https://api.pay4bit.net/pay?
  public_key=1ab24-2&sum=100&account=user&desc=Description

public_key – Public key, which can be obtained in the project settings.
sum – Payment amount
desc – Order description. Used only for information purposes when making a payment.

paySystem – Optional parameter that specifies which payment system to redirect the user to immediately without showing the selection page. Possible values: amex, discover, unionpay, jcb, visa, mastercard, litecoin, xrp, dot, solana, bitcoin, usdt, trx, bank_us, bank_eu, bank_uk, bank_tr

currency – Optional parameter that specifies the currency in which the payment should be made. Possible values: AZN, AED, USD, EUR, GBP, UAH, BGN, BRL, CAD, CDF, CZK, CHF, DKK, GEL, HUF, INR, MDL, NGN, NOK, RON, ETB, THB, TRY, PLN, KZT, KGS, TJS, UZS, MAD. If not specified, the default currency is EUR.

Receipt Data

After payment initiation, the user is redirected to a receipt page where the payment status is tracked. Upon receiving either a successful or error status, the user is redirected to the partners website (Fail URL/Success URL fields in the personal account settings) with GET parameters:

account – Subscriber ID in the partners system provided during payment
paymentId – Payment number in Pay4Bit system

Digital Signature of the Request

As an additional security measure for your payments, we have created a digital signature system for requests. The presence of a signature ensures protection against tampering with transmitted values (e.g., changing the payment amount or order number).

sign – MD5 hash. The result of concatenating the parameters: payment id, account, sum, and merchant secret key.

PHP:


$sign = md5($paymentid.$account.$sum.$merchant_secret_key);