Paying any amount through the T-PAY payment gateway
In this article I will show how any amount can be paid through the T-PAY payment system. This solution makes it possible, for example, to donate to a public benefit organisation (an association, a foundation...
In this article I will show how any amount can be paid through the T-PAY payment system. This solution makes it possible, for example, to donate to a public benefit organisation (an association, a foundation, etc.) or to make a payment for any other purpose. Micropayments, which can top up the account of an organisation or a company, are popular today. Below I describe the configuration step by step. However, if you would like us to help you with the whole process, from setting up the account to the first payment through the payment field, please contact our company.
The whole process is as follows:
Setting up a T-Pay account
First, you need to register your account. You can do so here:
There you enter, among other things, your first name, surname, company or institution name, tax identification number (NIP), website address, registered office address, etc. Next, you need to verify your identity by making a one-off transfer of PLN 10 (this amount also covers the activation fee).
Then download this script and proceed to edit the PHP file
Go to line 27 and enter the values you will find in your T-PAY panel.

In the description and CRC fields, enter your own information that will later let you easily identify payments of this type in the T-Pay panel.
The downloaded archive also contains an index.html file. Upload it to the FTP server together with the Tpay folder, which contains the payment.php file we edited earlier.
When you open the URL in a browser, a very simple form will appear in which you can now enter an amount and make a payment.

The look of the payment form can be edited freely. All you need to do is add style sheets. This way you can achieve the following look:

That's all. From now on, our website can receive donations and contributions.
In addition to the declared amount, you can also send other information that will later let you easily identify the payment, e.g. by a payment reference that the payer can enter themselves.
