1. GooglePay™
Google Pay ist ein Bezahldienst, der zum Bezahlen in Apps oder in Online-Shops genutzt werden kann.
2. Voraussetzungen
Benötigt wird:
-
Integration zu LogPay
-
Google Account
-
GooglePay Integration in der App oder im Web
const tokenizationSpecification = { type: 'PAYMENT_GATEWAY', parameters: { 'gateway': 'logpay', 'gatewayMerchantId': 'yourMerchantIdProvidedByLogPay' } };
Weitere Informationen zur Integration: https://developers.google.com/pay/api/
3. Operationen
3.1. Verify Payment
3.1.1. Request
verifyPayment - Zahlen mit Google
<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 - Ergebnis abholen
<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>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: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>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:pay_id>***</wal:pay_id>
<wal:reverse_currency>EUR</wal:reverse_currency>
<wal:reverse_amount>123.45</wal:reverse_amount>
<wal:purpose>STORNO</wal:purpose>
</wal:reverse_payment_req>
</soapenv:Body>
</soapenv:Envelope>