Ви знаходитеся тут: Головна / Подключение Ecommerce / Transaction State Request

Transaction State Request

створив(ла) Igor Uleschenko Востаннє змінено: Січ 08, 2020 17:00

Запрос состояния транзакции (TransactionStateReq).

 

Успешный запрос  состояния транзакции (TransactionStateReq).

Запрос
Test URL -   https://ecg.test.upc.ua/go/service/02
PROD URL -  https://secure.upc.ua/go/service/02
Ответ Результаты тестирования
<TranCode>000</TranCode>
Успешно обработанный запрос
<?xml version="1.0" encoding="UTF-8" ?>
<ECommerceConnect xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://localhost:8080/ecgtest/pub/schema/xmlpay-1.4.xsd">
   <Message id="748112032436" version="1.0">
      <XMLPayRequest>
         <RequestData>
            <MerchantID>1700000</MerchantID>
            <TerminalID>E7000000</TerminalID>
         <Transactions>
            <Transaction id="000302">
            <TransactionStateReq>
               <TransactionStateReqData>
                  <Invoice>
                     <OrderID>xmlPay053</OrderID>
                     <Date>090717105300</Date>
                     <TotalAmount>21</TotalAmount>
                     <Currency>980</Currency>    
                  </Invoice>
               </TransactionStateReqData>
            </TransactionStateReq>
            </Transaction>
         </Transactions>
         </RequestData>
      </XMLPayRequest>
   </Message>
<Signature></Signature>
</ECommerceConnect>
<?xml version="1.0" encoding="UTF-8"?>
<ECommerceConnect xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://secure.upc.ua/go/pub/schema/xmlpay-1.4.xsd">
   <Message id="748112032436" version="1.0">
      <XMLPayResponse>
         <ResponseData>
            <MerchantID>1700000</MerchantID>
            <TerminalID>E7000000</TerminalID>
         <TransactionResults>
            <TransactionResult>
               <TranCode>000</TranCode>
               <ApprovalCode>913688</ApprovalCode>
               <Rrn>072116013654</Rrn>
               <Comment>Approved</Comment>
            </TransactionResult>
         </TransactionResults>
         </ResponseData>
      </XMLPayResponse>
   </Message>
<Signature></Signature>
</ECommerceConnect>

 

 

 

 

 

 

 

 

TranCode>000</TranCode>

 

Не успешный запрос  состояния транзакции (TransactionStateReq).

Запрос
Test URL -   https://ecg.test.upc.ua/go/service/02
PROD URL -  https://secure.upc.ua/go/service/02
Ответ Результаты тестирования
<?xml version="1.0" encoding="UTF-8" ?>
<ECommerceConnect xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://localhost:8080/ecgtest/pub/schema/xmlpay-1.4.xsd">
   <Message id="74811203426" version="1.0">
      <XMLPayRequest>
         <RequestData>
            <MerchantID>1700000</MerchantID>
            <TerminalID>E7000000</TerminalID>
         <Transactions>
            <Transaction id="000301">
            <TransactionStateReq>
               <TransactionStateReqData>
                  <Invoice>
                     <OrderID>xmlPay053</OrderID>
                     <Date>090717105300</Date>
                     <TotalAmount>21</TotalAmount>
                     <Currency>980</Currency>    
                  </Invoice>
               </TransactionStateReqData>
            </TransactionStateReq>
            </Transaction>
         </Transactions>
         </RequestData>
      </XMLPayRequest>
   </Message>
<Signature></Signature>
</ECommerceConnect>

<?xml version="1.0" encoding="UTF-8"?>
<ECommerceConnect xmlns:xenc=http://www.w3.org/2001/04/xmlenc#
 xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://secure.upc.ua/go/pub/schema/xmlpay-1.7.xsd">
   <Message id="748112032436" version="1.0">
         <XMLPayResponse>
               <ResponseData>
                        <MerchantID>1700000</MerchantID>
                       <TerminalID>E7000000</TerminalID>
                                 <TransactionResults>
                                          <TransactionResult>
                                               <TranCode>291</TranCode>
                                              <Comment>Invoice was not found</Comment>
                                          </TransactionResult>
                                  </TransactionResults>
             </ResponseData>
       </XMLPayResponse>
 </Message>
<Signature></Signature>
</ECommerceConnect>

 

 

 

 

 

 

<TranCode>291</TranCode>

Invoice was not found