Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PaymentOrderFactory

Index

Constructors

Properties

The client

Factory for the payer of the purchase

Accessors

  • get amount(): bigint
  • get callbackUrl(): undefined | string
  • get cancelUrl(): undefined | string
  • The URL to redirect the payer to if the payment is cancelled, either by the payer or by the merchant trough an abort request of the payment or paymentorder.

    Returns undefined | string

  • get completeUrl(): undefined | string
  • The URL that Swedbank Pay will redirect back to when the payer has completed his or her interactions with the payment. This does not indicate a successful payment, only that it has reached a final (complete) state. A GET request needs to be performed on the payment order to inspect it further. See completeUrl for details.

    Returns undefined | string

  • get currency(): undefined | string
  • get defaultDescription(): undefined | string
  • get description(): undefined | string
  • get generatePaymentToken(): undefined | boolean
  • get generateRecurrenceToken(): undefined | boolean
  • get hostUrls(): readonly string[]
  • get language(): undefined | string
  • get orderReference(): undefined | string
  • get payeeName(): undefined | string
  • get paymentUrl(): undefined | string
  • For our Seamless Views, the field called paymentUrl will be used when the payer is redirected out of the Seamless View (the iframe). The payer is redirected out of frame when selecting the payment instrument.

    The URL should represent the page of where the Payment Order Seamless View was hosted originally, such as the checkout page, shopping cart page, or similar. Basically, paymentUrl should be set to the same URL as that of the page where the JavaScript for the Seamless View was added to in order to initiate the payment process.

    Please note that the paymentUrl must be able to invoke the same JavaScript URL from the same Payment Order as the one that initiated the payment process originally, so it should include some sort of state identifier in the URL. The state identifier is the ID of the order, shopping cart or similar that has the URL of the Payment stored.

    Returns undefined | string

  • get productCategory(): undefined | string
  • A product category or number sent in from the payee/merchant. This is not validated by Swedbank Pay, but will be passed through the payment process and may be used in the settlement process.

    Returns undefined | string

  • get recurrenceToken(): undefined | string
  • get reference(): undefined | string
  • A unique reference from the merchant system. It is set per operation to ensure an exactly-once delivery of a transactional operation. See payeeReference for details. In Invoice Payments payeeReference is used as an invoice/receipt number, if the receiptReference is not defined.

    maxlen

    30

    Returns undefined | string

  • get subsite(): undefined | string
  • get termsOfServiceUrl(): undefined | string
  • The URL to the terms of service document which the payer must accept in order to complete the payment. **HTTPS is a requirement.

    Returns undefined | string

  • get urls(): { callbackUrl: undefined | string; cancelUrl: undefined | string; completeUrl: undefined | string; hostUrls: readonly string[]; paymentUrl: undefined | string; termsOfServiceUrl: undefined | string }
  • The urls object, containing the URLs relevant for the payment order.

    Returns { callbackUrl: undefined | string; cancelUrl: undefined | string; completeUrl: undefined | string; hostUrls: readonly string[]; paymentUrl: undefined | string; termsOfServiceUrl: undefined | string }

    • callbackUrl: undefined | string
    • cancelUrl: undefined | string
    • completeUrl: undefined | string
    • hostUrls: readonly string[]
    • paymentUrl: undefined | string
    • termsOfServiceUrl: undefined | string
  • get userAgent(): undefined | string
  • get vatAmount(): bigint

Methods

  • The URL to redirect the payer to if the payment is cancelled, either by the payer or by the merchant trough an abort request of the payment or paymentorder.

    Parameters

    • Optional newCancelUrl: string

      The new hostUrls array

    Returns PaymentOrderFactory

    The purchase factory for chaining.

  • The URL that Swedbank Pay will redirect back to when the payer has completed his or her interactions with the payment. This does not indicate a successful payment, only that it has reached a final (complete) state. A GET request needs to be performed on the payment order to inspect it further. See completeUrl for details.

    Parameters

    • Optional newCompleteUrl: string

      The new hostUrls array

    Returns PaymentOrderFactory

    The purchase factory for chaining.

  • setGenerateRecurrenceToken(newGenerateRecurrenceToken: undefined | boolean): PaymentOrderFactory
  • Set to true if you want to generate an recurrenceToken for future recurring purchases.

    Parameters

    • newGenerateRecurrenceToken: undefined | boolean

      The new value for generateRecurrenceToken

    Returns PaymentOrderFactory

    The purchase factory for chaining.

  • For our Seamless Views, the field called paymentUrl will be used when the payer is redirected out of the Seamless View (the iframe). The payer is redirected out of frame when selecting the payment instrument.

    The URL should represent the page of where the Payment Order Seamless View was hosted originally, such as the checkout page, shopping cart page, or similar. Basically, paymentUrl should be set to the same URL as that of the page where the JavaScript for the Seamless View was added to in order to initiate the payment process.

    Please note that the paymentUrl must be able to invoke the same JavaScript URL from the same Payment Order as the one that initiated the payment process originally, so it should include some sort of state identifier in the URL. The state identifier is the ID of the order, shopping cart or similar that has the URL of the Payment stored.

    Parameters

    • Optional newPaymentUrl: string

      The new hostUrls array

    Returns PaymentOrderFactory

    The purchase factory for chaining.

  • A product category or number sent in from the payee/merchant. This is not validated by Swedbank Pay, but will be passed through the payment process and may be used in the settlement process.

    Parameters

    • Optional newProductCategory: string

      the new product category string

    Returns PaymentOrderFactory

    The purchase factory for chaining.

  • The created recurrenceToken, if operation: Verify, operation: Recur or generateRecurrenceToken: true was used.

    Parameters

    • newRecurrenceToken: undefined | string

      The new value for recurrenceToken

    Returns PaymentOrderFactory

    The purchase factory for chaining.

  • A unique reference from the merchant system. It is set per operation to ensure an exactly-once delivery of a transactional operation. See payeeReference for details. In Invoice Payments payeeReference is used as an invoice/receipt number, if the receiptReference is not defined.

    maxlen

    30

    Parameters

    • Optional newReference: string

      the new reference string

    Returns PaymentOrderFactory

    The purchase factory for chaining.

  • The URL to the terms of service document which the payer must accept in order to complete the payment. **HTTPS is a requirement.

    Parameters

    • Optional newTermsOfServiceUrl: string

      The new hostUrls array

    Returns PaymentOrderFactory

    The purchase factory for chaining.

Generated using TypeDoc