Jump to content

Klarna module creates multiple invoices - PS 1.5


remyessers

Recommended Posts

Hi,

 

I have a problem with the Klarna module provided by Prestashop (version 1.7.4 of the module)

I'm using it on PS 1.5.4.1

 

An invoice is created at Klarna Online, as soon as I set my order on "shipped". When I open this order later, a second invoice is created at Klarna Online. Every time I open this order, it creates an extra invoice in Klarna Online.

 

When I check the source code, it adds the invoice via this code (I think):

<!-- Admin order hook -->
			
<!-- article added: 
Array
(
    [goods] => Array
        (
            [artno] => 1113
            [title] => Multishine hanglamp koper - Zuiver - Kleur : Koper
            [price] => 16900
            [vat] => 21
            [discount] => 0
            [flags] => 32
        )

    [qty] => 1
)

 end article added -->

<!-- article added: 
Array
(
    [goods] => Array
        (
            [artno] => 
            [title] => sint75
            [price] => -1268
            [vat] => 21
            [discount] => 0
            [flags] => 32
        )

    [qty] => 1
)

 end article added -->

<!-- article added: 
Array
(
    [goods] => Array
        (
            [artno] => 19
            [title] => GLS / DHL
            [price] => 0
            [vat] => 0
            [discount] => 0
            [flags] => 40
        )

    [qty] => 1
)

 end article added -->

<!-- billing address array: 
KlarnaAddr Object
(
    [email:protected] => private
    [telno:protected] => private
    [cellno:protected] => private
    [fname:protected] => private
    [lname:protected] => private
    [company:protected] => 
    [careof:protected] => 
    [street:protected] => private
    [zip:protected] => private
    [city:protected] => private
    [country:protected] => private
    [houseNo:protected] => private
    [houseExt:protected] => 
    [isCompany] => 
)

 end billing address array -->

<!-- shipping address array: 
KlarnaAddr Object
(
    [email:protected] => private
    [telno:protected] => private
    [cellno:protected] => private
    [fname:protected] => private
    [lname:protected] => private
    [company:protected] => 
    [careof:protected] => 
    [street:protected] => private
    [zip:protected] => private
    [city:protected] => private
    [country:protected] => private
    [houseNo:protected] => private
    [houseExt:protected] => 
    [isCompany] => 
)

 end shipping address array -->

<!-- digest() using hash: 
sha512
 end digest() using hash -->

<!-- activate_reservation: 
Array
(
    [0] => 1068783302
    [1] => 
    [2] => 09011970
    [3] => 0
    [4] => 
    [5] => 
    [6] => 2647
    [7] => 
    [8] => Array
        (
            [email] => private
            [telno] => private
            [cellno] => private
            [fname] => private
            [lname] => private
            [company] => 
            [careof] => 
            [street] => private
            [house_number] => private
            [house_extension] => 
            [zip] => private
            [city] => private
            [country] => private
        )

    [9] => Array
        (
            [email] => private
            [telno] => private
            [cellno] => private
            [fname] => private
            [lname] => private
            [company] => 
            [careof] => 
            [street] => private
            [house_number] => private
            [house_extension] => 
            [zip] => private
            [city] => private
            [country] => private
        )

    [10] => 0.0.0.0
    [11] => 0
    [12] => 2
    [13] => 154
    [14] => 101
    [15] => 23653
    [16] => qnatQQK6mIiwT0br0s/i5NDZ8mH62Q5D9xt3TPP/3GTTGsFR+61epv/bUvoGsJLH51MwpyvJ0p0WlELGSl1pIQ==
    [17] => 7
    [18] => -1
    [19] => Array
        (
            [0] => Array
                (
                    [goods] => Array
                        (
                            [artno] => 1113
                            [title] => Multishine hanglamp koper - Zuiver - Kleur : Koper
                            [price] => 16900
                            [vat] => 21
                            [discount] => 0
                            [flags] => 32
                        )

                    [qty] => 1
                )

            [1] => Array
                (
                    [goods] => Array
                        (
                            [artno] => 
                            [title] => sint75
                            [price] => -1268
                            [vat] => 21
                            [discount] => 0
                            [flags] => 32
                        )

                    [qty] => 1
                )

            [2] => Array
                (
                    [goods] => Array
                        (
                            [artno] => 19
                            [title] => GLS / DHL
                            [price] => 0
                            [vat] => 0
                            [discount] => 0
                            [flags] => 40
                        )

                    [qty] => 1
                )

        )

    [20] => 
    [21] => Array
        (
            [delay_adjust] => 1
        )

    [22] => Array
        (
        )

    [23] => Array
        (
        )

    [24] => Array
        (
        )

    [25] => Array
        (
        )

)

 end activate_reservation -->

<!-- digest() using hash: 
sha512
 end digest() using hash -->

<!-- candice report: 
****|activate_reservation|0|567|0|https://payment.klarna.com:443
 end candice report -->

<!-- activate_reservation result: 
Array
(
    [0] => no_risk
    [1] => 513122365343236180
)

 end activate_reservation result -->

I removed some details of the customer for privacy issues. I think this code creates the invoices?

Reported the problem at Klarna and they said it's a PS issue and they can't solve it. Anyone else has this problem too?

 

Best regards,

 

Remy

Link to comment
Share on other sites

  • 8 months later...

Hello.

 

Have you found any solution to the problem?

 

I am experiencing the same. Discovered, that there is 1.7.10 module available, but by checking the commits at github, I see no changes regarding the double invoice problem..

 

Probably, this is caused due to using a deprecated activate_reservation method.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...