| GET | /BraintreeGenerateClientToken | Generate client token and fetch card details for payment. | Generate client token and fetch list of credit cards for performing payment using braintree gateway |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Data | form | BraintreeClientToken | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ErrorNo | form | int | No | |
| Message | form | string | No | |
| Identity | form | long? | No | |
| ErrorSource | form | string | No | |
| DisplayOnUI | form | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ClientToken | form | string | No | |
| CreditCardList | form | List<BraintreeCreditCard> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CardType | form | string | No | |
| IsExpied | form | bool? | No | |
| IsDefault | form | bool? | No | |
| ExpiryMonth | form | string | No | |
| ExpiryYear | form | string | No | |
| Last4Digits | form | string | No | |
| IssuingBank | form | string | No | |
| PaymentMethodToken | form | string | No | |
| CardholderName | form | string | No | |
| Bin | form | string | No | |
| MaskedNumber | form | string | 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.
GET /BraintreeGenerateClientToken HTTP/1.1 Host: tstextweb20.np.bluebet.com.au Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Data:
{
ClientToken: String,
CreditCardList:
[
{
CardType: String,
IsExpied: False,
IsDefault: False,
ExpiryMonth: String,
ExpiryYear: String,
Last4Digits: String,
IssuingBank: String,
PaymentMethodToken: String,
CardholderName: String,
Bin: String,
MaskedNumber: String
}
]
},
ErrorNo: 0,
Message: String,
Identity: 0,
ErrorSource: String,
DisplayOnUI: False
}