Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐞] Canadian orders are succeeding and being onApprove'd, but the transaction is not approved on PayPal's side #159

Open
quintonpryce opened this issue Oct 13, 2023 · 0 comments
Labels

Comments

@quintonpryce
Copy link

🐞 Describe the Bug

Canadian orders are succeeding in the SDK with a callback to onApprove but the transaction is not approved on PayPal's side when we try to capture the order id.

🌍 Environment

  • iOS version: - 17 & 16
  • SDK version (Checkout.version): - I have tried the absolute latest commit and the 1.1 release.

➕ Additional Context

Order ID Examples from our users:

5KY95472DS066424H
0UF80665X0935143X
1JL50569CK827993E
1B070064H0505724X

iOS Approval object:

(PayPalCheckout.Approval) 0x0000000283a68b60 {
  ObjectiveC.NSObject = {
    isa = PPCApproval
  }
  data = 0x0000000280e29b00 {
    ObjectiveC.NSObject = {
      isa = PPCApprovalData
    }
    cart = some {
      payload_data_0 = 0x0000000164443f00 -> 0x0000000107a8f278 PayPalCheckout`block_descriptor.306 + 96
      payload_data_1 = 0x0000000000000000
      payload_data_2 = 0x0000000000000000
      metadata = 0x0000000107a947a8
      wtable = 0x0000000107a94a08 PayPalCheckout`type metadata for PayPalCheckout.FPTIEventType + 5768
    }
    buyer = some {
      payload_data_0 = 0x0000000280e2a880 -> 0x0000000107a8f598 PayPalCheckout`block_descriptor.406 + 56
      payload_data_1 = 0x0000000000000000
      payload_data_2 = 0x0000000000000000
      metadata = 0x0000000107a84a98
      wtable = 0x0000000107a84c40 PayPalCheckout`property descriptor for PayPalCheckout.AuthorizeActionSuccess.data : PayPalCheckout.OrderActionData + 552
    }
    payerID = "TKQSBXKB6VVW8"
    ecToken = "08T10450YL579260R"
    billingToken = nil
    intent = capture
    returnURL = nil
    paymentID = nil
    vaultData = nil
    correlationIDs = 0x0000000280c7c370 {
      ObjectiveC.NSObject = {
        isa = PPCCorrelationIDs
      }
      fundingEligibilityDebugID = nil
      eligibilityDebugID = "f725026a98b26"
      updateClientConfigDebugID = "f92434972c7e5"
      lsatUpgradeDebugID = nil
      fetchPayloadDebugID = "f725026da54e7"
      fetchCartDebugIDs = 0 values {}
      currencyConversionDebugID = nil
      completeSCADebugID = nil
      finishCheckoutDebugID = "f285951cf6cb7"
      riskCorrelationID = "08T10450YL579260R"
      sessionIDs = 0x0000000283416760 {
        ObjectiveC.NSObject = {
          isa = PPCSessionIDs
        }
        sdkSessionID = "8SI4YHJ4I1d_79m8aykaA1QAmQXYuSQKQ-NZOLRePjE"
        orderSessionID = "--2vm9m6_gKBT_jYIJvUAqjERWzSyD8s33JR4YtOoqU"
      }
    }
  }
  actions = 0x0000000283a68b80 {
    ObjectiveC.NSObject = {
      isa = PPCApprovalActions
    }
    data = 0x0000000280e29b00 {...}
    lsatGenerator = 0x0000000281f84ae0 {
      buyerAccessToken = "A23AAPx8R4tvCWX7rq0sVHpqmSf9UnVzMBSbuhjoDrNe0k-mRia-EqU1hPsUGZx6JIAW3jw0nFM6Zy1TvOA70aToSGNhsXYwA"
      clientID = "Ad7BrT20QvgQW3axXrgs7sGemFsxzSxJVOkxNCPosWlxt6ROUh_XfPQWJcyVI-fVCGyBOWQiKW_ZXsAH"
      ecToken = "08T10450YL579260R"
      lsatAccessToken = nil
      lsatUpgraded = false
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
@quintonpryce and others