Skip to content

I dont understand why this error happed: OrderContext is in an invalid state #259

@powerzd

Description

@powerzd

PayPal Android SDK Version

1.3.0

Environment

Sandbox

Android Version & Device

Any device

PayPal dependencies

com.paypal.android:paypal-native-payments:1.3.0

Describe the bug

15:18:36.867 nxoOrderContext D OrderContext is in an invalid state: OrderContext(orderId=6MN107053U5186747, captureUrl=https://api.sandbox.paypal.com/v2/checkout/orders/6MN107053U5186747/capture, authorizeUrl=https://api.sandbox.paypal.com/v2/checkout/orders/6MN107053U5186747/authorize, patchUrl=https://api.sandbox.paypal.com/v2/checkout/orders/6MN107053U5186747)

To reproduce

  1. call paypal sdk in Page A,everything is OK
  2. cancel payapl, then start page B,finish page A
  3. start page A from page B, then call paypal, failed, and show error: OrderContext is in an invalid state
  4. but in step 2 if start page C first, then start page B, finish page A , everything is OK. I dont know why, what i should do to solve this problem.

Expected behavior

the problem is shown in To reproduce module, please help me.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions