Изменения

Перейти к навигации Перейти к поиску

Agency API. Payments

2527 байт добавлено, 15:51, 4 декабря 2018
м
Getting list of allowed payment gateways
WSDL is located on URL: http://CLIENT_DOMAIN/wsdev/wsdl.php?version=1.0&for=PaymentInitialization
This query allows to get a list of payment gateways to pay for a specific order.
For each gateway following parameters are retrieved:
* ID of the payment method
<Value>?</Value>
<!--Value - a brief description for the client. It may contain the timelimit, payment code or some other information. Can be changed in the payment gateway settings in the Nemo system-->
</PaymentParameter>
</PaymentParameters>
</Response>
</ResponseBin>
</ns1:SelectPaymentResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
</syntaxhighlight>
</div>
</div>
 
== Samples of using ==
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:1000px">
==== Request ====
<div class="mw-collapsible-content">
<syntaxhighlight lang="xml" line enclose="div" style="font-size:9pt;background: #F9F9F9; border: 1px dashed #2F6FAB; padding: 10px 5px; margin: 10px 0;">
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ver="http://CLIENT_DOMAIN/wsdev/?version%3D1.0%26for%3DSelectPayment">
<soapenv:Header/>
<soapenv:Body>
<ver:SelectPayment>
<RequestBin>
<Request>
<OrderId>279712</OrderId>
<PaymentMethodId>1079</PaymentMethodId>
</Request>
<Source>
<ClientId>--</ClientId>
<APIKey>--</APIKey>
<Language>RU</Language>
<Currency>RUB</Currency>
</Source>
</RequestBin>
</ver:SelectPayment>
</soapenv:Body>
</soapenv:Envelope>
 
</syntaxhighlight>
</div>
</div>
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:1000px">
 
==== Response ====
<div class="mw-collapsible-content">
<syntaxhighlight lang="xml" line enclose="div" style="font-size:9pt;background: #F9F9F9; border: 1px dashed #2F6FAB; padding: 10px 5px; margin: 10px 0;">
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://CLIENT_DOMAIN/wsdev/?version%3D1.0%26for%3DSelectPayment">
<SOAP-ENV:Body>
<ns1:SelectPaymentResponse>
<ResponseBin>
<Response>
<TransactionId>117608085</TransactionId>
<PaymentParameters>
<PaymentParameter>
<Key>Code</Key>
<Value>a117608085a0CGN73</Value>
</PaymentParameter>
<PaymentParameter>
<Key>Timelimit</Key>
<Value>23:59 20.01.2015</Value>
</PaymentParameter>
<PaymentParameter>
<Key>Description</Key>
<Value>Your payment code is a117608085a0CGN73. You have to pay the order until 23:59 20.01.2015</Value>
</PaymentParameter>
</PaymentParameters>
== См. также ==
*[[Агентский АПИAPI Авиабилеты]]*[[Nemo web services payment integration for mobile apps]] [[Категория:Агентский API]][[Категория:English]]
1382
правки

Навигация

'