{"action":"created","issue":{"url":"https://api.github.com/repos/Motillo/klarna-checkout-nopcommerce/issues/1","labels_url":"https://api.github.com/repos/Motillo/klarna-checkout-nopcommerce/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Motillo/klarna-checkout-nopcommerce/issues/1/comments","events_url":"https://api.github.com/repos/Motillo/klarna-checkout-nopcommerce/issues/1/events","html_url":"https://github.com/Motillo/klarna-checkout-nopcommerce/issues/1","id":66980125,"number":1,"title":"ShipmentSentEvent == Too late if the payment fails","user":{"login":"olejohan","id":11841179,"avatar_url":"https://avatars.githubusercontent.com/u/11841179?v=3","gravatar_id":"","url":"https://api.github.com/users/olejohan","html_url":"https://github.com/olejohan","followers_url":"https://api.github.com/users/olejohan/followers","following_url":"https://api.github.com/users/olejohan/following{/other_user}","gists_url":"https://api.github.com/users/olejohan/gists{/gist_id}","starred_url":"https://api.github.com/users/olejohan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olejohan/subscriptions","organizations_url":"https://api.github.com/users/olejohan/orgs","repos_url":"https://api.github.com/users/olejohan/repos","events_url":"https://api.github.com/users/olejohan/events{/privacy}","received_events_url":"https://api.github.com/users/olejohan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-07T20:11:01Z","updated_at":"2015-04-08T09:01:33Z","closed_at":null,"body":"Hi, I have not tried your plugin yet (some failure during install, will notify you later if it fails) but I'm already deep into the code and I see a possible problem that I would like to hear about your experence with (as you have a live site already).\r\n\r\nInvoice activation is beeing done when the ShipmentSentEvent is called. If it fails an exception is made with \"error activating order\". We do have an issue with Klarna Faktura (same activation) in maybe 1 in 1000 orders, making it impossible to activate it. (Too old, credit status changed, etc..). \r\nI assume no one would send the goods away but when the shipmentsentevent is called it could, in our business, be too late to get the goods back (as it's then on the way to the customer).\r\n\r\nI would suggest to make the invoice when the shipment is beeing made, not when the shipment is sent ?\r\n\r\nLooking forward to hearing from you "},"comment":{"url":"https://api.github.com/repos/Motillo/klarna-checkout-nopcommerce/issues/comments/90852622","html_url":"https://github.com/Motillo/klarna-checkout-nopcommerce/issues/1#issuecomment-90852622","issue_url":"https://api.github.com/repos/Motillo/klarna-checkout-nopcommerce/issues/1","id":90852622,"user":{"login":"mlandalv","id":710584,"avatar_url":"https://avatars.githubusercontent.com/u/710584?v=3","gravatar_id":"","url":"https://api.github.com/users/mlandalv","html_url":"https://github.com/mlandalv","followers_url":"https://api.github.com/users/mlandalv/followers","following_url":"https://api.github.com/users/mlandalv/following{/other_user}","gists_url":"https://api.github.com/users/mlandalv/gists{/gist_id}","starred_url":"https://api.github.com/users/mlandalv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlandalv/subscriptions","organizations_url":"https://api.github.com/users/mlandalv/orgs","repos_url":"https://api.github.com/users/mlandalv/repos","events_url":"https://api.github.com/users/mlandalv/events{/privacy}","received_events_url":"https://api.github.com/users/mlandalv/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T09:01:32Z","updated_at":"2015-04-08T09:01:32Z","body":"Hi,\r\n\r\nWhen you say \"cannot be activated\" do you mean through their merchants interface? If something is marked as fraud I believe they notify the store owner (email with a link to a form to fill out or something like that), and remove the reservation from the merchants interface. I still think it can be activated programmatically though, which could happen if it has been shipped before you've been able to do the manual steps involved. (We haven't had this situation yet so I may be wrong.)\r\n\r\nIt's also part of their [fraud policy](http://cdn.klarna.com/1.0/shared/content/policy/fraud/sv_se/sweden.pdf) that shipments must be trackable, so the logistics company can stop it if Klarna notifies you about a fraud, and you already have shipped it.\r\n\r\nI also think it's part of their terms that activation shouldn't occur until the goods are *shipped*, so I think the used event is correct. Can't find a link for that though.\r\n"}}