Commit Graph

242 Commits

Author SHA1 Message Date
Yuki 52e9b64c0f
Revert "Enable ACHv2 in decoupled flow (#2661)" (#2668)
This reverts commit d0617bef64.
2023-06-16 16:04:02 -07:00
Nick Porter 7811fd8fd1
Rename success constant in ApplePayContext (#2665)
* Rename constant

* Update doc comment
2023-06-16 11:30:51 -07:00
Yuki d0617bef64
Enable ACHv2 in decoupled flow (#2661)
* Enable ACHv2 in decoupled flow

* Update images now that achv2 shows
2023-06-16 09:32:24 -07:00
davidme-stripe f3a90cd463
Create Link launch URLs and ingest Link return URLs (#2657) 2023-06-16 09:29:06 -07:00
davidme-stripe ec29d0821e
Refactor Link to use ASWebAuthenticationSession (#2643) 2023-06-15 14:53:37 -07:00
Nick Porter 5008933147
Fix a few AddressElement bugs (#2656)
* Always return nil if user cancels address view controller

* Fix UI test

* Fix race condition when setting auto complete tap target

* Update CHANGELOG.md

* Update test for auto complete w/ defaults

* Set tap target on auto complete line after it has been created

* Update Example/PaymentSheet Example/PaymentSheetUITest/PaymentSheet+AddressTests.swift

Co-authored-by: Yuki <yuki@stripe.com>

* Update CHANGELOG.md

Co-authored-by: Yuki <yuki@stripe.com>

* Make closure vars let's

---------

Co-authored-by: Yuki <yuki@stripe.com>
2023-06-15 12:25:56 -07:00
John Woo bfb782f954
Refactor PaymentSheetFormFactory to reduce duplication w/ customerSheet (#2636) 2023-06-14 14:06:00 -07:00
John Woo b5e349fa75
Remove generated project files for v23.9.1 (#2648) 2023-06-13 02:05:40 +01:00
Yuki Tokuhiro dc2e69332b Update version to 23.9.1 2023-06-12 09:50:02 -07:00
Yuki 54cb1154b4
Stop validating amount in deferred flow (#2642) 2023-06-12 09:14:23 -07:00
Yuki bb22e3a0c3
Don't validate the PI/SI in PaymentSheet deferred flow when doing ser… (#2640)
* Don't validate the PI/SI in PaymentSheet deferred flow when doing server-side confirm

* Add unit tests

* Update CHANGELOG

* lint
2023-06-08 15:44:42 -07:00
John Woo 4a766a19b7
Rename SheetResult to CustomerSheetResult (#2632) 2023-06-07 13:38:09 -07:00
John Woo 6ad7880294
Support sending cus_ to backend and add add/remove test for customer sheet (#2635) 2023-06-07 13:04:00 -07:00
Nick Porter b0a9cad965
Restrict manual confirmation usage to FlowController (#2633)
* Restrict manual confirmation usage to FlowController

* Add comment
2023-06-07 09:25:11 -07:00
John Woo 53f4a18511
Fix issue with removing payment method in customer sheet (#2631) 2023-06-06 13:43:58 -07:00
davidme-stripe 4e9df7f5af
Fix some test flake (#2629) 2023-06-06 10:31:09 -07:00
John Woo 6172971425
Use nonGenericDescription for CustomerSheet errors (#2623) 2023-06-01 23:52:17 +00:00
John Woo 2bd0382d6d
Write loadPaymentMethodInfo stubbed timeout test (#2620) 2023-06-01 16:39:55 -07:00
David Estes edb106ac1b Remove generated project files for v23.9.0 2023-05-30 12:51:04 -07:00
John Woo 079e21ad1a
Update version to 23.9.0 2023-05-30 11:08:09 -07:00
davidme-stripe 73620e5dfa
Add disclaimer text (#2613) 2023-05-26 15:26:05 -07:00
John Woo 99edd1ea75
Update CustomerSheet based on internal feedback (#2609) 2023-05-26 14:34:21 -07:00
John Woo 116c36373d
Remove listing achv2 saved payment methods in customer sheet (#2608) 2023-05-26 07:48:10 -07:00
John Woo bf179e409c
Fix button enable/disable on filling out card params (#2605) 2023-05-25 22:33:44 +00:00
John Woo 4e842285b1
Reorder err message on CustomerSheet (#2606) 2023-05-25 15:20:27 -07:00
John Woo d7cc3b9bf9
Rename PersistablePaymentMethodOption -> CustomerPaymentOption (#2599) 2023-05-24 23:47:33 +00:00
Yuki ce2eb087d8
Merge pull request #2595 from stripe/yuki/decoupled-ga-breaking-changes
Merge decoupled ga breaking changes branch
2023-05-24 15:47:23 -07:00
John Woo 42d9fbac4f
Update comment in CustomerSheetConfiguration.swift (#2596) 2023-05-24 22:19:52 +00:00
John Woo 1fd007dc8d
Fetch payment methods and selectedPaymentMethod before presenting sheet (#2597) 2023-05-24 22:03:47 +00:00
Yuki Tokuhiro 51166d355f Merge remote-tracking branch 'origin/master' into yuki/decoupled-ga-breaking-changes 2023-05-23 16:37:16 -07:00
John Woo 971d7a434e
Presenting error when set select fails on saved pm (#2591) 2023-05-23 18:57:35 +00:00
John Woo abe00c72ed
Update analytics for customer sheet (#2590) 2023-05-23 11:41:49 -07:00
John Woo 3b2b912ab7
Rename SavedPaymentMethodsSheet to CustomerSheet (#2589) 2023-05-22 16:31:50 -07:00
Yuki 84a92a7416
Make currency have a default value of nil in decoupled setup mode (#2584) 2023-05-19 14:07:27 -07:00
John Woo 22c7446f7f
Fix logic for removing payment method for spms (#2587) 2023-05-19 13:20:15 -07:00
John Woo e6f7515faf
Update default string for selecting payment method in spms (#2586) 2023-05-18 21:53:36 +00:00
John Woo 8a3808f608
Prevent confirm button from appearing when del selected on spms (#2585) 2023-05-18 14:39:53 -07:00
Nick Porter 003c344a55
Rename FORCE_SUCCESS (#2583)
* Rename magic string for force success

* payment -> the intent

Co-authored-by: Till Hellmund <tillh@stripe.com>

* Update doc string

---------

Co-authored-by: Till Hellmund <tillh@stripe.com>
2023-05-18 12:27:35 -07:00
Nick Porter 1f3c0a1fac Revert "Rename FORCE_SUCCESS"
This reverts commit bfba079c63.
2023-05-18 11:56:27 -06:00
Nick Porter bfba079c63 Rename FORCE_SUCCESS 2023-05-18 11:54:00 -06:00
John Woo 3b556ca05b
Make spms re-presentable after being dismissed (#2581) 2023-05-17 23:29:51 +00:00
Yuki 95f00d5da3
Validate that the Intent matches the IntentConfiguration (#2577)
* Add support for automatic async capture method (#2530)

* Add support for automatic async capture method

* Add see also to automatic async doc string

* Stop passing is_server_side_confirmation in analytics

* Combine confirmHandler & serverSideConfirmHandler into single handler

* Update CHANGELOG.md

* PR fixes

* Fix not calling confirm handler on main thread

* Validate that the Intent matches the IntentConfiguration

* fix test

* Fix analytics for confirming with setup intent on spms (#2574)

* lint....

* PR feedback

---------

Co-authored-by: Nick Porter <88012362+porter-stripe@users.noreply.github.com>
Co-authored-by: John Woo <99628984+wooj-stripe@users.noreply.github.com>
2023-05-17 15:55:15 -07:00
John Woo 7d1db1e43d
Fix issue with deleting selected payment method (#2579) 2023-05-17 22:21:41 +00:00
Yuki 45fd032304
Decoupled one handler (#2573)
* Stop passing is_server_side_confirmation in analytics

* Combine confirmHandler & serverSideConfirmHandler into single handler

* Update CHANGELOG.md

* PR fixes

* Fix not calling confirm handler on main thread
2023-05-17 14:43:37 -07:00
John Woo 01b414b5b9
Fix analytics for confirming with setup intent on spms (#2574) 2023-05-17 14:27:37 -07:00
Nick Porter 749d0b1b9f
Vend entire PM (#2575)
* Vend entire PM

* Fix test

* Update StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/PaymentSheetIntentConfiguration.swift

Co-authored-by: Yuki <yuki@stripe.com>

---------

Co-authored-by: Yuki <yuki@stripe.com>
2023-05-17 09:30:23 -07:00
Nick Porter a2795eebce
Add support for automatic async capture method (#2530)
* Add support for automatic async capture method

* Add see also to automatic async doc string
2023-05-17 09:13:36 -07:00
Yuki fdc1a6fa93
Refactor PaymentSheet deferred confirm code (#2569)
* Refactor PaymentSheet confirm code to not recurse

* Add some unit tests

* lint

* fix lint
2023-05-16 13:03:44 -07:00
John Woo 2a1ab6dcba
Add SPMS client side metrics (#2570) 2023-05-16 18:21:50 +00:00
John Woo 448a24cee1
Use ephemeralkey instead of id to remove pyament method (#2572) 2023-05-16 09:20:18 -07:00