Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

[resDataKey]: "urls"
id: string
lastFetched: undefined | Date = undefined

Methods

  • getAll(forceFresh?: boolean): Promise<MaybePopulated<{ callbackUrl?: string; cancelUrl?: string; completeUrl: string; hostUrls: readonly string[]; paymentUrl?: string; termsOfServiceUrl?: string }>>
  • Get the full response from the object. Fetches from Swedbank Pay if necessary.

    Parameters

    • Optional forceFresh: boolean

      Force a refresh from Swedbank Pay before resolving

    Returns Promise<MaybePopulated<{ callbackUrl?: string; cancelUrl?: string; completeUrl: string; hostUrls: readonly string[]; paymentUrl?: string; termsOfServiceUrl?: string }>>

  • getCallbackUrl(forceFresh?: boolean): Promise<null | string>
  • Get the callbackUrl, fetches from Swedbank Pay backend if necessary.

    Parameters

    • Optional forceFresh: boolean

      Force a refresh from Swedbank Pay before resolving

    Returns Promise<null | string>

  • getCancelUrl(forceFresh?: boolean): Promise<null | string>
  • Get the cancelUrl, fetches from Swedbank Pay backend if necessary.

    Parameters

    • Optional forceFresh: boolean

      Force a refresh from Swedbank Pay before resolving

    Returns Promise<null | string>

  • getCompleteUrl(forceFresh?: boolean): Promise<null | string>
  • Get the completeUrl, fetches from Swedbank Pay backend if necessary.

    Parameters

    • Optional forceFresh: boolean

      Force a refresh from Swedbank Pay before resolving

    Returns Promise<null | string>

  • getHostUrls(forceFresh?: boolean): Promise<readonly string[]>
  • Get the hosts url list, fetches from Swedbank Pay backend if necessary.

    Parameters

    • Optional forceFresh: boolean

      Force a refresh from Swedbank Pay before resolving

    Returns Promise<readonly string[]>

  • getPaymentOrderId(): Promise<null | string>
  • Get the ID of the parent paymentOrder. This will fetch the data from the backend if necessary. note, paymentOrder is not always available in the response.

    Returns Promise<null | string>

    A promise that resolves to the ID of the parent paymentOrder or null if not available.

  • getPaymentUrl(forceFresh?: boolean): Promise<null | string>
  • Get the paymentUrl, fetches from Swedbank Pay backend if necessary.

    Parameters

    • Optional forceFresh: boolean

      Force a refresh from Swedbank Pay before resolving

    Returns Promise<null | string>

  • getTermsOfServiceUrl(forceFresh?: boolean): Promise<null | string>
  • Get the termsOfServiceUrl, fetches from Swedbank Pay backend if necessary.

    Parameters

    • Optional forceFresh: boolean

      Force a refresh from Swedbank Pay before resolving

    Returns Promise<null | string>

Generated using TypeDoc