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

MasterPass Authorization

створив(ла) Igor Uleschenko Востаннє змінено: Вер 23, 2019 16:20
Авторизационный запрос с использованием MasterPass

Запрос

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.12.xsd">
  <Message id="254575234567890">
    <XMLPayRequest>
      <RequestData>
        <MerchantID>1700000</MerchantID>
        <TerminalID>E7000000</TerminalID>
        <Transactions>
          <Transaction Id=”2”>
            <Authorization>
              <PayData>
                <Invoice>
                  <OrderID>10vt17lpu55</OrderID>
                  <Date>170725194516</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>jMoRyYgNSt0ZAREBBu8LHI+3oZo=</CAVV>
                  <ECI>05</ECI>
                  <CavvAlgorithm>2</CavvAlgorithm>
                </PARes>
                <Walletid>Q1W</Walletid>
             

              </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.12.xsd">
    <Message id="254575234567890" version="1.0">
        <XMLPayResponse>
            <ResponseData>
                <MerchantID>1700000</MerchantID>
                <TerminalID>E7000000</TerminalID>
                <TransactionResults>
                    <TransactionResult>
                        <TranCode>000</TranCode>
                        <ApprovalCode>442981</ApprovalCode>
                        <Rrn>721320905910</Rrn>
                        <Comment>Approved</Comment>
                        <HostCode>000</HostCode>
                    </TransactionResult>
                    <TransactionResult>
            </ResponseData>
        </XMLPayResponse>
    </Message>
<Signature> ….</Signature>
</ECommerceConnect>

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

Примечание:
Walletid – 3 байтовый идентификатор MasterPass кошелька.
В преавторизационном запросе также может содержать идентификатор  MasterPass кошелька - Walletid