Matt-Yorkley
3f3bfadb59
Simplify StripeScaPaymentAuthorize and clarify both return URL types (checkout and off-session)
2022-01-14 19:41:08 +00:00
Matt-Yorkley
76647863e8
Add new Stripe controller
2022-01-14 19:41:08 +00:00
Matt-Yorkley
02995530e2
Pull apart OrderCompletionReset service
2022-01-14 19:41:08 +00:00
Matt-Yorkley
67b8a55273
Separate OrderCompletionReset from Checkout::PostCheckoutActions and don't pass controller objects to Checkout::PostCheckoutActions
...
We need to separate some of these bits to make them easier to call in different contexts. Also there's some weird stuff happening here with the controller being passed in to the service, and it seems like a code smell to me...
2022-01-14 19:41:08 +00:00
Filipe
da703b2d95
Merge pull request #8615 from jibees/8559-enable-sort-orders-by-order-full-name
...
Enable sorting orders by order full name
2022-01-11 11:27:36 +00:00
Filipe
750411fd15
Merge pull request #8592 from openfoodfoundation/gateway-redirects
...
Refactor payment gateway redirects handling
2021-12-23 21:35:45 +00:00
Sebastian Castro
95ff3d7a11
Add automatic_notification field in advanced settings
2021-12-23 20:41:49 +01:00
Filipe
1cee7b6f17
Merge pull request #8614 from mkllnk/8606-subs-dups
...
Synchronise processing of subscriptions and avoid duplicate order creation
2021-12-21 16:57:46 +00:00
Matt-Yorkley
35e20fc179
Can sort orders via bill_address.lastname
...
We only need to check the orders sort
Fix ordering in api/v0/orders_controller_spec
2021-12-16 09:33:38 +01:00
Matt-Yorkley
b77ff346a3
Replace #raise with #return in Checkout::StripeRedirect
...
The (potential) unhappy code path here was raising an error which would not be explicitly handled, and would in theory not return a useful message / response.
2021-12-15 21:20:58 +00:00
Matt-Yorkley
0fc4b851f2
Refactor payment gateway redirects handling
...
The checkout was holding a lot of responsibility for knowing which kinds of payment gateways are available and how to initiate the process of redirecting to the external payment page (if needed). This was being hidden somewhat by the way the logic was tucked away in services.
PaymentMethod objects now know whether or not they require an external payment process, and know how that process should be started and how to build the required URL.
So we can now *ask* any payment method if it requires external payment processing or not, and *tell* it to start the process and return the relevant URL (if needed).
2021-12-15 21:20:58 +00:00
Filipe
f6385215d3
Merge pull request #8568 from Matt-Yorkley/paypal-controller
...
Move paypal controller
2021-12-15 18:12:27 +00:00
Maikel Linke
9b6c9bd773
Synchronise processing of proxy orders
2021-12-14 11:33:16 +11:00
Maikel Linke
ce0913758b
Bring initial proxy order processing closer
...
We want to make it one transaction soon.
2021-12-14 11:33:16 +11:00
Matt-Yorkley
f101b06226
Update all references to paypal routes
2021-12-10 11:46:53 +00:00
Matt-Yorkley
6b8c91845e
Update strong params
2021-12-07 16:29:25 +00:00
Matt-Yorkley
290e292dea
Revert "Fixed inconsistency with display of unit name for products sold by item"
2021-12-07 13:24:12 +00:00
Nihal M. Kelanthodika
74b87adee3
Merge pull request #8500 from apricot12/8495-Variant-unit-name-shopfront
2021-11-25 16:06:06 +05:30
Nihal M. Kelanthodika
8a42043701
Fixed inconsistency with display of unit name for products sold by item
2021-11-19 13:39:42 +05:30
Matt-Yorkley
0683941f88
Ensure line items are correctly scoped for producers
2021-11-11 13:11:19 +00:00
Matt-Yorkley
cf5d964133
Update usages of old preference getters and setters
2021-11-04 11:48:30 +00:00
Maikel
1b79fdd333
Merge pull request #8409 from luisAzcuaga/task/rubocop
...
[6055] Task: Run rubocop over existing todo
2021-10-29 12:01:12 +11:00
Luis Azcuaga
e8fd89a6d2
Run rubocop over existing todo
2021-10-25 21:28:28 -05:00
PHAN QUANG LAM
77524c633d
Fix menu indicator on bulk order page
2021-10-26 06:41:30 +09:00
Nihal M. Kelanthodika
c6219a47c3
Remove stray space
2021-10-06 15:06:56 +05:30
Nihal Mohammed
1c72cd799d
Permit :id attribute in PermittedAttributes:BusinessAddress
2021-10-06 15:06:56 +05:30
Nihal Mohammed
3cd5ed58c0
Add checkbox to clear business_address form
2021-10-06 15:06:56 +05:30
Nihal Mohammed
26c7cb2bd3
Fix business_address attribute permissions
2021-10-06 15:06:56 +05:30
Nihal Mohammed
783b055d55
Add business address permitted attributes
2021-10-06 15:06:20 +05:30
Jean-Baptiste Bellet
78bbee49e9
Search for orders that are finalized
...
Thus, we display the orders that contains at least one line item (whatever its state) + the finalized orders
NB // Finalized state : complete canceled resumed awaiting_return returned
2021-09-23 11:06:15 +02:00
Maikel
02a10ede15
Merge pull request #7938 from dacook/product-image-import
...
Add script to import product images from URL
2021-09-20 16:57:23 +10:00
Maikel
9affc6a945
Merge pull request #8108 from Matt-Yorkley/andand
...
Remove `andand` gem
2021-09-10 15:06:00 +10:00
Andy Brett
069cb043ee
Merge pull request #8148 from jibees/5236-remove-incomplete-orders-from-admin-interface-2
...
Only shows order that actually have at least one line_item V2
2021-09-09 16:49:30 -07:00
Andy Brett
f8486bcbf8
Merge pull request #7769 from Matt-Yorkley/payment-status-checking
...
Stripe: payment status debugging
2021-09-08 15:21:38 -07:00
Andy Brett
afa1861181
pass payment to Stripe Validator instead of the status object
2021-09-08 12:26:56 -07:00
Matt-Yorkley
1d5077061e
Remove andand
...
This old gem implemented some functionality for handling nils which is no longer needed, as it's provided natively by Ruby with the &. operator.
2021-09-08 14:28:31 +01:00
Jean-Baptiste Bellet
0ec35b1f0d
Only shows order that actually have at least one line_item
...
Filter inside the API to shows only orders that have at least one line items
2021-09-07 17:25:46 +02:00
Matt-Yorkley
3bcfc673f7
Ensure selected shipping method is actually selected
...
Hashes with symbol keys != hashes with string keys 🙈
2021-09-06 20:58:22 +01:00
Matt-Yorkley
fb7a3a681b
Validate attributes per checkout step and decouple order-advancing
2021-09-06 14:25:16 +01:00
Matt-Yorkley
4cff185b4b
Extract params handling to service
2021-09-01 15:04:53 +01:00
Matt-Yorkley
2786fb30ba
Simplify order advancing process
2021-09-01 15:04:33 +01:00
Andy Brett
fba7699d0b
select shipping method when advancing to payment
2021-08-31 11:00:54 +02:00
Matt-Yorkley
dbefd95b5e
Improve order workflow shipping method selection
2021-08-12 12:53:45 +01:00
Matt-Yorkley
e91a8d603f
Return a boolean in OrderWorkflow#advance_to_state
...
Returns true if advancing was successful, which is helpful in control flows that use the method in a conditional
2021-08-11 15:53:01 +01:00
Matt-Yorkley
4d77d4df77
Add confirm event and update workflow helpers
2021-08-11 15:53:01 +01:00
Matt-Yorkley
886e03af2f
Merge pull request #7805 from Matt-Yorkley/adjustments-admin
...
[Adjustments] Admin adjustments
2021-07-27 12:23:29 +02:00
Matt-Yorkley
6daa37a5c0
Ensure TaxRateFinder returns an array if the given adjustment has no tax
2021-07-25 22:47:40 +01:00
Matt-Yorkley
cab36f375b
Update app/services/order_tax_adjustments_fetcher.rb
...
Co-authored-by: Maikel <maikel@email.org.au >
2021-07-25 22:47:40 +01:00
David Cook
c156d0c2e6
Add script to import product images from URL
...
With new ImageImporter.
Co-authored-by: Maikel <maikel@email.org.au >
2021-07-16 11:36:49 +10:00
Nihal Mohammed
6bd28bcad8
Update products_renderer for pagy pagination
2021-07-14 13:17:33 +01:00