payload: {"action":"opened","issue":{"url":"https://api.github.com/repos/zeddz92/react-native-paypal/issues/6","repository_url":"https://api.github.com/repos/zeddz92/react-native-paypal","labels_url":"https://api.github.com/repos/zeddz92/react-native-paypal/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/zeddz92/react-native-paypal/issues/6/comments","events_url":"https://api.github.com/repos/zeddz92/react-native-paypal/issues/6/events","html_url":"https://github.com/zeddz92/react-native-paypal/issues/6","id":411694454,"node_id":"MDU6SXNzdWU0MTE2OTQ0NTQ=","number":6,"title":"iOS Payment intent always set to 'sale'","user":{"login":"grahamyesfit","id":24514431,"node_id":"MDQ6VXNlcjI0NTE0NDMx","avatar_url":"https://avatars1.githubusercontent.com/u/24514431?v=4","gravatar_id":"","url":"https://api.github.com/users/grahamyesfit","html_url":"https://github.com/grahamyesfit","followers_url":"https://api.github.com/users/grahamyesfit/followers","following_url":"https://api.github.com/users/grahamyesfit/following{/other_user}","gists_url":"https://api.github.com/users/grahamyesfit/gists{/gist_id}","starred_url":"https://api.github.com/users/grahamyesfit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grahamyesfit/subscriptions","organizations_url":"https://api.github.com/users/grahamyesfit/orgs","repos_url":"https://api.github.com/users/grahamyesfit/repos","events_url":"https://api.github.com/users/grahamyesfit/events{/privacy}","received_events_url":"https://api.github.com/users/grahamyesfit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-02-19T00:29:57Z","updated_at":"2019-02-19T00:29:57Z","closed_at":null,"author_association":"NONE","body":"**Versions**\r\n```\r\n\"react-native-paypal-lib\": \"github:zeddz92/react-native-paypal#react-native\",\r\n\"react\": \"^16.8.1\",\r\n\"react-native\": \"^0.57.8\"\r\n```\r\nPlease note I'm on the `react-native` branch.\r\n\r\n**Issue**\r\n\r\nWhen I create an authorization on iOS, the response I receive from `RNPaypal.paymentRequest` indicates that the payment was processed as a `sale`, not an `authorize` as desired.\r\n\r\nHere is the response:\r\n```\r\nresponse: \r\n   { intent: 'sale',\r\n     state: 'approved',\r\n     create_time: '2019-02-19T00:14:14Z',\r\n     id: '<PAYID>' }\r\n```\r\nIn addition, the payment shows up in my Sandbox as an executed payment, not a pending authorization, as desired.\r\n\r\nHere is the code:\r\n```\r\nimport RNPaypal from 'react-native-paypal-lib';\r\n\r\n\t\tRNPaypal.paymentRequest({\r\n\t\t\tclientId: '<My Client Id>',\r\n\t\t\tenvironment: RNPaypal.ENVIRONMENT.SANDBOX,\r\n\t\t\tintent: RNPaypal.INTENT.AUTHORIZE,\r\n\t\t\tprice: 30,\r\n\t\t\tcurrency: 'USD',\r\n\t\t\tdescription: 'Description',\r\n\t\t\tacceptCreditCards: false\r\n\t\t}).then(data => {\r\n                        //code\r\n\t\t}).catch(error => {\r\n                        //code\r\n\t\t});\r\n```\r\nIt appears that the `intent` property is being ignored, and it's defaulting to `sale`.\r\n\r\nPlease note that this code works perfectly on Android.\r\n\r\nIn addition, there are differences in how the response is formatted between iOS and Android. In the promise on Android, `data.response` is a Json string and on iOS, it's a JavaScript object. I did the following as a workaround, but it isn't ideal:\r\n\r\n```\r\nconst response = Platform.OS === 'android' ? JSON.parse(data.response) : data.response;\r\n```"}}
other: {"actor":{"display_login":"grahamyesfit"}}