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

Preauthorization

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

 

Преавторизация (Preauthorization);

 

Успешный запрос ( Преавторизация (Preauthorization);)

Запрос
Test URL -   https://ecg.test.upc.ua/go/service/02
PROD URL -  https://secure.upc.ua/go/service/02
Ответ Результат тестирования
<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="748112036" version="1.0">
    <XMLPayRequest>
        <RequestData>
            <MerchantID>1700000</MerchantID>
            <TerminalID>E7000000</TerminalID>
          <Transactions>
    <Transaction id="999999">
           <Preauthorization>
                 <PayData>
                <Invoice>
             <OrderID>test1</OrderID>
             <Date>091112174516</Date>
             <TotalAmount>100</TotalAmount>
             <Currency>980</Currency>
            <Description>Test</Description>
                  </Invoice>
                  <Card>
                          <CardNum>4999999999990011</CardNum>
                         <ExpYear>1234</ExpYear>
                         <ExpMonth>01</ExpMonth>
                         <CVNum>123</CVNum>
                 </Card>
             <PARes>
                   <Status>Y</Status>
                   <CAVV>AAABCFg3aUFBSBAQlTdpEFX/7P4</CAVV>
                   <ECI>05</ECI>
                   <CavvAlgorithm>2</CavvAlgorithm>
              </PARes>

        </PayData>
          </Preauthorization>
            </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="748112036"  Version="1.0">
          <XMLPayResponse>
              <ResponseData>
                  <MerchantID>1752739</MerchantID>
                 <TerminalID>E7880539</TerminalID>
                          <TransactionResults>
                               <TransactionResult>
                                     <TranCode>000</TranCode>
                                    <ApprovalCode>395006</ApprovalCode>
                                    <Rrn>070711413549</Rrn>
                              </TransactionResult>
                           </TransactionResults>
               </ResponseData>
          </XMLPayResponse>
</Message>
<Signature></Signature>
</ECommerceConnect>

 

 

 

 

 

 

 

 

 

 

<TranCode>000</TranCode>

Успешно обработанный запрос

 

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

Запрос
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.3.xsd">
<Message id="123" version="1.0">
  <XMLPayRequest>
   <RequestData>
        <MerchantID>1700000</MerchantID>
        <TerminalID>E7000000</TerminalID>
      <Transactions>
       <Transaction Id="123456789">
         <Preauthorization>
           <PayData>
             <Invoice>
                      <OrderID>405252</OrderID>
                      <Date>141211145657</Date>
                      <TotalAmount>100</TotalAmount>
                      <Currency>980</Currency>
                      <Description>TEst1</Description>
             </Invoice>
           <Card>
                 <CardNum>4444444444444444</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>
         </Preauthorization>
        </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="123" version="1.0">
   <XMLPayResponse>
    <ResponseData>
          <MerchantID>1700000</MerchantID>
          <TerminalID>E7000000</TerminalID>
       <TransactionResults>
        <TransactionResult Id="123456789">
                 <TranCode>111</TranCode>
                 <Rrn>434514906018</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