stripe-react-native icon indicating copy to clipboard operation
stripe-react-native copied to clipboard

Payment Sheet returns the incorrect payment type when being dismissed.

Open JperF opened this issue 3 years ago • 1 comments

Describe the bug When opening the payment intent sheet via presentPaymentSheet and dismissing (clicking outside the modal) after tapping add new card it returns the incorrect payment method when applePay is enabled.

To Reproduce

  1. Open payment modal with applePay is true.
  2. Have a normal credit card selected.
  3. Click add new card.
  4. Observe return to be apple Pay not the credit card selected.

Expected behavior The return payload from presentPaymentSheet should be the currently selected card when dismissing from the add new card modal.

Screenshots Selected Credit Card Screen Shot 2022-06-21 at 12 07 09 PM Open add new card and dismiss. Screen Shot 2022-06-21 at 12 07 16 PM

Smartphone (please complete the following information):

  • Device: iPhone 13 pro Simulator
  • OS: iOS 15.4
  • Version "@stripe/stripe-react-native": "^0.12.0"

JperF avatar Jun 21 '22 19:06 JperF

This bug is still preventing us from adopting payment sheets in our application.

stianjensen avatar May 26 '23 09:05 stianjensen