Source Account

Definition

export type PayMittoSourceAccount = {
  alias: string;
  balance: number;
  last4: string;
  sourceProviderId: string;
}

Properties

PropertyTypeDescription
aliasStringAn alias for the source account
balanceNumberThe available balance of the source account
last4StringThe last four digits of the source account
sourceProviderIdStringA unique identifier for the source account

Sample Usage

import { startSDK, PayMittoEnvironment } from 'react-native-paymitto-sdk';

const sourceAccounts = [
  { alias: 'Checking', balance: 500.0, last4: '1234', sourceProviderId: '5163e857-9a05-4170-9d35-d6ad780a0584' },
];

startSDK({
  configuration: {
    environment: PayMittoEnvironment.Sandbox,
    sourceAccounts,
  },
});