paypal / paypal-ios

One merchant integration point for all of PayPal's services
Apache License 2.0
59 stars 27 forks source link

PayPal Web Demo App Refactor #223

Closed jaxdesmarais closed 10 months ago

jaxdesmarais commented 11 months ago

Reason for changes

There was a lot of logic that's currently duplicated across views or using the same type. This PR overall reduces the number of states used in the PayPal Demo app. It also includes refactors that can be used or duplicated across other demo apps. As necessary we can extract out portions of this code to be reused as we refactor the other portions of the demo app.

Summary of changes

Future Considerations / Improvements

Next Steps

Checklist

Authors

KunJeongPark commented 10 months ago

Adding the TransactionOrder in viewModel on auth/capture order works as well to distinguish the last step. Great job renaming the files, and consolidating the views!