Decrypted Server-Side Implementation
Important
Decrypting Google Pay payment data on your server is not recommended, as it increases your risk
and compliance burden. See
Getting Started for our
recommended integration method.
Creating transactions
If you decrypt the encrypted Google Pay payment data on your server, you can create a transaction
with the decrypted parameters.
Important
If there is an electronic commerce indicator (ECI) within the decrypted payment data, it must be
included below.
- C#
TransactionRequest request = new TransactionRequest {
Amount = 10.00M,
AndroidPayCard = new TransactionAndroidPayCardRequest {
Cryptogram = onlinePaymentCryptogram,
EciIndicator = eciIndicator,
ExpirationMonth = expirationDate,
ExpirationYear = expirationYear,
GoogleTransactionId = googleTransactionId,
Number = applicationPrimaryAccountNumber,
SourceCardLastFour = sourceCardLastFour,
SourceCardType = sourceCardType
},
Options = new TransactionOptionsRequest {
SubmitForSettlement = true
}
};
Result<transaction> result = gateway.Transaction.Sale(request);