O
O
Oleg Levshin2015-11-09 13:06:04
PHP
Oleg Levshin, 2015-11-09 13:06:04

How to organize a redirect to the WebMoney payment form?

The situation is as follows:
1. To receive payments, the most common form of the WebMoney Merchant interface is used;
2. When submitting this form, some pre-validation of data on the subject host should take place, and only then should a redirect to the service itself take place;
Now this is solved by the fact that in case of successful pre-validation using CURL, a POST request is sent to https://merchant.webmoney.ru/lmi/payment.asp , but due to open_basedir restrictions it is impossible to use CURLOPT_FOLLOWLOCATION (solved by parsing headers and performing a redirect through the header), and before the redirect, WebMoney sets a secure cookie, which is already used on the merchant form.
So it is precisely because of the absence of this cookie that the merchant form does not work. I can parse Set-Cookie, but I can't make it secu not https on the subject host.
I would be glad for good advice!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Savostin, 2015-11-09
@LevshinO

After validation, your site returns a page with a completed form (all fields are hidden, action=" https://merchant.webmoney.ru/lmi/payment.asp ") and a submit button. Submit the form with Javascript. The button is needed for those who have Javascript disabled.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question