paypal/PayPal-Cordova-Plugin

Session Expired (renderSinglePaymentUI)

varadig opened this issue · 9 comments

I tried everything

create new app
create sandbox user (buyer/seller)

but I always got
Session Expired
Please log in again to PayPal.

I read somewhere this is because the incorrect sandbox user.
But I creat a lot of time a new user/app...etc

How can I debug to find out what happend

(I'm new in paypal)

thanks

Here is the Android log:


D/ViewRootImpl@ee88f52[LoginActivity]: ViewPostImeInputStage processPointer 0
D/ViewRootImpl@ee88f52[LoginActivity]: ViewPostImeInputStage processPointer 1
D/ViewRootImpl@3e093b9[Authenticating]: ThreadedRenderer.create() translucent=true
D/InputTransport: Input channel constructed: fd=149
D/ViewRootImpl@3e093b9[Authenticating]: setView = DecorView@db773fe[Authenticating] touchMode=true
V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@5edb275 nm : hu.go2design.shop ic=com.android.internal.widget.EditableInputConnection@e12d20a
I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport: Input channel constructed: fd=152
D/InputTransport: Input channel destroyed: fd=135
V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@41404d6 nm : hu.go2design.shop ic=com.android.internal.widget.EditableInputConnection@9837357
I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport: Input channel constructed: fd=146
D/InputTransport: Input channel destroyed: fd=152
D/InputMethodManager: HSI from window - flag : 0 Pid : 22750
D/ViewRootImpl@3e093b9[Authenticating]: dispatchAttachedToWindow
D/ViewRootImpl@3e093b9[Authenticating]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[168,550][1032,793] result=0x27 surface={isValid=true -981510144} surfaceGenerationChanged=true
D/ViewRootImpl@3e093b9[Authenticating]: mHardwareRenderer.initialize() mSurface={isValid=true -981510144} hwInitialized=true
D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000,  [864x243]-format:1
D/ViewRootImpl@3e093b9[Authenticating]: MSG_WINDOW_FOCUS_CHANGED 1
D/ViewRootImpl@3e093b9[Authenticating]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true -981510144}
D/ViewRootImpl@3e093b9[Authenticating]: MSG_RESIZED_REPORT: frame=Rect(168, 550 - 1032, 793) ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
W/IInputConnectionWrapper: getCursorCapsMode on inactive InputConnection
D/ViewRootImpl@ee88f52[LoginActivity]: MSG_WINDOW_FOCUS_CHANGED 0
W/IInputConnectionWrapper: getTextBeforeCursor on inactive InputConnection
W/IInputConnectionWrapper: getTextAfterCursor on inactive InputConnection
W/IInputConnectionWrapper: getSelectedText on inactive InputConnection
D/ViewRootImpl@ee88f52[LoginActivity]: MSG_RESIZED: frame=Rect(0, 0 - 1200, 1920) ci=Rect(0, 36 - 0, 0) vi=Rect(0, 36 - 0, 0) or=1
D/ViewRootImpl@ee88f52[LoginActivity]: Relayout returned: oldFrame=[0,0][1200,1920] newFrame=[0,0][1200,1920] result=0x1 surface={isValid=true -981512192} surfaceGenerationChanged=false
D/ScrollView:  onsize change changed 
W/paypal.sdk: fi SN:13 PayPal Debug-ID: 64d1e3f52a8c2 [sandbox, 2.15.3;release]
D/ViewRootImpl@aa6d8ae[Processing]: ThreadedRenderer.create() translucent=true
D/InputTransport: Input channel constructed: fd=138
D/ViewRootImpl@aa6d8ae[Processing]: setView = DecorView@d45a0af[Processing] touchMode=true
D/ViewRootImpl@eb3026a[PaymentConfirmActivity]: Relayout returned: oldFrame=[0,0][1200,1920] newFrame=[0,0][1200,1920] result=0x7 surface={isValid=true -1047998464} surfaceGenerationChanged=true
D/ViewRootImpl@eb3026a[PaymentConfirmActivity]: mHardwareRenderer.initialize() mSurface={isValid=true -1047998464} hwInitialized=true
D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000,  [1200x1920]-format:1
D/ViewRootImpl@aa6d8ae[Processing]: dispatchAttachedToWindow
D/ViewRootImpl@aa6d8ae[Processing]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[168,856][1032,1099] result=0x27 surface={isValid=true -992129024} surfaceGenerationChanged=true
D/ViewRootImpl@aa6d8ae[Processing]: mHardwareRenderer.initialize() mSurface={isValid=true -992129024} hwInitialized=true
D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000,  [864x243]-format:1
D/ViewRootImpl@aa6d8ae[Processing]: MSG_WINDOW_FOCUS_CHANGED 1
D/ViewRootImpl@aa6d8ae[Processing]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true -992129024}
D/ViewRootImpl@aa6d8ae[Processing]: MSG_RESIZED_REPORT: frame=Rect(168, 856 - 1032, 1099) ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
D/ViewRootImpl@3e093b9[Authenticating]: MSG_WINDOW_FOCUS_CHANGED 0
D/ViewRootImpl@ee88f52[LoginActivity]: mHardwareRenderer.destroy()#1
D/ViewRootImpl@ee88f52[LoginActivity]: Relayout returned: oldFrame=[0,0][1200,1920] newFrame=[0,0][1200,1920] result=0x5 surface={isValid=false 0} surfaceGenerationChanged=true
D/ViewRootImpl@3e093b9[Authenticating]: mHardwareRenderer.destroy()#1
D/ViewRootImpl@3e093b9[Authenticating]: Relayout returned: oldFrame=[168,856][1032,1099] newFrame=[168,856][1032,1099] result=0x5 surface={isValid=false 0} surfaceGenerationChanged=true
D/ViewRootImpl@3e093b9[Authenticating]: mHardwareRenderer.destroy()#4
D/ViewRootImpl@3e093b9[Authenticating]: dispatchDetachedFromWindow
D/InputTransport: Input channel destroyed: fd=149
D/TextView: SYANI: Clipboard API is calling: clearFilter()
D/TextView: SYANI: Clipboard API is calling: unregisterClipboardEventListener()
D/TextView: SYANI: Clipboard API is calling: clearFilter()
D/TextView: SYANI: Clipboard API is calling: unregisterClipboardEventListener()
D/TextView: SYANI: Clipboard API is calling: clearFilter()
D/TextView: SYANI: Clipboard API is calling: unregisterClipboardEventListener()
D/ViewRootImpl@ee88f52[LoginActivity]: mHardwareRenderer.destroy()#4
D/ViewRootImpl@ee88f52[LoginActivity]: dispatchDetachedFromWindow
D/InputTransport: Input channel destroyed: fd=131
W/paypal.sdk: fc SN:15 PayPal Debug-ID: b1f218b69dd1 [sandbox, 2.15.3;release]
E/paypal.sdk: request failure with http statusCode:401,exception:
E/paypal.sdk: Exception parsing server response
              org.json.JSONException: End of input at character 0 of 
                  at org.json.JSONTokener.syntaxError(JSONTokener.java:449)
                  at org.json.JSONTokener.nextValue(JSONTokener.java:97)
                  at com.paypal.android.sdk.cs.m(Unknown Source)
                  at com.paypal.android.sdk.fc.d(Unknown Source)
                  at com.paypal.android.sdk.ce.a(Unknown Source)
                  at com.paypal.android.sdk.ci.a(Unknown Source)
                  at com.paypal.android.sdk.cm.onResponse(Unknown Source)
                  at okhttp3.RealCall$AsyncCall.execute(RealCall.java:135)
                  at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
                  at java.lang.Thread.run(Thread.java:762)
