Matt-Yorkley
|
b5a1d9ebef
|
Allow using saved cards at checkout
|
2022-01-24 23:06:43 +00:00 |
|
Matt-Yorkley
|
8552da2377
|
Extract and stub PaymentMethodFetcher
|
2022-01-24 20:28:59 +00:00 |
|
Matt-Yorkley
|
167adb3ddc
|
Memoize selected_payment_method
|
2022-01-24 20:28:59 +00:00 |
|
Matt-Yorkley
|
50b82d347b
|
Redirect to payment gateway during order confirmation
|
2022-01-24 20:28:59 +00:00 |
|
Matt-Yorkley
|
0f154de235
|
Use OrderCompletion in split checkout for #order_completion_reset
|
2022-01-19 17:51:03 +00:00 |
|
Filipe
|
7444e2d2f3
|
Merge pull request #8741 from Matt-Yorkley/guest-checkout-login
Fix split checkout guest user login
|
2022-01-19 16:43:24 +00:00 |
|
Matt-Yorkley
|
fb00a51ae8
|
Merge pull request #8653 from Matt-Yorkley/split-checkout-t-and-c
Split checkout T&Cs
|
2022-01-19 13:39:15 +00:00 |
|
Matt-Yorkley
|
8ce27bed86
|
Move guest checkout handling to the frontend
|
2022-01-19 13:14:10 +00:00 |
|
Matt-Yorkley
|
7c2b3cdf51
|
Fix param whitelisting
Co-authored-by: Maikel <maikel@email.org.au>
|
2022-01-18 09:14:55 +00:00 |
|
Matt-Yorkley
|
1d4803c31a
|
Whitelist valid step param values
|
2022-01-13 13:55:33 +00:00 |
|
Matt-Yorkley
|
18cdf98aa1
|
Set terms and conditions accepted when completing checkout
|
2022-01-12 22:17:22 +00:00 |
|
Matt-Yorkley
|
f2c506a292
|
Update and extract summary_step? check
|
2022-01-12 22:17:22 +00:00 |
|
Jean-Baptiste Bellet
|
36db396fe5
|
Do not redirect if user is logged in
|
2022-01-10 10:02:08 +01:00 |
|
Jean-Baptiste Bellet
|
9a74934f79
|
Do not redirect to /guest if step is specified
|
2022-01-10 09:40:16 +01:00 |
|
Jean-Baptiste Bellet
|
b1524aa0bd
|
Guard clause: redirect to /guest when POST
When there is no connected user, and when the distributor doesn't allow guest orders, redirect on POST method
|
2022-01-10 09:39:46 +01:00 |
|
Jean-Baptiste Bellet
|
f2c3a380ac
|
Redirect to /guest if distributor doesn't allow guest order
|
2022-01-10 09:39:46 +01:00 |
|
Jean-Baptiste Bellet
|
2929b6278d
|
Redirect to /guest if no step required and no current connected user
|
2022-01-10 09:39:45 +01:00 |
|
Matt-Yorkley
|
8016e90e07
|
Ensure payment method is actually selected
|
2021-12-20 18:47:22 +00:00 |
|
Luis Azcuaga
|
e8fd89a6d2
|
Run rubocop over existing todo
|
2021-10-25 21:28:28 -05:00 |
|
Matt-Yorkley
|
8bf3f72ad3
|
Extract CableCar responses code to a concern
|
2021-09-08 10:34:34 +01:00 |
|
Matt-Yorkley
|
5ef34347a3
|
Implement optional non-Angular flash messages
|
2021-09-08 10:34:34 +01:00 |
|
Matt-Yorkley
|
e48b9d84e5
|
Extract boilerplate code
|
2021-09-08 10:34:34 +01:00 |
|
Matt-Yorkley
|
03abc395f2
|
Update responses to use cable_ready
|
2021-09-08 10:34:34 +01:00 |
|
Matt-Yorkley
|
9be73a8ff1
|
Respond with HTTP error code on update failure
|
2021-09-08 10:34:34 +01:00 |
|
Matt-Yorkley
|
fb7a3a681b
|
Validate attributes per checkout step and decouple order-advancing
|
2021-09-06 14:25:16 +01:00 |
|
Matt-Yorkley
|
70513ae989
|
Don't transition to address before page load
|
2021-09-05 20:19:22 +01:00 |
|
Matt-Yorkley
|
9d6e5e9420
|
Remove currently unused code
|
2021-09-01 15:04:53 +01:00 |
|
Matt-Yorkley
|
1fca7d2a6c
|
Remove error-clearing from edit action
|
2021-09-01 15:04:53 +01:00 |
|
Matt-Yorkley
|
4cff185b4b
|
Extract params handling to service
|
2021-09-01 15:04:53 +01:00 |
|
Matt-Yorkley
|
57504f42d8
|
Move validations to state transitions
|
2021-09-01 15:04:53 +01:00 |
|
Matt-Yorkley
|
9800483433
|
Simplify displaying selected shipping method
|
2021-09-01 15:04:33 +01:00 |
|
Matt-Yorkley
|
b7e1882bd8
|
Simplify setting address params
|
2021-09-01 15:04:33 +01:00 |
|
Matt-Yorkley
|
3fabe308cd
|
Extract #shipping_and_billing_match? helper
|
2021-09-01 15:04:33 +01:00 |
|
Matt-Yorkley
|
ac4d721de0
|
Extract #set_payment_amount method
|
2021-09-01 15:04:33 +01:00 |
|
Matt-Yorkley
|
2786fb30ba
|
Simplify order advancing process
|
2021-09-01 15:04:33 +01:00 |
|
Matt-Yorkley
|
ebe2923512
|
Improve form outputs and error handling
|
2021-09-01 14:16:32 +01:00 |
|
Andy Brett
|
fba7699d0b
|
select shipping method when advancing to payment
|
2021-08-31 11:00:54 +02:00 |
|
Jean-Baptiste Bellet
|
a1438f91e9
|
Display error on email (triggered by advance_order_state method)
|
2021-08-31 11:00:54 +02:00 |
|
Jean-Baptiste Bellet
|
748a37f670
|
Terms and conditions error message
|
2021-08-26 09:28:31 +02:00 |
|
Jean-Baptiste Bellet
|
44ab87961a
|
i18nize the global error message
|
2021-08-26 09:28:31 +02:00 |
|
Andy Brett
|
bee1b1a097
|
respect checkbox for ship address same as bill address
|
2021-08-25 15:22:25 -07:00 |
|
Andy Brett
|
d86148420a
|
improve shipping_method_id handling
|
2021-08-24 12:29:48 -07:00 |
|
Andy Brett
|
7dd2c09641
|
ensure terms are accepted before order is placed
|
2021-08-24 12:29:23 -07:00 |
|
Andy Brett
|
3414d9f057
|
clear errors on ship address as well
|
2021-08-24 12:15:20 -07:00 |
|
Andy Brett
|
71076d36a1
|
favor dig to protect against nils
|
2021-08-24 11:54:02 -07:00 |
|
Andy Brett
|
874e1d7f02
|
only advance order to payment if no payment exists
|
2021-08-24 11:23:08 -07:00 |
|
Andy Brett
|
417770e716
|
guard against nil when populating ship address
|
2021-08-24 11:22:20 -07:00 |
|
Andy Brett
|
ea695105b5
|
populate ship address with bill address if no ship address
|
2021-08-24 10:57:36 -07:00 |
|
Jean-Baptiste Bellet
|
9fd126ca0f
|
The ship address is filled from bill address for some attributes
firstname, lastname and phone are the same between those two address. Fill it automatically.
|
2021-08-23 15:42:29 +02:00 |
|
Jean-Baptiste Bellet
|
1ecfeca88c
|
Populate view with both shipping_method_id & ship_address_same_as_billing
... and then handle correctly the display of the form
|
2021-08-23 15:23:53 +02:00 |
|