Currently the PayPal Web feature exists across 3 total views with totally different result views. This simplifies the PayPal Web feature into a single view. It also gives us the ability to reset the PayPal flow for subsequent checkouts.
Summary of changes
Add LabelViewText to stack the text horizontally vs vertically to save space
Remove PayPalWebStatusView - now that we have a single success view we can remove this fine
Add segmented control for PayPalWebButtonsView - this saves space by not displaying all buttons at once
Add Reset button to PayPalWebCreateOrderView - this allows for resetting the flow and clearing out stored properties on the ViewModel
Add all views to PayPalWebPaymentsView
Conditionally hide/show views depending on where we are in the flow
Remove no longer needed OrderStatus
Replace PayPalWebStatusView with successView property on PayPalWebResultView
Simplify PayPalWebTransactionView now that we have 1 shared result view
Remove no longer needed createOrderResult and transactionResult - this can be shared across 1 updated order property as the order progresses
Reason for changes
Currently the PayPal Web feature exists across 3 total views with totally different result views. This simplifies the PayPal Web feature into a single view. It also gives us the ability to reset the PayPal flow for subsequent checkouts.
Summary of changes
LabelViewText
to stack the text horizontally vs vertically to save spacePayPalWebStatusView
- now that we have a single success view we can remove this finePayPalWebButtonsView
- this saves space by not displaying all buttons at onceReset
button toPayPalWebCreateOrderView
- this allows for resetting the flow and clearing out stored properties on the ViewModelPayPalWebPaymentsView
OrderStatus
PayPalWebStatusView
withsuccessView
property onPayPalWebResultView
PayPalWebTransactionView
now that we have 1 shared result viewcreateOrderResult
andtransactionResult
- this can be shared across 1 updatedorder
property as the order progressesVisuals
Checklist
Authors