Rsl.Lotteries

<back to all web services

AddGooglePayAccount

Create a GooglePay funding source for a customer if not already created

The following routes are available for this service:
POST/fundingsources/googlepayEither provide a payment method token or a nonce but not both
AddGooglePayAccount Parameters:
NameParameterData TypeRequiredDescription
PaymentMethodTokenbodystringNoThe payment method token if already vaulted
PaymentMethodNoncebodystringNoThe payment method nonce
IsDefaultbodyboolNo
RememberPaymentMethodbodybool?NoFalse to save PayPal as disabled otherwise save as normal in Dynamics
CustomerIdbodystringNo
RequestReferencebodyRequestReferenceNo
RequestReference Parameters:
NameParameterData TypeRequiredDescription
CampaignIdformstringNo
RetailChannelIdformstringYes
ReferenceIdformstringNo
GooglePayAccount Parameters:
NameParameterData TypeRequiredDescription
UniqueCardIdformstringNo
SourceCardTypeformstringNo
CustomerIdformstringNo
ExpirationMonthformstringNo
ExpirationYearformstringNo
BinformstringNoThe first 6 digits of the credit card, known as the Bank Identification Number.
GoogleTransactionIdformstringNoThe last 4 digits of the credit card number
SourceCardLast4formstringNo
CardholderNameformstringNo
CreatedAtformDateTimeNoThe date/time the payment method was created
TokenformstringNoThe payment method token
DisabledformboolNo
IsDefaultformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /fundingsources/googlepay HTTP/1.1 
Host: azs-stg-lotteries-web.azurewebsites.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"paymentMethodToken":"String","paymentMethodNonce":"String","isDefault":false,"rememberPaymentMethod":false,"customerId":"String","requestReference":{"campaignId":"String","retailChannelId":"String","referenceId":"String"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"uniqueCardId":"String","sourceCardType":"String","customerId":"String","expirationMonth":"String","expirationYear":"String","bin":"String","googleTransactionId":"String","sourceCardLast4":"String","cardholderName":"String","createdAt":"0001-01-01T00:00:00.0000000","token":"String","disabled":false,"isDefault":false}