iZettle / sdk-ios

Add card payments from Zettle to your own app
https://developer.zettle.com/docs/ios-sdk
Other
83 stars 38 forks source link

Processing Event? #308

Closed innovationben closed 3 years ago

innovationben commented 4 years ago

Expected Behavior

We have custom screen showing when the card payment is being process however this cannot be activated as there seems to be no way to listen for and event trigger that means a payment is currently processing?

Current Behavior

No processing event type is currently available that we can see?

Steps to Reproduce

N/A

Context

Awaiting a payment, when payment is being processed trigger event within API that shows the payment is being processed. (not using the standard iZettle process screen)

Failure Logs

N/A

ssikira commented 4 years ago

Hey @innovationben, thanks for the feedback on this! Just so I understand, would you like to be able to know when the payment is being processed through an API or would you also like to be able to present your own UI during the processing step instead of the iZettle SDK one?

Currently, we don't offer this kind of an API because of all different kinds of things that could happen during the payment which results in a large number of states we need to handle. Due to this complexity, SDK manages this process completely by itself.

innovationben commented 4 years ago

Hey Said,

Thanks for the response! Appreciated.

Essentially the answer is yes. We have our own awaiting payment screen and our own completed payment screen and we have no option to inform the user "we are processing" on our UI. We have "waiting" and "successful/failed" but nothing to inform the user that the payment is being attempted and is it is a unique UI overlaying the iZettle processing screen isn't really an option so we are left a little in limbo with how we feedback to the customer.

I understand that there are lots of failure reasons and things that could go wrong but just knowing the payment is "being attempted" without having to show the standardised iZettle UI would be really really helpful.

hey-kj commented 3 years ago

As of now we do not have any plans to implement this feature, but we'll take this in consideration for future developments.