{"action":"created","issue":{"url":"https://api.github.com/repos/Payum/Payum/issues/479","repository_url":"https://api.github.com/repos/Payum/Payum","labels_url":"https://api.github.com/repos/Payum/Payum/issues/479/labels{/name}","comments_url":"https://api.github.com/repos/Payum/Payum/issues/479/comments","events_url":"https://api.github.com/repos/Payum/Payum/issues/479/events","html_url":"https://github.com/Payum/Payum/issues/479","id":135705156,"number":479,"title":"RequestNotSupportedException: Request Capture{model: Identity}","user":{"login":"henriksjodahl","id":570521,"avatar_url":"https://avatars.githubusercontent.com/u/570521?v=3","gravatar_id":"","url":"https://api.github.com/users/henriksjodahl","html_url":"https://github.com/henriksjodahl","followers_url":"https://api.github.com/users/henriksjodahl/followers","following_url":"https://api.github.com/users/henriksjodahl/following{/other_user}","gists_url":"https://api.github.com/users/henriksjodahl/gists{/gist_id}","starred_url":"https://api.github.com/users/henriksjodahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henriksjodahl/subscriptions","organizations_url":"https://api.github.com/users/henriksjodahl/orgs","repos_url":"https://api.github.com/users/henriksjodahl/repos","events_url":"https://api.github.com/users/henriksjodahl/events{/privacy}","received_events_url":"https://api.github.com/users/henriksjodahl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-23T11:01:42Z","updated_at":"2016-02-23T11:19:18Z","closed_at":null,"body":"I've seen this issue previously but the solution on those issues have not solved my issue.\r\n(i'm using the LaravelPackage)\r\n\r\nMy ServiceProvider:\r\n```\r\nApp::resolving('payum.builder', function(PayumBuilder $payumBuilder) {\r\n\r\n\t$payumBuilder\r\n\t\t->addDefaultStorages()\r\n\t\t->addGatewayFactory('offline', new OfflineGatewayFactory([\r\n\t\t\t\"extension\" => (new StorageExtension(new EloquentStorage(Payment::class)))\r\n\t\t]))\r\n\t\t->addGatewayFactory('klarna_checkout', new KlarnaCheckoutGatewayFactory([\r\n\t\t\t\"extension\" => (new StorageExtension(new EloquentStorage(Payment::class)))\r\n\t\t]))\r\n\t\t->addGateway('offline',[\r\n\t\t\t'factory' => 'offline',\r\n\t\t])\r\n\t\t->addGateway('klarna_checkout', [\r\n\t\t\t'factory'     => 'klarna_checkout',\r\n\t\t\t'merchant_id' => '',\r\n\t\t\t'secret'      => '',\r\n\t\t\t'sandbox'     => true,\r\n\t\t\t'terms_uri'   => '',\r\n\t\t])\r\n\t\t->setTokenStorage(new EloquentStorage(PaymentToken::class))\r\n\t\t->addStorage(Payment::class, new EloquentStorage(Payment::class))\r\n\t;\r\n});\r\n```\r\n\r\nThe error i'm getting on page {redacted}/capture/FbdaKzTYYPRqTrr5QBi4z5l7G1KENdwqNhAwNk4MZzM\" is:\r\n\r\n> RequestNotSupportedException in RequestNotSupportedException.php line 57:\r\nRequest Capture{model: Identity} is not supported. Make sure the storage extension for \"Modules\\Order\\Entities\\Payment\" is registered to the gateway. Make sure the storage find method returns an instance by id \"6\". Make sure the gateway supports the requests and there is an action which supports this request (The method returns true). There may be a bug, so look for a related issue on the issue tracker.\r\n\r\nThe token is created in DB with the hash above.\r\nA payment is created in database in the payment-table with id 6.\r\n\r\nI get the same error using both offline and klarna_checkout gateways."},"comment":{"url":"https://api.github.com/repos/Payum/Payum/issues/comments/187658704","html_url":"https://github.com/Payum/Payum/issues/479#issuecomment-187658704","issue_url":"https://api.github.com/repos/Payum/Payum/issues/479","id":187658704,"user":{"login":"henriksjodahl","id":570521,"avatar_url":"https://avatars.githubusercontent.com/u/570521?v=3","gravatar_id":"","url":"https://api.github.com/users/henriksjodahl","html_url":"https://github.com/henriksjodahl","followers_url":"https://api.github.com/users/henriksjodahl/followers","following_url":"https://api.github.com/users/henriksjodahl/following{/other_user}","gists_url":"https://api.github.com/users/henriksjodahl/gists{/gist_id}","starred_url":"https://api.github.com/users/henriksjodahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henriksjodahl/subscriptions","organizations_url":"https://api.github.com/users/henriksjodahl/orgs","repos_url":"https://api.github.com/users/henriksjodahl/repos","events_url":"https://api.github.com/users/henriksjodahl/events{/privacy}","received_events_url":"https://api.github.com/users/henriksjodahl/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T11:19:18Z","updated_at":"2016-02-23T11:19:18Z","body":"Alright, i've made som changes to the ServiceProvider. Still getting the same exception though\r\n```\r\nApp::resolving('payum.builder', function(PayumBuilder $payumBuilder) {\r\n\t$payumBuilder\r\n\t\t->addGateway('offline',[\r\n\t\t\t'factory' => 'offline',\r\n\t\t])\r\n\t\t->addGateway('klarna_checkout', [\r\n\t\t\t'factory'     => 'klarna_checkout',\r\n\t\t\t'merchant_id' => 'test',\r\n\t\t\t'secret'      => 'test',\r\n\t\t\t'sandbox'     => true,\r\n\t\t\t'terms_uri'   => '',\r\n\t\t])\r\n\t\t->setTokenStorage(new EloquentStorage(PaymentToken::class))\r\n\t\t->addStorage(Payment::class, new EloquentStorage(Payment::class))\r\n\t;\r\n});\r\n```"}}