I'm integrating manual card entry using presentPaymentSheet() and have encountered the following issues:
There is no listener or response tracker available to capture payment failures, making it difficult to handle and track failure events.
The payment sheet doesn't close automatically when a payment fails, which is a requirement for our implementation.
Steps to Reproduce:
- Enter the card number 4000-0000-0000-9995 into the payment sheet.
- Tap the "Pay $amount" button.
- Observe the behavior:
- The payment sheet shows a failure message, which is expected, but it doesn't close automatically. There is no listener available to track the failure transaction or capture detailed failure data.
Expected Behavior:
- Upon payment failure:
- The payment sheet should either close automatically or allow for manual closure.
- A listener or callback should provide detailed information about the failure, such as the payment intent, to facilitate proper tracking and handling.
Environment:
- Devices: All devices
Additional Information:
- The inability to close the payment sheet or capture failure details is impacting the user experience and our ability to track failures effectively. This functionality is essential for meeting the requirements of the integration.
payment_intent.payment_failed
event for any failed payments.