Payment

Payment

Service to interact with a customer's transactions

Constructor

new Payment(options)

Create a new transaction service

Source:
Parameters:
Name Type Description
options Object

configuration parameters

Methods

listScheduledPayments(accessToken) → {Promise}

Lists the customer's scheduled payments

Source:
Parameters:
Name Type Description
accessToken string

the oauth bearer token.

Returns:
Type:
Promise
  • the http request promise

makeLocalPayment(accessToken, destinationAccountUid, reference, amount, currencyopt) → {Promise}

Makes a payment on behalf of the customer to another UK bank account using the Faster Payments network

Source:
Parameters:
Name Type Attributes Description
accessToken string

the oauth bearer token.

destinationAccountUid string

the account identifier of the recipient

reference string

The payment reference, max. 18 characters.

amount string

the amount to be send.

currency string <optional>

the currency, optional, defaults to "GBP".

Returns:
Type:
Promise
  • the http request promise