POST | /fundingsources/googlepay | Either provide a payment method token or a nonce but not both |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
PaymentMethodToken | body | string | No | The payment method token if already vaulted |
PaymentMethodNonce | body | string | No | The payment method nonce |
IsDefault | body | bool | No | |
RememberPaymentMethod | body | bool? | No | False to save PayPal as disabled otherwise save as normal in Dynamics |
CustomerId | body | string | No | |
RequestReference | body | RequestReference | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CampaignId | form | string | No | |
RetailChannelId | form | string | Yes | |
ReferenceId | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
UniqueCardId | form | string | No | |
SourceCardType | form | string | No | |
CustomerId | form | string | No | |
ExpirationMonth | form | string | No | |
ExpirationYear | form | string | No | |
Bin | form | string | No | The first 6 digits of the credit card, known as the Bank Identification Number. |
GoogleTransactionId | form | string | No | The last 4 digits of the credit card number |
SourceCardLast4 | form | string | No | |
CardholderName | form | string | No | |
CreatedAt | form | DateTime | No | The date/time the payment method was created |
Token | form | string | No | The payment method token |
Disabled | form | bool | No | |
IsDefault | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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 }