#wangxiaofei0990

1 messages · Page 1 of 1 (latest)

sullen creekBOT
hushed ivy
#

HI

hexed zenith
#

can you share the crash report?

hushed ivy
#

OK

#

StripePayments/STPBINController.swift:193: Fatal error: Unexpectedly found nil while unwrapping an Optional value
2023-09-14 14:27:27.209938+0800 lotus[11197:2159642] StripePayments/STPBINController.swift:193: Fatal error: Unexpectedly found nil while unwrapping an Optional value

#

alex, are you still there?

hexed zenith
#

are you using the latest SDK version?

hushed ivy
#

No version specified.

#

When scanning, I just scanned something at random, such as a keyboard, a trademark, etc.

#

This was also discovered by accident, not deliberately scanning for other things.

hexed zenith
#

can you file a issue in the relevant Github repo, the team will follow up and respond there

fair turret
hushed ivy
#

Let me take a look

#

this link

#

Hello Alex, when will you reply to this issues?

hexed zenith
#

it's a different team that will take a look and respond. I don't have a specific time that I can share

hushed ivy
#

OK

#

Can the scan button be hidden?

fair turret
#

Hi @hushed ivy in the same github ticket, can you also attach the images that you were scanning?

hushed ivy
#

Because we want to release the App.

#

OK

#

Scanned screenshots have been uploaded.

indigo helm
#

Hi! I'm taking over this thread.

#

Thanks, now you'll need to wait for the relevant team to answer that github issue.

hushed ivy
#

Okay, thank you. Is there any API that allows me to hide this scan button first?

hushed ivy
#

Thank you, I'll take a look.

#

NSCameraUsageDescription,This cannot be removed and has other uses.

indigo helm
#

What do you mean?

hushed ivy
#

The entrance can be hidden directly.

indigo helm
#

what do you mean by "entrance"?

hushed ivy
#

Scan card

indigo helm
hushed ivy
#

disable

#

Do you mean not to add permissions to .plist?

indigo helm
#

Correct

hushed ivy
#

This permission has other uses and I can't remove it.

indigo helm
#

Not sure, having a look

hushed ivy
#

I also need this permission for my own business, so I can't remove it.

indigo helm
#

Looks like there is an opion paymentConfiguration.cardScanningEnabled that you can set to false.

hushed ivy
indigo helm
#

Which version of stripe-ios are you using?

hushed ivy
indigo helm
#

So yes you need to update your code to include this line paymentConfiguration.cardScanningEnabled = false

hushed ivy
#

Which SDK do I need to use, or which version?

indigo helm
#

The same you are currently using.

hushed ivy
#

I mean, these apis are not available in the integrated pod 'StripePaymentSheet'.

indigo helm
#

Looking into this.

hushed ivy
#

Can you help me check, which one should I use?

indigo helm
hushed ivy
indigo helm
#

Correct, but since you are using NSCameraUsageDescription, I think setting it to false could fix your issue.

hushed ivy
#

😰

hushed ivy
indigo helm
hushed ivy
#

This is the permission of the system camera.

indigo helm
sullen creekBOT
hushed ivy
#

It does not control the StripePaymentSheet panel.

frozen mason
#

Checking

hushed ivy
frozen mason
#

You're right in that STPPaymentConfiguration doesn't control the Payment Sheet. Outside of that I don't think it's possible to disable card scanning in the Payment Sheet if you app uses NSCameraUsageDescription. Confirming

hushed ivy
#

Because the scan crashes, I want to use plan B to hide the scan entrance first.

frozen mason
#

If it crashes, then I'd recommend filing a bug report at the GH repo

#

But yes, you can't disable it if your iOS has that entitlement

frozen mason
hushed ivy
#

I now how to do.

#

😂

frozen mason
#

Equally, you could file an issue on GitHub requesting that the card scanning be configurable in Payment Sheet

hushed ivy
#

If I can't remove the plist, the scan will crash.

frozen mason
#

Yep, I understand. And you've filed a GH issue on the SDK repository which is the correct process

#

The team will triage that issue and work with you on GitHub to hopefully resolve the crash

#

My team cannot help directly fix that potential bug now

hushed ivy
#

Well, the release of my App can only be postponed.

frozen mason
#

We're looking at your GH issue and trying to reproduce it now

hushed ivy
#

That's great, thank you very much!

frozen mason
#

Unfortunately our team has been unable to reproduce. I'd recommend referring to the GH issue you created. The team is predominantly US based so they'll be online later and I suspect they'll triage it then

hushed ivy
frozen mason
#

I'd recommend sharing any extra context on the GH issue

#

We can't help any further here I'm afraid

hushed ivy
#

We tested entering the bank card number and entered an 8, and it crashed, which was consistent with the scanning crash information.

frozen mason
#

Again, please share this on GitHub

#

I'll be closing this thread momentarily

hushed ivy
#

OK

frozen mason
#

Please share this on GH where the team can actually help resolve your issue. It'll be lost here

hushed ivy
#

OK