Jump to content
Калькуляторы

xml-шлюз для X-PLAT Создание шлюза

Помогите пож написать свой шлюз или скиньте пример, сам первый раз этим занимаюсь, не пойму как работает. Там всего нужно запрос на проверку и запрос на проведение платежа. Или подскажите по подробнее. Вот есть что в мануале например. Я так понимаю всё должно быть в одно файле.

<?xml version="1.0" encoding="windows-1251"?>
<xml>
 <response>
   <pt_id></pt_id>
   <amount></amount>
   <post_date></post_date>
   <provider_tran_id></provider_tran_id>
   <error code=100>"Проверка не прошла" </error>
 </response>
 <md5_digest></md5_digest>
</xml>
<?xml version="1.0" encoding="windows-1251"?>
<xml>
 <response>
   <pt_id></pt_id>
   <provider_tran_id></provider_tran_id>
   <error code=100>" "</error>
 </response>
 <md5_digest></md5_digest>
</xml>

Edited by fint07

Share this post


Link to post
Share on other sites

Я так понимаю всё должно быть в одно файле.

 

Нет, это два ответа. Видимо, ачипятка в мануале. Это ответ шлюза.

Edited by vop

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.