TokenService class
URL: https://developer.intuit.com/app/developer/qbpayments/docs/api/resources/all-entities/tokens#the-tokens-object An opaque container that encapsulates a cardholder's credit card information or bank account information. Of note:
- This is a one time token with 15 minute long life span.
- A given token can only be used for one charges transaction. You must create a new token prior to each charges transaction.
card info to a token BEFORE the the card info reaches the app server. For example, it can get the token by calling the token create endpoint from the JavaScript running in the browser, then pass the token to the backend server for sequent calls to charges endpoints. Applications that access cardholder information using the Payments API are required to follow the payment application data security standard (PA DSS) established by the payment card industry, which specifies how cardholder data must be protected. As such, the token resource provides a programatic way to comply with this standard without having to hold sensitive card information on your own servers. For details on this requirement, please refer to the Payment Card Industry (PCI) Security Standards Council website at https://www.pcisecuritystandards.org/
Constructors
- TokenService.new({required String baseUrl, required AuthenticationService authenticationService})
Properties
- authenticationService → AuthenticationService
-
final
- baseUrl → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createBankAccountToken(
{required String requestId, required BankAccount bankAccount, String? realmId, String? authToken}) → Future< String> - Creates a token for the specified bank account.
-
createCardToken(
{required String requestId, required Card card, String? realmId, String? authToken}) → Future< String> - Creates a token for the specified card.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited