This example is showing you how to call Register function with Customer info Parameters + Goods for Klarna

BBS hosted

Input parameters:

merchantId= 12002310
token= zY!9k(8
amount= 2000
currencyCode= NOK
orderNumber= db26661dffa143c85e69409e1733469b
redirect_url= http://dev.wpwm.se/nets/result.php
description= description of Order Registration
orderDescription= Order Description
language= en_GB
customerNumber= 1234567
customerFirstName= Petter
customerLastName= Testmann
customerAddress1= Hundremeterskogen 100
customerAddress2=
customerPostcode= 0563
customerTown= Oslo
customerCountry= NO
customerPhoneNumber= 40 123 456
customerEmail= petter@kaninklubben.no

Parameters in RegisterRequest
Array
(
    [token] => zY!9k(8
    [merchantId] => 12002310
    [request] => RegisterRequest Object
        (
            [AvtaleGiro] => 
            [CardInfo] => 
            [Customer] => Customer Object
                (
                    [Address1] => Hundremeterskogen 100
                    [Address2] => 
                    [CompanyName] => 
                    [CompanyRegistrationNumber] => 
                    [Country] => NO
                    [CustomerNumber] => 1234567
                    [Email] => petter@kaninklubben.no
                    [FirstName] => Petter
                    [LastName] => Testmann
                    [PhoneNumber] => 40 123 456
                    [Postcode] => 0563
                    [SocialSecurityNumber] => 18106500157
                    [Town] => Oslo
                )

            [Description] => description of Order Registration
            [DnBNorDirectPayment] => 
            [Environment] => Environment Object
                (
                    [Language] => 
                    [OS] => 
                    [WebServicePlatform] => PHP5
                )

            [MicroPayment] => 
            [Order] => Order Object
                (
                    [Amount] => 2000
                    [CurrencyCode] => NOK
                    [Force3DSecure] => 
                    [Goods] => ArrayOfItem Object
                        (
                            [Item] => Array
                                (
                                    [0] => Item Object
                                        (
                                            [Amount] => 100
                                            [ArticleNumber] => 14294413
                                            [Discount] => 0.33
                                            [Handling] => 1
                                            [IsVatIncluded] => 1
                                            [Quantity] => 2
                                            [Shipping] => 1
                                            [Title] => TEST01
                                            [VAT] => 0.25
                                        )

                                    [1] => Item Object
                                        (
                                            [Amount] => 200
                                            [ArticleNumber] => 13760205
                                            [Discount] => 0.25
                                            [Handling] => 1
                                            [IsVatIncluded] => 1
                                            [Quantity] => 3
                                            [Shipping] => 1
                                            [Title] => TEST02
                                            [VAT] => 0.17
                                        )

                                    [2] => Item Object
                                        (
                                            [Amount] => 300
                                            [ArticleNumber] => 20434752
                                            [Discount] => 0.75
                                            [Handling] => 1
                                            [IsVatIncluded] => 1
                                            [Quantity] => 4
                                            [Shipping] => 1
                                            [Title] => TEST03
                                            [VAT] => 0.25
                                        )

                                )

                        )

                    [OrderNumber] => db26661dffa143c85e69409e1733469b
                    [UpdateStoredPaymentInfo] => 
                )

            [Recurring] => 
            [ServiceType] => 
            [Terminal] => Terminal Object
                (
                    [AutoAuth] => 
                    [PaymentMethodList] => 
                    [Language] => en_GB
                    [OrderDescription] => Order Description
                    [RedirectOnError] => 
                    [RedirectUrl] => http://dev.wpwm.se/nets/result.php
                )

            [TransactionId] => 
            [TransactionReconRef] => 
        )

)
1

Test Webshops

EXCEPTION IN REGISTER CALL:

SoapFault Object
(
    [message:protected] => Field not valid: 'Customer Phone Number'
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => /storage/content/83/4000983/dev.wpwm.se/public_html/nets/callingRegister_10.php
    [line:protected] => 320
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /storage/content/83/4000983/dev.wpwm.se/public_html/nets/callingRegister_10.php
                    [line] => 320
                    [function] => __call
                    [class] => SoapClient
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Register
                            [1] => Array
                                (
                                    [parameters] => Array
                                        (
                                            [token] => zY!9k(8
                                            [merchantId] => 12002310
                                            [request] => RegisterRequest Object
                                                (
                                                    [AvtaleGiro] => 
                                                    [CardInfo] => 
                                                    [Customer] => Customer Object
                                                        (
                                                            [Address1] => Hundremeterskogen 100
                                                            [Address2] => 
                                                            [CompanyName] => 
                                                            [CompanyRegistrationNumber] => 
                                                            [Country] => NO
                                                            [CustomerNumber] => 1234567
                                                            [Email] => petter@kaninklubben.no
                                                            [FirstName] => Petter
                                                            [LastName] => Testmann
                                                            [PhoneNumber] => 40 123 456
                                                            [Postcode] => 0563
                                                            [SocialSecurityNumber] => 18106500157
                                                            [Town] => Oslo
                                                        )

                                                    [Description] => description of Order Registration
                                                    [DnBNorDirectPayment] => 
                                                    [Environment] => Environment Object
                                                        (
                                                            [Language] => 
                                                            [OS] => 
                                                            [WebServicePlatform] => PHP5
                                                        )

                                                    [MicroPayment] => 
                                                    [Order] => Order Object
                                                        (
                                                            [Amount] => 2000
                                                            [CurrencyCode] => NOK
                                                            [Force3DSecure] => 
                                                            [Goods] => ArrayOfItem Object
                                                                (
                                                                    [Item] => Array
                                                                        (
                                                                            [0] => Item Object
                                                                                (
                                                                                    [Amount] => 100
                                                                                    [ArticleNumber] => 14294413
                                                                                    [Discount] => 0.33
                                                                                    [Handling] => 1
                                                                                    [IsVatIncluded] => 1
                                                                                    [Quantity] => 2
                                                                                    [Shipping] => 1
                                                                                    [Title] => TEST01
                                                                                    [VAT] => 0.25
                                                                                )

                                                                            [1] => Item Object
                                                                                (
                                                                                    [Amount] => 200
                                                                                    [ArticleNumber] => 13760205
                                                                                    [Discount] => 0.25
                                                                                    [Handling] => 1
                                                                                    [IsVatIncluded] => 1
                                                                                    [Quantity] => 3
                                                                                    [Shipping] => 1
                                                                                    [Title] => TEST02
                                                                                    [VAT] => 0.17
                                                                                )

                                                                            [2] => Item Object
                                                                                (
                                                                                    [Amount] => 300
                                                                                    [ArticleNumber] => 20434752
                                                                                    [Discount] => 0.75
                                                                                    [Handling] => 1
                                                                                    [IsVatIncluded] => 1
                                                                                    [Quantity] => 4
                                                                                    [Shipping] => 1
                                                                                    [Title] => TEST03
                                                                                    [VAT] => 0.25
                                                                                )

                                                                        )

                                                                )

                                                            [OrderNumber] => db26661dffa143c85e69409e1733469b
                                                            [UpdateStoredPaymentInfo] => 
                                                        )

                                                    [Recurring] => 
                                                    [ServiceType] => 
                                                    [Terminal] => Terminal Object
                                                        (
                                                            [AutoAuth] => 
                                                            [PaymentMethodList] => 
                                                            [Language] => en_GB
                                                            [OrderDescription] => Order Description
                                                            [RedirectOnError] => 
                                                            [RedirectUrl] => http://dev.wpwm.se/nets/result.php
                                                        )

                                                    [TransactionId] => 
                                                    [TransactionReconRef] => 
                                                )

                                        )

                                )

                        )

                )

        )

    [previous:Exception:private] => 
    [faultstring] => Field not valid: 'Customer Phone Number'
    [faultcode] => s:Client
    [detail] => stdClass Object
        (
            [ValidationException] => stdClass Object
                (
                    [Message] => Field not valid: 'Customer Phone Number'
                )

        )

)