{"action":"created","issue":{"url":"https://api.github.com/repos/srmklive/laravel-paypal/issues/190","repository_url":"https://api.github.com/repos/srmklive/laravel-paypal","labels_url":"https://api.github.com/repos/srmklive/laravel-paypal/issues/190/labels{/name}","comments_url":"https://api.github.com/repos/srmklive/laravel-paypal/issues/190/comments","events_url":"https://api.github.com/repos/srmklive/laravel-paypal/issues/190/events","html_url":"https://github.com/srmklive/laravel-paypal/issues/190","id":306234985,"number":190,"title":"CUSTOM DATA Express Checkout","user":{"login":"cyberkishor","id":2122140,"avatar_url":"https://avatars1.githubusercontent.com/u/2122140?v=4","gravatar_id":"","url":"https://api.github.com/users/cyberkishor","html_url":"https://github.com/cyberkishor","followers_url":"https://api.github.com/users/cyberkishor/followers","following_url":"https://api.github.com/users/cyberkishor/following{/other_user}","gists_url":"https://api.github.com/users/cyberkishor/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberkishor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberkishor/subscriptions","organizations_url":"https://api.github.com/users/cyberkishor/orgs","repos_url":"https://api.github.com/users/cyberkishor/repos","events_url":"https://api.github.com/users/cyberkishor/events{/privacy}","received_events_url":"https://api.github.com/users/cyberkishor/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-18T12:13:21Z","updated_at":"2018-03-18T16:31:19Z","closed_at":"2018-03-18T16:26:55Z","author_association":"NONE","body":"Hi, \r\n\r\nI want to add custom data during  checkout, As Paypal documentation said add `custom` to data but it's not working for me sample code below: \r\n\r\n\r\n```\r\nprotected function getCheckoutData($recurring = false, $user = null)\r\n    {\r\n        $plan \t= Req::session()->get('plan', 1);\r\n        $price = Req::session()->get(\"stripeTotal\", 0);\r\n        $planDetail = $this->getPlanDetail($plan);\r\n        $planDetail = $planDetail[0];\r\n\r\n        $data = [];\r\n\r\n        $order_id = $user->email;\r\n\r\n        \r\n        $data['items'] = [\r\n            [\r\n                'name'  => $planDetail,\r\n                'price' => $price,\r\n                'qty'   => 1,\r\n            ],\r\n        ];\r\n\r\n        $data['return_url'] = url('/paypal/ec-checkout-success?mode=recurring');\r\n        $data['subscription_desc'] = $planDetail.' Subscription for '.config('paypal.invoice_prefix').' #'.$order_id;\r\n    \r\n\r\n        $data['invoice_id'] = $order_id;\r\n        $data['invoice_description'] = \"Order #$order_id Invoice\";\r\n        $data['cancel_url'] = url('/');\r\n\r\n        $data['custom'] = \"xxxxx kishor\";\r\n\r\n        $data['amount'] = $price;\r\n        $data['total'] = $price;\r\n\r\n        return $data;\r\n    }\r\n```\r\n\r\nCan you suggest me what is wrong with me? \r\n\r\nThanks in Advance\r\n"},"comment":{"url":"https://api.github.com/repos/srmklive/laravel-paypal/issues/comments/374013476","html_url":"https://github.com/srmklive/laravel-paypal/issues/190#issuecomment-374013476","issue_url":"https://api.github.com/repos/srmklive/laravel-paypal/issues/190","id":374013476,"user":{"login":"cyberkishor","id":2122140,"avatar_url":"https://avatars1.githubusercontent.com/u/2122140?v=4","gravatar_id":"","url":"https://api.github.com/users/cyberkishor","html_url":"https://github.com/cyberkishor","followers_url":"https://api.github.com/users/cyberkishor/followers","following_url":"https://api.github.com/users/cyberkishor/following{/other_user}","gists_url":"https://api.github.com/users/cyberkishor/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberkishor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberkishor/subscriptions","organizations_url":"https://api.github.com/users/cyberkishor/orgs","repos_url":"https://api.github.com/users/cyberkishor/repos","events_url":"https://api.github.com/users/cyberkishor/events{/privacy}","received_events_url":"https://api.github.com/users/cyberkishor/received_events","type":"User","site_admin":false},"created_at":"2018-03-18T16:31:19Z","updated_at":"2018-03-18T16:31:19Z","author_association":"NONE","body":"Thank You"}}
{"actor":{"display_login":"cyberkishor"}}