E/paypal.sdk: request failed with server response:
E/paypal.sdk: INTERNAL_SERVER_ERROR
D/ViewRootImpl@aa6d8ae[Processing]: mHardwareRenderer.destroy()#4
D/ViewRootImpl@aa6d8ae[Processing]: dispatchDetachedFromWindow
D/InputTransport: Input channel destroyed: fd=138
D/ViewRootImpl@31122e5[PaymentConfirmActivity]: ThreadedRenderer.create() translucent=true
D/InputTransport: Input channel constructed: fd=131
D/ViewRootImpl@31122e5[PaymentConfirmActivity]: setView = DecorView@90bd1ba[] touchMode=true
D/ViewRootImpl@31122e5[PaymentConfirmActivity]: dispatchAttachedToWindow
D/ViewRootImpl@31122e5[PaymentConfirmActivity]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[168,827][1032,1128] result=0x27 surface={isValid=true -981510144} surfaceGenerationChanged=true
D/ViewRootImpl@31122e5[PaymentConfirmActivity]: mHardwareRenderer.initialize() mSurface={isValid=true -981510144} hwInitialized=true
D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000,  [864x301]-format:1
D/ScrollView:  onsize change changed 
D/ViewRootImpl@eb3026a[PaymentConfirmActivity]: MSG_WINDOW_FOCUS_CHANGED 1
D/ViewRootImpl@eb3026a[PaymentConfirmActivity]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true -1047998464}
V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@3cb286b nm : hu.go2design.shop ic=null
I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport: Input channel constructed: fd=138
D/InputTransport: Input channel destroyed: fd=146
E/ViewRootImpl: sendUserActionEvent() returned.
D/ViewRootImpl@31122e5[PaymentConfirmActivity]: MSG_WINDOW_FOCUS_CHANGED 1
D/ViewRootImpl@31122e5[PaymentConfirmActivity]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true -981510144}
D/ViewRootImpl@31122e5[PaymentConfirmActivity]: MSG_RESIZED_REPORT: frame=Rect(168, 827 - 1032, 1128) ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
W/IInputConnectionWrapper: finishComposingText on inactive InputConnection
D/ViewRootImpl@eb3026a[PaymentConfirmActivity]: MSG_WINDOW_FOCUS_CHANGED 0

