{"action":"closed","issue":{"url":"https://api.github.com/repos/paypal/PayPal-Android-SDK/issues/372","repository_url":"https://api.github.com/repos/paypal/PayPal-Android-SDK","labels_url":"https://api.github.com/repos/paypal/PayPal-Android-SDK/issues/372/labels{/name}","comments_url":"https://api.github.com/repos/paypal/PayPal-Android-SDK/issues/372/comments","events_url":"https://api.github.com/repos/paypal/PayPal-Android-SDK/issues/372/events","html_url":"https://github.com/paypal/PayPal-Android-SDK/issues/372","id":190701036,"number":372,"title":"solved","user":{"login":"rodrigobertet","id":3964721,"avatar_url":"https://avatars.githubusercontent.com/u/3964721?v=3","gravatar_id":"","url":"https://api.github.com/users/rodrigobertet","html_url":"https://github.com/rodrigobertet","followers_url":"https://api.github.com/users/rodrigobertet/followers","following_url":"https://api.github.com/users/rodrigobertet/following{/other_user}","gists_url":"https://api.github.com/users/rodrigobertet/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigobertet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigobertet/subscriptions","organizations_url":"https://api.github.com/users/rodrigobertet/orgs","repos_url":"https://api.github.com/users/rodrigobertet/repos","events_url":"https://api.github.com/users/rodrigobertet/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigobertet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-21T12:21:02Z","updated_at":"2016-11-21T13:01:16Z","closed_at":"2016-11-21T13:01:16Z","body":"### Required Information\r\n\r\n- Mode (Mock/Sandbox/Live): Sandbox (in Mock it works)\r\n- PayPal Android SDK Version: compile('com.paypal.sdk:paypal-android-sdk:2.15.1') {\r\n        exclude group: 'io.card'\r\n    }\r\n- Android Version and Device Xiaomi Redmi Note 2 Android 5.0.2:\r\n- PayPal-Debug-ID(s) (from any logs): \r\n\r\n### Issue Description\r\nI am developing with Android Studio in native. When I try to start Service the app crashes and Log gives me this error:\r\n\r\njava.lang.RuntimeException: Unable to start service com.paypal.android.sdk.payments.PayPalService@38b6e1f7 with Intent { cmp=com.apelucy.apelucy/com.paypal.android.sdk.payments.PayPalService (has extras) }: java.lang.RuntimeException: Service extras invalid.  Please check the docs.\r\n                                                                       at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3063)\r\n                                                                       at android.app.ActivityThread.access$2100(ActivityThread.java:169)\r\n                                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1521)\r\n                                                                       at android.os.Handler.dispatchMessage(Handler.java:111)\r\n                                                                       at android.os.Looper.loop(Looper.java:194)\r\n                                                                       at android.app.ActivityThread.main(ActivityThread.java:5546)\r\n                                                                       at java.lang.reflect.Method.invoke(Native Method)\r\n                                                                       at java.lang.reflect.Method.invoke(Method.java:372)\r\n                                                                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:967)\r\n                                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)\r\n                                                                    Caused by: java.lang.RuntimeException: Service extras invalid.  Please check the docs.\r\n                                                                       at com.paypal.android.sdk.payments.PayPalService.a(Unknown Source)\r\n                                                                       at com.paypal.android.sdk.payments.PayPalService.onStartCommand(Unknown Source)\r\n                                                                       at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3046)\r\n                                                                       at android.app.ActivityThread.access$2100(ActivityThread.java:169) \r\n                                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1521) \r\n                                                                       at android.os.Handler.dispatchMessage(Handler.java:111) \r\n                                                                       at android.os.Looper.loop(Looper.java:194) \r\n                                                                       at android.app.ActivityThread.main(ActivityThread.java:5546) \r\n                                                                       at java.lang.reflect.Method.invoke(Native Method) \r\n                                                                       at java.lang.reflect.Method.invoke(Method.java:372) \r\n                                                                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:967) \r\n                                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762) \r\n\r\nThis is my code:\r\n\r\n    public static PayPalConfiguration paypalConfig;\r\n    @Override\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        paypalConfig= new PayPalConfiguration()\r\n                .environment(PayPalConfiguration.ENVIRONMENT_SANDBOX)\r\n                .clientId(MyApplication.getAppContext().getString(R.string.paypal_client_id))\r\n                .acceptCreditCards(false)\r\n                .rememberUser(true);\r\n\r\n\r\n        Bundle b = getIntent().getExtras();\r\n        precioTotal = b.getFloat(PRECIO_TOTAL);\r\n        orderId = b.getInt(ORDER_ID);\r\n\r\n        Intent intent = new Intent(this, PayPalService.class);\r\n        intent.putExtra(PayPalService.EXTRA_PAYPAL_CONFIGURATION, paypalConfig);\r\n        startService(intent);\r\n    }\r\n"}}
{"actor":{"display_login":"rodrigobertet"}}