Token
Extends:
Inherited Summary
| From class Base | ||
| public |
accessToken: * |
|
| public |
production: * |
|
| public |
realmID: * |
|
| public |
version: * |
|
| public |
all() |
|
| public |
create(info: *) |
|
| public |
createFromToken(info: *) |
|
| public |
|
|
| public |
get(id: *) |
|
| public |
remove(id: *) |
|
| public |
request(method: *, path: *, params: {}): * |
|
| public |
update(id: *, info: *) |
|
Public Methods
public create(object: object): Promise source
Token create method.
Create a token from bank account or credit card through the Intuit Quickbooks payment API
Required Options:
objectcardrequired if bankaccount is emptynumbernumber on the cardexpMonthexpiration month on the cardexpYearexpiration year on the cardnamename on the cardaddressstreetAddressstreet address of billing addresscitycity of billing addressregionregion of billing addresscountrycountry of billing addresspostalCodepostalCode of billing address
bankaccountrequired if bankaccount is emptynamename of personroutingNumberrouting number for accountaccountNumberaccount number for accountaccountTypeaccount type (i.e.PERSONAL_CHECKINGorPERSONAL_SAVINGS)phonephone number of person
Examples:
Token().create({
"number": "4408041234567893",
"expMonth": "12",
"expYear": "2026",
"name": "Test User",
"address": {
"streetAddress": "1245 Hana Rd",
"city": "Richmond",
"region": "VA",
"country": "US",
"postalCode": "44112"
}
});
Override:
Base#createParams:
| Name | Type | Attribute | Description |
| object | object |