Skip to main content

AllowedPaymentMethods

List of allowed payment methods to use for this session. If left empty, all payment methods will be allowed.

This is useful for controlling which payment methods are visible in the payment window. If only 1 payment method is allowed and it is redirect-based, such as VIPPS_MOBILEPAY, the user will be automatically redirected from the payment window to the MobilePay payment page, without the user having to click anything. If the user then cancels the MobilePay payment, they will be redirected back to the returnUrl (Or the failureUrl if the returnUrl is not specified) instead of going back to the payment window.

  • Array [
  • PaymentMethodType (string)

    The type of the payment method.

    Possible values: [CARD, VIPPS_MOBILEPAY, MOBILEPAY_ONLINE, APPLE_PAY, GOOGLE_PAY, SWISH, VIABILL, ANYDAY, KLARNA]

    Example: CARD
  • ]
  • AllowedPaymentMethods
    [
    "CARD",
    "VIPPS_MOBILEPAY"
    ]