{"action":"opened","issue":{"url":"https://api.github.com/repos/paypal/PayPal-Ruby-SDK/issues/152","labels_url":"https://api.github.com/repos/paypal/PayPal-Ruby-SDK/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/paypal/PayPal-Ruby-SDK/issues/152/comments","events_url":"https://api.github.com/repos/paypal/PayPal-Ruby-SDK/issues/152/events","html_url":"https://github.com/paypal/PayPal-Ruby-SDK/issues/152","id":105765631,"number":152,"title":"Pappal payment update issue","user":{"login":"Akshatha357","id":8577503,"avatar_url":"https://avatars.githubusercontent.com/u/8577503?v=3","gravatar_id":"","url":"https://api.github.com/users/Akshatha357","html_url":"https://github.com/Akshatha357","followers_url":"https://api.github.com/users/Akshatha357/followers","following_url":"https://api.github.com/users/Akshatha357/following{/other_user}","gists_url":"https://api.github.com/users/Akshatha357/gists{/gist_id}","starred_url":"https://api.github.com/users/Akshatha357/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Akshatha357/subscriptions","organizations_url":"https://api.github.com/users/Akshatha357/orgs","repos_url":"https://api.github.com/users/Akshatha357/repos","events_url":"https://api.github.com/users/Akshatha357/events{/privacy}","received_events_url":"https://api.github.com/users/Akshatha357/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-10T09:11:09Z","updated_at":"2015-09-10T09:11:09Z","closed_at":null,"body":"After creating payment through paypal when I updating shipping address. I got the following errors.\r\n\r\n     shipping_address = {\r\n      line1: 'Address Line 1',\r\n      line2: 'Address Line 2',\r\n      city: 'Mumbai',\r\n      state: 'Maharashtra',\r\n      postal_code: '400001',\r\n      country_code: 'USD',\r\n      phone: '123456789',\r\n      recipient_name: 'TestName'\r\n    }\r\n    if @payment.create\r\n      # Redirect the user to given approval url\r\n      @redirect_url = @payment.links.find{|v| v.method == \"REDIRECT\" }.href\r\n      logger.info \"Payment[#{@payment.id}]\"\r\n      logger.info \"Redirect: #{@redirect_url}\"\r\n\r\n      patch = {\r\n                op: \"add\",\r\n                path: \"/transactions/0/item_list/shipping_address\",\r\n                value: shipping_address\r\n              }\r\n      patch_request = PatchRequest.new(patch)\r\n      if @payment.update( patch )\r\n        logger.info \"Payment[#{@payment.id}]\"\r\n        logger.info \"Redirect Shippment: #{@redirect_url}\"\r\n      else\r\n        logger.error @payment.error.inspect\r\n      end\r\n\r\nundefined method `op=' for #<PaypalExpress::PatchRequest:0x00000006925af8>\r\nundefined method `path=' for #<PaypalExpress::PatchRequest:0x00000006925af8>\r\nundefined method `value=' for #<PaypalExpress::PatchRequest:0x00000006925af8>\r\nundefined method `op=' for #<PayPal::SDK::REST::DataTypes::PatchRequest:0x00000005f73a50>\r\nundefined method `path=' for #<PayPal::SDK::REST::DataTypes::PatchRequest:0x00000005f73a50>\r\nundefined method `value=' for #<PayPal::SDK::REST::DataTypes::PatchRequest:0x00000005f73a50>\r\nPayPal-Request-Id: 08842095-f321-4301-84af-3eb9ab8c84a8\r\nRequest[patch]: https://api.sandbox.paypal.com/v1/payments/payment/PAY-4X422040J0023081RKXYUJTQ\r\nRequest.body={}\trequest.header={\"X-PAYPAL-SANDBOX-EMAIL-ADDRESS\"=>\"test@test.com\", \"Authorization\"=>\"Bearer A015nP.dndfymdfgyuyfgiryhnsdjmf\", \"Content-Type\"=>\"application/json\", \"User-Agent\"=>\"PayPalSDK/PayPal-Ruby-SDK 1.3.3 (paypal-sdk-core 1.3.3; ruby 2.2.2p95-x86_64-linux)\", \"PayPal-Request-Id\"=>\"08842095-f321-4301-436456-84a8\"}\r\n\r\n\r\nResponse[400]: Bad Request, Duration: 5.622s\r\nResponse.body={\"name\":\"MALFORMED_REQUEST\",\"message\":\"Incoming JSON request does not map to API request\",\"information_link\":\"https://developer.paypal.com/webapps/developer/docs/api/#MALFORMED_REQUEST\",\"debug_id\":\"ea5e654612a58\"}\tResponse.header={\"date\"=>[\"Thu, 10 Sep 2015 08:52:36 GMT\"], \"server\"=>[\"Apache\"], \"proxy_server_info\"=>[\"host=slcsbplatformapiserv3002.slc.paypal.com;threadId=131999\"], \"paypal-debug-id\"=>[\"ea5e654612a58\"], \"correlation-id\"=>[\"ea5e654612a58\"], \"content-language\"=>[\"*\"], \"connection\"=>[\"close\", \"close\"], \"content-length\"=>[\"213\"], \"set-cookie\"=>[\"X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D880%26app%3Dplatformapiserv%26TIME%3D3561288021; domain=.paypal.com; path=/; Secure; HttpOnly\", \"X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT\"], \"vary\"=>[\"Authorization\"], \"content-type\"=>[\"application/json\"]}\r\n"}}