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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
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: text/jsv
Content-Length: length

{
	uniqueCardId: String,
	sourceCardType: String,
	customerId: String,
	expirationMonth: String,
	expirationYear: String,
	bin: String,
	googleTransactionId: String,
	sourceCardLast4: String,
	cardholderName: String,
	createdAt: 0001-01-01,
	token: String,
	disabled: False,
	isDefault: False
}