React Native
Events

VolumeEvent structure

/**
 * Passed as the only parameter to the `onEvent` function given to the `VolumeProvider`
 */
export interface VolumeEvent {
  /**
   * Enum of unique event types
   */
  type: VolumeEventType;
  /**
   * Unix timestamp
   */
  time: number;
  /**
   * Event specific meta
   */
  meta?: {};
}

VolumeEventType

PaymentInitiated

'PAYMENT_INITIATED'

When Payment is initiated

PaymentAuthorizedSDP

'PAYMENT_AUTHORIZED_SDP'

When Payment is authorized and callback to merchant app will be called

PaymentError

'PAYMENT_ERROR'

When initiated Payment fails, for example because of Bank specific rules/error

GenericError

'GENERIC_ERROR'

When any type of error connected with Volume react component occurs, for example list of supported banks cannot be downloaded from Volume server

PaymentAmountTooSmall

'PAYMENT_AMOUNT_TOO_SMALL'

When provided payment amount is too small

PaymentAmountTooLarge

'PAYMENT_AMOUNT_TOO_LARGE'

When provided payment amount is too large