Solicitud
Google Pay
Via Google Payment API, a merchant can request any credit or debit card stored in their customer’s Google account. Google Pay utilises the card details stored by consumers on their Google Account through Google Play, YouTube and Chrome as well Android Pay credentials.
Google Pay allows a user to securely store their card details using Host Card Emulation, and to use those card details to make payments. It also allows consumers to use cards stored on their Google Account to make payment. This opens up this payment method all consumers storing cards on Chrome, Google Play and Youtube.
MerchantId
internet
N6qsk4kYRZihmPrTXWYS6g
1999;
pay-with-google
{"signature":"MEUCIQDapDDJyf9lH3ztEWksgAjNe...AXjW+ZM+Ut2BWoTExppDDPc1a9Z7U\u003d","protocolVersion":"ECv1","signedMessage":"{\"encryptedMessage\":\"VkqwkFuMdXp...TZQxVMnkTeJjwyc4\\u003d\",\"ephemeralPublicKey\":\"BMglUoKZWxgB...YCiBNkLaMTD9G4sec\\u003d\",\"tag\":\"4VYypqW2Q5FN7UP87QNDGsLgc48vAe5+AcjR+BxQ2Zo\\u003d\"}"}
3231aebe4b60fe23fda3c0ad1b26f03b3ea081e2
Creando el hash
$tmp = "$timestamp.$merchantid.$orderid.$amount.$currency.$token";
$sha1hash = sha1($tmp);
$tmp = "$sha1hash.$secret";
$sha1hash = sha1($tmp);