Skip to content

"Unknown" preferred network is sent in edit on CustomerSheet, unable to select #2494

Description

@NicholasGWK

In Android only, it seems like something is up with preferredNetworks.

When adding a Diners club Test card (and occasionally Discover?) card to a US stripe customer, I am able to add successfully. When I try to EDIT the card though, I get errors.

Checking in the stripe developer logs reveals that the update call for Android send "preferredNetwork: unknown", even if I set preferred networks as part of the CustomerSheet initialization.

On iOS, the request succeeds, and the preferred network is absent from the request.

I may be misunderstanding or it's a quirk of the test environment, but I think preferredNetwork should not really be set for US/Canadian cards right? Happy to provide log ids for the specific requests if that's helpful, but here's the request bodies for each:

iOS, works:

{
  "billing_details": {
    "address": {
      "country": "US",
      "postal_code": "90211"
    }
  },
  "card": {
    "exp_month": "1",
    "exp_year": "29"
  }
}```

Android, fails:

{
"billing_details": {
"address": {
"country": "US",
"postal_code": "90211"
}
},
"card": {
"exp_month": "1",
"exp_year": "2029",
"networks": {
"preferred": "unknown"
}
}
}```

In both cases I was attempting to update the postal code in some trivial way (90210->90211 etc)

Thanks!

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    androidbugSomething isn't workingtriagedIssue has been reviewed by Stripe and is being tracked internally

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions