Filipe
8114eb1c9f
Merge pull request #8666 from openfoodfoundation/stripe-controller
...
Extract new StripeController
2022-01-17 20:21:40 +00:00
Filipe
62f0de75ee
Merge pull request #8679 from Matt-Yorkley/drop-jquery-ujs
...
Drop jquery_ujs
2022-01-17 16:30:25 +00:00
Filipe
dfdeb7368e
Merge pull request #8681 from SarvarKh/translation-correction
...
Add flash message translation for log out
2022-01-15 14:55:26 +00:00
Matt-Yorkley
11c6ce16ea
Move payment-authorizing tests to stripe controller spec
2022-01-14 19:41:08 +00:00
Matt-Yorkley
5a70664a6a
Pull stripe-related tests into new controller spec
2022-01-14 19:41:08 +00:00
Matt-Yorkley
48c4ecde08
Update checkout specs using deleted OrderCompletionReset
2022-01-14 19:41:08 +00:00
Matt-Yorkley
7b8e1f5c30
Update/improve paypal controller specs
2022-01-14 19:41:08 +00:00
Matt-Yorkley
9583a3cc3d
Use order token param in specs
2022-01-14 19:41:08 +00:00
Matt-Yorkley
9b2801db24
Fix calls to private method #expire_current_order in specs
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
SarvarKhalimov
f09f6208c2
Remove trailing whitespace from user_sessions_controller_spec.rb
2022-01-11 00:01:08 +05:00
SarvarKhalimov
6c559995ab
Add test for user log_out user#destroy
2022-01-10 22:50:44 +05:00
Matt-Yorkley
99b75c9a6a
Adjust usage of remote-method links on credit card deletion
2022-01-08 16:54:23 +00:00
Matt-Yorkley
b51891f1ab
ActionMailer::MailDeliveryJob is the new default class for mailer handling
...
ActionMailer::DeliveryJob is deprecated in favour of ActionMailer::MailDeliveryJob, and will be removed in Rails 7
2022-01-05 15:35:22 +00:00
Matt-Yorkley
3ad17aedd4
Merge pull request #8634 from Matt-Yorkley/order-tokens
...
Clarify use of order tokens
2022-01-04 13:05:41 +00:00
Matt-Yorkley
9afc002286
Refactor use of image files in specs
2021-12-27 17:45:06 +00:00
Matt-Yorkley
63f6567637
Use new image path when uploading files in specs
2021-12-27 17:45:06 +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
Filipe
b256696544
Merge pull request #8549 from mkllnk/deprecate-stripe-connect
...
Hide old "Stripe" (StripeConnect) payment method type, keep new Stripe SCA
2021-12-23 21:33:42 +00:00
Sebastian Castro
95ff3d7a11
Add automatic_notification field in advanced settings
2021-12-23 20:41:49 +01:00
Matt-Yorkley
570eb21469
Merge pull request #8638 from cillian/store-payment-captured-at
...
Add a :captured_at column on payments to store when they are captured
2021-12-22 15:21:55 +00:00
Filipe
4001fa985b
Merge pull request #8612 from Matt-Yorkley/packing-reports-filtering
...
Packing reports filtering
2021-12-22 13:03:17 +00:00
Matt-Yorkley
f0d54dd083
Tidy up #redirect_to_payment_gateway
2021-12-22 09:58:08 +00:00
Maikel Linke
22de357724
Hide deprecated StripeConnect payment gateway
...
StripeConnect has been replaced by StripeSCA but some people still use
the old StripeConnect. Let's prevent people from creating deprecated
payment methods before migrating existing data.
2021-12-20 17:12:19 +11:00
Maikel Linke
28e6fa235c
Style Layout/HashAlignment
2021-12-20 15:23:58 +11:00
Maikel Linke
178d296c9f
Adapt specs to use stripe_sca_payment_method
...
There are still some specs directly related to StripeConnect and I left
them for now.
2021-12-20 15:00:14 +11:00
Cillian O'Ruanaidh
84eaafb822
Add a :captured_at column on payments to store when they are captured
...
Fixes #8611 .
2021-12-17 14:45:47 +00:00
Matt-Yorkley
9f49a84e7f
Clarify use of access tokens used for viewing order details as a guest user
...
There are 4 or 5 different places in the app where we reference a :token and params[:token] for completely different purposes (they're not even vaguely the *same* token).
This is an attempt to clarify the places in the app where we use params[:token] in relation to *orders*, for allowing guest users (who are not logged in) to view details of an order they have placed (like after checkout completion), and differentiate it from the various other places where params[:token] can actually be used for something entirely different!
2021-12-16 13:35:55 +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
ef7a02004e
Update specs
2021-12-15 21:20:58 +00:00
Matt-Yorkley
1efaa7e726
Switch search filters from orders to line_items
2021-12-12 13:23:56 +00:00
Matt-Yorkley
9fa19cb772
Update namespacing in specs
2021-12-10 11:46:53 +00:00
Matt-Yorkley
dcad00d047
Merge pull request #8484 from Matt-Yorkley/stripe-session-checks
...
Stripe checkout alerting
2021-12-05 12:04:00 +00:00
Matt-Yorkley
527a53bd0f
Merge pull request #8485 from Matt-Yorkley/stripe-addresses
...
Checkout address handling
2021-11-18 15:19:27 +00:00
Matt-Yorkley
f8349434bf
Skip address setup logic if we're coming from Stripe
...
The code here runs from a callback which was originally designed to make sure the checkout page was set up correctly in the "normal" checkout workflow. It wasn't really designed to be run when the page is being loaded a second time due to the user being redirected back from Stripe (with SCA). The things it's doing here are necessary in the former case, but a really bad idea in the latter (potentially messing up the order's ship and bill addresses in certain cases like guest checkout).
2021-11-14 16:54:44 +00:00
Matt-Yorkley
48acc0ecd0
Add Bugsnag notice when an OC closes during checkout completion
...
This info could be useful to know whilst debugging order completion issues.
2021-11-14 13:58:15 +00:00
Maikel Linke
6212ad18a8
Test for concurrent checkouts reliably
...
Apparently, controller specs are not thread safe and we got random test
failures. I converted it into a request spec and fine-tuned it to make
it more reliable.
2021-11-12 14:09:17 +11:00
Matt-Yorkley
439a2318fb
Move API response under top-level :data node
2021-11-04 14:55:23 +00:00
Matt-Yorkley
97b22ec65d
Update related specs
2021-11-04 14:55:23 +00:00
Matt-Yorkley
817f0942dd
Pull in reports POC work replacing Packing reports
2021-11-04 14:55:23 +00:00
Matt-Yorkley
cf5d964133
Update usages of old preference getters and setters
2021-11-04 11:48:30 +00:00
Maikel
43514f61ea
Merge pull request #8312 from mariodz95/8249_fix_snail_on_shipping_method_fees
...
Fix snail on shipping method fees
2021-10-29 12:04:25 +11: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
Maikel
2e8f4c1538
Merge pull request #8367 from bellvat/bug-show-error
...
Add test and change order_cycle#show to redirect to edit page.
2021-10-28 16:36:47 +11:00
Luis Azcuaga
e8fd89a6d2
Run rubocop over existing todo
2021-10-25 21:28:28 -05:00
Monica Sirathanarun
ebaf96ddae
Add test and change order_cycle#show to redirect to edit page.
2021-10-19 23:20:54 +07:00
mariodz95
d1160ec66a
Fix snail on shipping method fees
2021-10-19 09:56:35 +02:00
Jean-Baptiste Bellet
115dac3ca9
Add tax_category_id for a line_item
2021-10-18 10:56:27 +02:00
Adrien Chauve
f256bb7d28
Add new failing test on sorting orders by total (api/v0/orders)
2021-10-01 18:32:59 +02:00
Maikel
a3c31f7d86
Revert "Kill stripe connect"
2021-09-20 08:39:34 +10:00