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

Authorization

створив(ла) Igor Uleschenko Востаннє змінено: Вер 11, 2019 12:49

 

Авторизация (Authorization)

 

Успешный запрос ( Авторизация (Authorization))

Запрос
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="https://secure.upc.ua/go/pub/schema/xmlpay-1.4.xsd">
    <Message id="748112032436">
        <XMLPayRequest>
            <RequestData>
                <MerchantID>1700000</MerchantID>
                <TerminalID>E7000000</TerminalID>
                <Transactions>
                    <Transaction Id=”2”>
                        <Authorization>
                            <PayData>
                                <Invoice>
                                    <OrderID>10vtlpu55</OrderID>
                                    <Date>1234567890</Date>
                                    <TotalAmount>12334</TotalAmount>
                                    <Currency>980</Currency>
                                    <Description>Rec#15</Description>
                                </Invoice>
                                <Card>
                                    <CardNum>4999999999990011</CardNum>
                                    <ExpYear>1234</ExpYear>
                                    <ExpMonth>12</ExpMonth>
             <CVNum>123</CVNum>
                                </Card>
               <PARes>
                   <Status>Y</Status>
                   <CAVV>AAABCFg3aUFBSBAQlTdpEFX/7P4</CAVV>
                   <ECI>05</ECI>
                   <CavvAlgorithm>2</CavvAlgorithm>
              </PARes>
                            </PayData>
                        </Authorization>
                    </Transaction>
            </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.0.xsd">
    <Message id="748112032436" version="1.0">
        <XMLPayResponse>
            <ResponseData>
                <MerchantID>1700000</MerchantID>
                <TerminalID>E7000000</TerminalID>
                <TransactionResults>
                    <TransactionResult>
                        <TranCode>000</TranCode>
                        <ApprovalCode>856257</ApprovalCode>
                        <Rrn>120516000144</Rrn>
                        <Comment>Approved</Comment>
                        <HostCode>000</HostCode>
                    </TransactionResult>
                    <TransactionResult>
            </ResponseData>
        </XMLPayResponse>
    </Message>
<Signature></Signature>
</ECommerceConnect>

 

 

 

 

 

 

 

 

<TranCode>000</TranCode>
Успешная авторизация

Примечания:
<Authorization>  каждый элемент обязательно включает элемент <PayData>, который содержит в себе обязательный элемент <Invoice> и <Card>, а также опциональный <PARes>

 

Не успешный запрос ( Авторизация (Authorization))

Запрос
Test URL -   https://ecg.test.upc.ua/go/service/02
PROD URL -  https://secure.upc.ua/go/service/02
Ответ Результат тестирования
 <Message id="6152" version="1.0">
  <XMLPayRequest>
   <RequestData>
    <MerchantID>1700000</MerchantID>
    <TerminalID>E7000000</TerminalID>
     <Transactions>
      <Transaction Id="2">
       <Authorization>
        <PayData>
         <Invoice>
          <OrderID>10vtlpu55</OrderID>
          <Date>1234567890</Date>
          <TotalAmount>12334</TotalAmount>
          <Currency>980</Currency>
          <Description>Rec#15</Description>
         </Invoice>
          <Card>
           <CardNum>444444/444444/4444</CardNum>
           <ExpYear>1234</ExpYear>
           <ExpMonth>05</ExpMonth>
           <CVNum>123</CVNum>
          </Card>
               <PARes>
                   <Status>Y</Status>
                   <CAVV>AAABCFg3aUFBSBAQlTdpEFX/7P4=</CAVV>
                   <ECI>05</ECI>
                   <CavvAlgorithm>2</CavvAlgorithm>
              </PARes>
        </PayData>
       </Authorization>
      </Transaction>
     </Transactions>
    </RequestData>
   </XMLPayRequest>
  </Message>
 <Signature></Signature>                                                                                                                         
</ECommerceConnect>
<?xml version="1.0" encoding="UTF-8"?>
<ECommerceConnect xmlns:ns2="http://www.w3.org/2001/04/xmlenc#"
xmlns:ns3="http://www.w3.org/2000/09/xmldsig#">
<?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="6152" version="1.0">
  <XMLPayResponse>
   <ResponseData>
    <MerchantID>1700000</MerchantID>
    <TerminalID>E7000000</TerminalID>
      <TransactionResults>
        <TransactionResult Id="6152">
         <TranCode>111</TranCode>
         <Rrn>500810922366</Rrn>
         <Comment>Decline, invalid card number</Comment>
         <HostCode>111</HostCode>
        </TransactionResult>
       </TransactionResults>
     </ResponseData>
    </XMLPayResponse>
   </Message>
 <Signature></Signature>
</ECommerceConnect>

 

 

 

 

 

 

 

 

Не успешная авторизация

<TranCode>111</TranCode>
Decline, invalid card number