Skip to main content

Super Publication Test

SubscriptionJS Callbacks

Most SubscriptionJS methods provide a success callback. Please refer to each method to see in which form successData will be provided.

Most SubscriptionJS methods provide a callback to handle errors.

{
    "errorCode" : ["InvalidCardCvc"],
    "errorMessage" : "",
    "referenceId" : "",
    "referenceUrl" : "",
    "details" : ""
}

Notice

Please check the structure of the passed object before using it. Currently, the passed object might have a different structure under certain circumstances.

errorMessage is an error message for your internal use. It is NOT prepared for direct notification of the customer. referenceId is reserved for future use. referenceUrl Reserved for future use. details is reserved for future use. errorCode is an array that provides a hierarchy of error codes.

At least one value is provided. This can be used to implement error specific behaviour of your page, e.g. inform the customer some credit card data was incorrect and let him correct it.

Possible values created by SubscriptionJS:

Aborted,
AcquirerServerError,
AmountLimitExceeeded,
AuthorizationRejected,
BearerExpired,
BearerRejected,
InvalidAccountHolder,
InvalidAccountNumber,
InvalidAmount,
InvalidBankCode,
InvalidBic,
InvalidCardType,
InvalidCardNumber,
InvalidCardCvc,
InvalidCardHolder,
InvalidConfiguration,
InvalidCountry,
InvalidCouponCode
InvalidCurrency,
InvalidData,
InvalidExpirationDate,
InvalidKey,
InvalidIban,
InvalidName, //Invalid customer name
InvalidPaymentData,
InvalidPaymentMethod,
InvalidTransaction,
InvalidVatId,
IteroServerError,
PspServerError,
RateLimit,
Timeout,
UnmappedError, //for PSP errors not mapped to a specific billwerk code
3DsProblem

Possible values returned by the server on failed payments:

AlreadyExecuted,
BearerInvalid,
BearerExpired,
Canceled,
LimitExceeded,
LoginError,
InsufficientBalance,
InternalError,
InvalidAmount,
InvalidBic,
InvalidCountry,
InvalidConfiguration,
InvalidCurrency,
InvalidData,
InvalidIBAN,
InvalidPreconditions,
InternalProviderError,
PermissionDenied,
PSPConnectionProblem,
PSPConnectionTimeout,
RateLimit,
Rejected,
UnmappedError //for PSP errors not mapped to a specific billwerk code