Build 2023-08-23 12:08 UTC EN DE


1. GooglePay™

Google Pay is a payment platform that can be used across devices with a Google-Account. It enables merchants to offer a better and faster checkout experience for their clients.

2. Prerequisites

You need:

  • Integration to LogPay

  • Google account

  • GooglePay integration in your app or web shop

    const tokenizationSpecification = {
      type: 'PAYMENT_GATEWAY',
      parameters: {
        'gateway': 'logpay',
        'gatewayMerchantId': 'yourMerchantIdProvidedByLogPay'
      }
    };

    For detailed instructions see: https://developers.google.com/pay/api/

3. Operations

sequence psp googlepay

3.1. Verify payment

3.1.1. Request

verifyPayment – pay with GooglePay
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:wal="http://logpay.de/atlas/wallet"
    xmlns:com="http://logpay.de/atlas/common">
    <soapenv:Header/>
    <soapenv:Body>
        <wal:verify_payment_req>
            <com:req_id>***</com:req_id>
            <com:req_language>DE</com:req_language>
            <com:req_api_key>***</com:req_api_key>
            <com:req_client_sign>***</com:req_client_sign>
            <com:req_client_id>***</com:req_client_id>
            <com:req_merchant_id>***</com:req_merchant_id>
            <wal:url_to_initiator>http://www.shop.de/doConfirmation</wal:url_to_initiator>
            <wal:url_to_cancel>http://www.shop.de/doCancel</wal:url_to_cancel>
            <wal:wallet>
                <com:type>GOOGLE</com:type>
                <com:verify_psp_google>
                    <com:payment_data>{ "apiVersionMinor": 0, "apiVersion": 2, "paymentMethodData": { "description": "Visa •••• 1111", "tokenizationData": { "type": "PAYMENT_GATEWAY", "token": "{\"signature\":\"MEUCID[...]ftm0\\\\u003d\\\"}\"}" }, "type": "CARD", "info": { "cardNetwork": "VISA", "cardDetails": "1111" } }}</com:payment_data>
                </com:verify_psp_google>
            </wal:wallet>
            <wal:payment>
                <com:type>PUR</com:type>
                <!-- [...] -->
            </wal:payment>
        </wal:verify_payment_req>
    </soapenv:Body>
</soapenv:Envelope>

3.2. Confirm payment

3.2.1. Request

confirmPayment – obtain the result from a purchase
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:wal="http://logpay.de/atlas/wallet"
    xmlns:com="http://logpay.de/atlas/common">
    <soapenv:Header/>
    <soapenv:Body>
        <wal:confirm_payment_req>
            <com:req_id>***</com:req_id>
            <com:req_language>EN</com:req_language>
            <com:req_api_key>***</com:req_api_key>
            <com:req_client_sign>***</com:req_client_sign>
            <com:req_client_id>***</com:req_client_id>
            <com:req_merchant_id>***</com:req_merchant_id>
            <wal:pay_id>***</wal:pay_id>
        </wal:confirm_payment_req>
    </soapenv:Body>
</soapenv:Envelope>

3.3. Reverse Payment

3.3.1. Request

reversePayment
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:wal="http://logpay.de/atlas/wallet"
    xmlns:com="http://logpay.de/atlas/common">
    <soapenv:Header/>
    <soapenv:Body>
        <wal:reverse_payment_req>
            <com:req_id>***</com:req_id>
            <com:req_language>EN</com:req_language>
            <com:req_api_key>***</com:req_api_key>
            <com:req_client_sign>***</com:req_client_sign>
            <com:req_client_id>***</com:req_client_id>
            <com:req_merchant_id>***</com:req_merchant_id>
            <wal:pay_id>***</wal:pay_id>
            <wal:reverse_currency>EUR</wal:reverse_currency>
            <wal:reverse_amount>123.45</wal:reverse_amount>
            <wal:purpose>Reverse</wal:purpose>
        </wal:reverse_payment_req>
    </soapenv:Body>
</soapenv:Envelope>