Constructor
new Transaction(options)
Create a new transaction service
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | configuration parameters |
- Source:
Methods
getTransaction(transactionId, sourceopt, accessToken) → {Promise}
Gets the full details of a single transaction
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
transactionId |
string | the unique transaction ID |
|
source |
string |
<optional> |
the transaction type (e.g. faster payments, mastercard). If not specified, only generic transaction information will be returned. |
accessToken |
string | the oauth bearer token |
- Source:
Returns:
- the http request promise
- Type
- Promise
getTransactions(fromDate, toDate, sourceopt, accessToken) → {Promise}
Gets the customer's transactions over the given period
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
fromDate |
string | filter transactions after this date. Format: YYYY-MM-DD |
|
toDate |
string | filter transactions before this date. Format: YYYY-MM-DD |
|
source |
string |
<optional> |
the transaction type (e.g. faster payments, mastercard). If not specified, results are not filtered by source. |
accessToken |
string | the oauth bearer token. |
- Source:
Returns:
- the http request promise
- Type
- Promise