{"action":"created","issue":{"url":"https://api.github.com/repos/anouarabdsslm/laravel-paypalpayment/issues/110","repository_url":"https://api.github.com/repos/anouarabdsslm/laravel-paypalpayment","labels_url":"https://api.github.com/repos/anouarabdsslm/laravel-paypalpayment/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/anouarabdsslm/laravel-paypalpayment/issues/110/comments","events_url":"https://api.github.com/repos/anouarabdsslm/laravel-paypalpayment/issues/110/events","html_url":"https://github.com/anouarabdsslm/laravel-paypalpayment/issues/110","id":229396204,"number":110,"title":"Shipping address as well as normal address","user":{"login":"nickbluestone98","id":20666118,"avatar_url":"https://avatars2.githubusercontent.com/u/20666118?v=3","gravatar_id":"","url":"https://api.github.com/users/nickbluestone98","html_url":"https://github.com/nickbluestone98","followers_url":"https://api.github.com/users/nickbluestone98/followers","following_url":"https://api.github.com/users/nickbluestone98/following{/other_user}","gists_url":"https://api.github.com/users/nickbluestone98/gists{/gist_id}","starred_url":"https://api.github.com/users/nickbluestone98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickbluestone98/subscriptions","organizations_url":"https://api.github.com/users/nickbluestone98/orgs","repos_url":"https://api.github.com/users/nickbluestone98/repos","events_url":"https://api.github.com/users/nickbluestone98/events{/privacy}","received_events_url":"https://api.github.com/users/nickbluestone98/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-17T15:36:00Z","updated_at":"2017-05-22T17:34:47Z","closed_at":null,"body":"Hello,\r\n\r\nThe API is working great for me. I just want to know if there is anyway to set a shipping address separately to the billing address? I really need this functionality! The below code works for address great, but if users ship to a different address how can I achieve this?\r\n\r\n```\r\n// ### Address\r\n// Base Address object used as shipping or billing\r\n// address in a payment. [Optional]\r\n$addr = Paypalpayment::address();\r\n$addr->setLine1($billing_address1);\r\n$addr->setLine2($billing_address2);\r\n$addr->setCity($billing_city_district);\r\n$addr->setPostalCode($billing_postcode);\r\n$addr->setCountryCode('GB');\r\n$addr->setPhone($billing_contact_number);\t\r\n```\r\nJust to add I know you can do it through the API, just not sure if your Laravel extension supports it with a specific function?\r\n\r\nYou can do this with the default API syntax:\r\n\r\n```\r\n$shipping_address = new ShippingAddress();\r\n$shipping_address->setCity('City');\r\n$shipping_address->setCountryCode('AR');\r\n$shipping_address->setPostalCode('200');\r\n$shipping_address->setLine1('Adress Line1');\r\n$shipping_address->setState('State');\r\n$shipping_address->setRecipientName('Recipient Name');\r\n\r\n$itemList->setShippingAddress($shipping_address);\r\n```\r\nCan you let me know if your API supports it?\r\n\r\nKind Regards,\r\n\r\nNick."},"comment":{"url":"https://api.github.com/repos/anouarabdsslm/laravel-paypalpayment/issues/comments/303168503","html_url":"https://github.com/anouarabdsslm/laravel-paypalpayment/issues/110#issuecomment-303168503","issue_url":"https://api.github.com/repos/anouarabdsslm/laravel-paypalpayment/issues/110","id":303168503,"user":{"login":"anouarabdsslm","id":2453950,"avatar_url":"https://avatars3.githubusercontent.com/u/2453950?v=3","gravatar_id":"","url":"https://api.github.com/users/anouarabdsslm","html_url":"https://github.com/anouarabdsslm","followers_url":"https://api.github.com/users/anouarabdsslm/followers","following_url":"https://api.github.com/users/anouarabdsslm/following{/other_user}","gists_url":"https://api.github.com/users/anouarabdsslm/gists{/gist_id}","starred_url":"https://api.github.com/users/anouarabdsslm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anouarabdsslm/subscriptions","organizations_url":"https://api.github.com/users/anouarabdsslm/orgs","repos_url":"https://api.github.com/users/anouarabdsslm/repos","events_url":"https://api.github.com/users/anouarabdsslm/events{/privacy}","received_events_url":"https://api.github.com/users/anouarabdsslm/received_events","type":"User","site_admin":false},"created_at":"2017-05-22T17:34:47Z","updated_at":"2017-05-22T17:34:47Z","body":"@nickbluestone98  thanks for posting the solution here. yes sometimes you just need to check the package core to get answers."}}
{"actor":{"display_login":"anouarabdsslm"}}