E/paypal.sdk: request failure with http statusCode:401,exception:
E/paypal.sdk: Exception parsing server response
              org.json.JSONException: End of input at character 0 of 
                  at org.json.JSONTokener.syntaxError(JSONTokener.java:449)
                  at org.json.JSONTokener.nextValue(JSONTokener.java:97)
                  at com.paypal.android.sdk.cs.m(Unknown Source)
                  at com.paypal.android.sdk.fc.d(Unknown Source)
                  at com.paypal.android.sdk.ce.a(Unknown Source)
                  at com.paypal.android.sdk.ci.a(Unknown Source)
                  at com.paypal.android.sdk.cm.onResponse(Unknown Source)
                  at okhttp3.RealCall$AsyncCall.execute(RealCall.java:135)
                  at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
                  at java.lang.Thread.run(Thread.java:762)
E/paypal.sdk: request failed with server response:
E/paypal.sdk: INTERNAL_SERVER_ERROR

On PayPalEnvironmentNoNetwork is working, but not on PayPalEnvironmentSandbox

Tried to replace clientID from this sample and its working:
https://developer.paypal.com/demo/checkout/#/pattern/pay

Whats wrong with my clientID

Same here, it's working with the keys from one of my customers, but isn't working with the keys from two of my customers. Both live and sandbox.

Okay, I've tracked it down to here: https://github.com/paypal/paypal-checkout/issues/703

There's an issue with REST API charging to some recently created PayPal accounts, reported since march and not addressed by PayPal. Incredible :O

PayPal Mobile SDKs are Deprecated. The APIs powering them will remain operational long enough for merchants to migrate, but the SDKs themselves will no longer be updated. Please use Braintree Direct in supported countries. In other countries, use Express Checkout and choose the Braintree SDK integration option.