Connecting payment systems to the site, I encountered one interesting problem.
The payment system does not matter, but for example let's take
perfectmoney.
To connect perfectmoney to our website is enough for us to place payment form with specific data (usually this is the account id, payment amount, account number and additional data type descriptions, etc.).
The task to do so:
The user visits the site -> choose the product or service -> clicks to pay and goes to the site perfectmoney.
The problem
The problem is that we need to substitute in the form of an account number, which must be paid by the user.
Ie at the time when the user goes to the page with the form of payment, we have no id.
No need to complicate
Easily solve the problem by asking the user to create the account, and only then pay. But it is a superfluous action, which complicates the use of the site and TK does not allow to do so!
There is another way
I noticed here a way:
https://github.com/yii-dream-team/yi...directForm.php
Ie we make a request to your server, create an account, generate a form for perfectmoney and using js submit the form.
But and as the same is turned off js ? Yes, such users are few, but we're perfectionists. How much this method kosyachny ?
From the above, the question arises:
Please tell me how to arrange payment through the payment system creating the user account ?
When entering the page, create a temporary account ( not visible to user), a pop account id. Only after payment of this invoice is displayed. - Elissa_Nitzsche89 commented on September 19th 19 at 00:23