Maksu Logo

Maksu VPOSClient JavaScript SDK

Global

Type Definitions

ChallengeResult

Result object returned from challenge flow.
Type:
  • Object
Properties:
Name Type Description
status string SUCCCESS, FAIL; CANCELED
sd string sessionData such as orderId

EncryptedCardResult

Result object returned from Card Encryption iframe.
Type:
  • Object
Properties:
Name Type Attributes Description
valid boolean <optional>
Indicates whether encryption succeeded
cardEncData string | null Base64 encoded encrypted card data
errorCardEncData string <optional>
Human readable error message
errorDebug string <optional>
Debug information (not for production display)

IframeMessage

Internal iframe message format exchanged via postMessage.
Type:
  • Object
Properties:
Name Type Attributes Description
src string Message source ("client", "cse", "GooglePay", "ApplePay")
cmd string Command name
options Object <optional>
orderInfo OrderInfo <optional>

OrderInfo

Order information required for wallet payments.
Type:
  • Object
Properties:
Name Type Description
orderId string Merchant order identifier
currency string ISO currency code (EUR, USD, etc.)
orderTotal string | number Order total amount

WalletOptions

Wallet configuration options.
Type:
  • Object
Properties:
Name Type Attributes Description
environment string <optional>
TEST or PROD
merchantName string <optional>
Merchant display name
countryCode string <optional>
Merchant country code
googlePay Object <optional>
Google Pay specific options
applePay Object <optional>
Apple Pay specific options

WalletResult

Wallet flow result returned to merchant callback.
Type:
  • Object
Properties:
Name Type Attributes Description
src string Source wallet ("GooglePay" or "ApplePay")
cmd string Command name (usually "walletEnd")
result string "success" | "error" | "cancel"
data Object <optional>
Wallet provider response payload
error Object <optional>
Error object if result is "error"