Commit Graph

  • 44ba499ad9 Stub rather than set Stripe api_key in specs Rob Harrington 2017-07-14 17:37:20 +10:00
  • 44d172f3b4 Mock stripe_account_id for StripeAccount gateway specs Rob Harrington 2017-07-14 17:36:31 +10:00
  • d2b6ba4330 Provide a Stripe client_id for StripeAccountsController spec Rob Harrington 2017-07-14 17:33:54 +10:00
  • 576e4db9be Authorize StripeAccount#status using the account object Rob Harrington 2017-07-14 15:32:06 +10:00
  • 692ccf0598 Cleaning up oauth2 extension that is no longer required Rob Harrington 2017-07-14 14:42:09 +10:00
  • ce65a9d063 Bump stripe gem version to 3.0.1 Rob Harrington 2017-07-14 14:39:20 +10:00
  • ffc99df373 Consolidate Stripe routes/actions into StripeAccountsController Rob Harrington 2017-07-14 11:40:08 +10:00
  • 5c58d30ca7 Create payment from user-specified payment method when using existing card Rob Harrington 2017-07-14 10:48:27 +10:00
  • 3efabf5c50 Add translations for Stripe connection flashes Rob Harrington 2017-07-13 14:15:10 +10:00
  • 919e39f950 Provide a valid enterprise for building redirect path for Stripe Connect callback Rob Harrington 2017-07-13 14:12:06 +10:00
  • 0e14704572 Kill empty space Rob Harrington 2017-07-07 16:54:01 +10:00
  • e9d062a8c2 Use nested module/class definitions instead of compact style Rob Harrington 2017-07-07 15:38:40 +10:00
  • f3af36deca Disable rubocop Style/PredicateName check against override of Spree method Rob Harrington 2017-07-07 15:33:40 +10:00
  • ecb78233d9 Use guard clauses where possible Rob Harrington 2017-07-07 15:31:18 +10:00
  • a68ae1fe2d Provide a sensible flash message when CreditCard#destroy action fails Rob Harrington 2017-07-07 15:27:01 +10:00
  • 28ba05ec6b Fix Lint/UselessAssignment offences for stripe-connect Rob Harrington 2017-07-07 15:23:31 +10:00
  • 5b675cbaba Make OAuth private methods actually private Rob Harrington 2017-07-07 15:21:30 +10:00
  • 42dd58426e Auto-correct rubocop offences for stripe-connect Rob Harrington 2017-07-07 15:03:22 +10:00
  • c83755f901 Clean up StripeConnect gateway Rob Harrington 2017-07-07 14:58:18 +10:00
  • ae2d3d3fd9 Refactoring StripeHelper into service objects Rob Harrington 2017-07-07 11:48:57 +10:00
  • e6eb45b453 Name StripeAccountController spec file correctly Rob Harrington 2017-07-06 20:45:01 +10:00
  • 01ce092ebc Handle Stripe token creation request failure Rob Harrington 2017-06-30 13:56:25 +10:00
  • 5d77ef52c5 Replace text strings with variables in stripe request spec Rob Harrington 2017-06-30 13:26:01 +10:00
  • e8636c0cbf Set dummy Stripe API key for front-end credits cards feature spec Rob Harrington 2017-06-22 13:36:07 +10:00
  • f890927423 Implementing the Stripe Connect feature toggle Rob Harrington 2017-06-22 09:38:48 +10:00
  • 6499d17cb1 Adding feature toggle config variable for Stripe Connect Rob Harrington 2017-06-16 11:37:54 +10:00
  • 1d1e581c85 Refactoring CreditCardController, rendering card processing errors as json Rob Harrington 2017-06-15 14:50:52 +10:00
  • 64009a2c9e CheckoutController can render payment gateway error messages as json Rob Harrington 2017-06-14 14:30:19 +10:00
  • 14f6ea4c01 Adding required Stripe config variables to application.yml.example Rob Harrington 2017-06-02 09:38:35 +10:00
  • fdca1f6606 Adding message about having no saved cards to account/cards UI Rob Harrington 2017-05-31 14:40:15 +10:00
  • 63a15ec392 CreditCardController#destroy redirects to account#/cards Rob Harrington 2017-05-31 13:56:51 +10:00
  • 356dad73ba Ensure spec has Stripe.api_key set Rob Harrington 2017-05-31 12:40:06 +10:00
  • fb5784fbda Allow updating of account settings from account tabs interface Rob Harrington 2017-05-31 12:36:35 +10:00
  • 4ef97aa418 Showing past orders under the orders tab Rob Harrington 2017-05-27 09:37:25 +10:00
  • b9d72ce4cf Refactoring logic for displaying orders on the front-end account page Rob Harrington 2017-05-26 21:08:07 +10:00
  • 9733bb3a77 Renaming account#history to account#transactions Rob Harrington 2017-05-26 17:25:10 +10:00
  • 532dc57725 Adding translations for /account tabs Rob Harrington 2017-05-26 17:22:53 +10:00
  • f4c3fbf8bc Refactoring credit cards interface, and backend logic Rob Harrington 2017-05-26 17:16:07 +10:00
  • 778526af2e Rewriting styling for new tabs components Rob Harrington 2017-05-25 16:22:04 +10:00
  • 1aebee0583 WIP: rebuilding accounts page using tabs infrastructure Rob Harrington 2017-05-18 19:15:22 +10:00
  • ed5c650456 Writing a new tabset component for front-end tabs Rob Harrington 2017-05-18 19:14:33 +10:00
  • b8c6da301c Removing unnecessary dependencies from OrdersCtrl Rob Harrington 2017-05-18 19:13:12 +10:00
  • 269a60b36f Adding request specs for case when using an existing card stored by Stripe for payment Rob Harrington 2017-05-11 16:47:58 +10:00
  • 25907f97a8 Cleaning up Stripe Connect request spec Rob Harrington 2017-05-11 11:52:13 +10:00
  • d1779b9457 Keep timestamps as :null => false in schema Rob Harrington 2017-05-11 11:51:33 +10:00
  • ddac179f9b Add translations stveep 2017-05-01 22:46:28 +01:00
  • 25f48d944c Add delete links, tidy up UI a bit (WIP), page refresh after adding still doesn't work stveep 2017-05-01 22:18:33 +01:00
  • c9c4680ef6 Backend code to create Stripe customers and store their IDs in CreditCards. Page refresh not working stveep 2017-05-01 20:21:30 +01:00
  • 1449169b16 Basic UI for adding credit card details and getting a Stripe token without making a payment stveep 2017-05-01 11:03:23 +01:00
  • c6e50a3f7f Stub Stripe requests in feature spec stveep 2017-04-02 19:10:38 +01:00
  • 56295e5ffb Fix request and feature specs stveep 2017-04-02 18:14:49 +01:00
  • 33a3db8698 Making :source attr_accessible for Spree::Payment Rob Harrington 2017-03-29 14:45:11 +11:00
  • c4f9a5a234 Add code to CheckoutController to construct card attributes when using an existing card (via a818fbbecd/core/app/models/spree/order/checkout.rb:212) stveep 2017-03-23 22:42:08 +00:00
  • 627899bbd4 spec for source attributes to pass for saved card stveep 2017-03-20 19:35:11 +00:00
  • 12f4f2d17a Add some logic to check whether a saved card has been selected before making a request from Stripe stveep 2017-03-19 22:09:16 +00:00
  • 300dc3084c Add default card, disable inputs when a card is selected stveep 2017-03-12 21:22:59 +00:00
  • 50c3d1367d Tidy up comment stveep 2017-03-05 08:26:44 +00:00
  • a1cad82564 Only show credit cards if previously saved, split credit card db migrations and tidy up serializer stveep 2017-03-04 15:14:38 +00:00
  • 298fd057f5 Check for current user before injecting credit cards stveep 2017-03-04 14:33:49 +00:00
  • 33b570b117 Inject cards for current user into checkout and add selector dropdown to gateway partial. stveep 2017-02-27 19:00:51 +00:00
  • 3b05b76b80 Bring in ability to store CreditCards against Users from Spree 2.3 (spree commit d470b31798f3). stveep 2017-02-26 21:52:12 +00:00
  • c97a140471 WIP: Storing Stripe card details for later use Rob Harrington 2017-02-23 17:53:33 +11:00
  • 7c831c9844 Adding StripeJS to checkout page Rob Harrington 2017-02-22 10:47:31 +11:00
  • 5c16fefe41 Creating basic angular StripeJS wrapper service for requesting tokens Rob Harrington 2017-02-21 12:25:51 +11:00
  • 5ad88f992c Adding live stripe account status display to payment method create/edit interface Rob Harrington 2017-02-20 13:34:27 +11:00
  • f87f4310f0 Adding #status controller action for stripe accounts to fetch current info direct from Stripe Rob Harrington 2017-02-20 12:36:23 +11:00
  • 987ad0df6c Very basic Stripe Connect payment method interface Rob Harrington 2017-02-17 18:10:17 +11:00
  • d500c20d3f Adding new StripeConnect payment gateway Rob Harrington 2017-02-17 12:24:21 +11:00
  • 99a7665edc Requesting read_write permission when authorizing Stripe standalone account Rob Harrington 2017-02-17 12:22:32 +11:00
  • 37f60bf7a1 Setting Stripe.api_key in an initializer rather than helper Rob Harrington 2017-02-22 11:19:03 +11:00
  • b5a6bcdf9d Opening up restriction on activemerchant version by updating Spree ref Rob Harrington 2017-02-23 12:20:20 +11:00
  • 858852123d Add configuration example stveep 2017-01-21 14:55:23 +00:00
  • ae72ebef5e Fix disconnect button formatting stveep 2017-01-21 13:00:41 +00:00
  • 1450bfd726 Don't retrieve event from Stripe for a deauthorisation stveep 2017-01-21 10:57:13 +00:00
  • 22e4a50807 Change Stripe webhook handling to post request stveep 2017-01-21 10:27:25 +00:00
  • a039286240 Webhook processing changes: fix expected request data formatting stveep 2017-01-21 09:43:34 +00:00
  • 9ac638f8ba Fix some leftover refactoring from an earlier modification to enterprises controller (now not needed as moved to admin/enterprises) stveep 2016-11-12 13:07:26 +00:00
  • da335703b4 Fix specs for travis stveep 2016-11-12 12:57:52 +00:00
  • d374ab569d Undo dodgy redirect changes and set spec to pending stveep 2016-11-12 12:07:00 +00:00
  • 47df2dc20b Tweaking redirects and links stveep 2016-10-30 21:16:51 +00:00
  • 5c43c75b00 Specify SHA-256 algorithm for JWT in spec fixture stveep 2016-10-30 08:57:04 +00:00
  • f83c7a88df Specify SHA-256 algorithm for JWT stveep 2016-10-30 08:52:28 +00:00
  • 5ae473e07f Add specs, fix redirect after requring relogin stveep 2016-10-29 20:17:22 +01:00
  • e69b27a3c4 Tidy up (temp) UI a bit stveep 2016-10-24 22:06:52 +01:00
  • e52e04ba29 Adding Stripe Connect information so we don't forget it later stveep 2016-10-24 21:30:18 +01:00
  • 1dcffa790d Add JWT encoding to state param stveep 2016-10-23 08:20:45 +01:00
  • f22278db51 Don't disconnect if the same Stripe account is connected to multiple Enterprises stveep 2016-10-02 15:00:16 +01:00
  • 0280e04008 Move OAuth2 patching to an initializer stveep 2016-10-02 14:28:07 +01:00
  • 41607c5846 De-associate accounts in response to webhook (not tested with a real deauth request yet) Steve Pettitt 2016-10-01 20:50:56 +01:00
  • 1c69f2c670 Stripe Helper specs Steve Pettitt 2016-10-01 19:34:39 +01:00
  • 05a69ff0c6 Worklow to disconnect Stripe from OFN admin interface Steve Pettitt 2016-10-01 11:43:54 +01:00
  • 758f57a889 Remove CSRF check - doesn't work properly as implemented, but connect request should probably be changed to POST Steve Pettitt 2016-10-01 10:31:49 +01:00
  • eed11faa62 Monkey patching OAuth2 gem to include Stripe disconnection method Steve Pettitt 2016-09-29 21:32:27 +01:00
  • 7fd8c5956d Check CSRF, allow a Stripe account to be connected to more than one enterprise (but not vice versa) Steve Pettitt 2016-09-28 17:26:08 +01:00
  • 8ed983cf03 Correct spelling :) Steve Pettitt 2016-09-18 10:55:34 +01:00
  • b6292e2723 Add some logic to check for a connected Stripe Account in form Steve Pettitt 2016-09-18 10:26:31 +01:00
  • 8bdf57d0d9 Add Stripe Connect button (CSS) in admin/enterprises/:id/edit#payment_methods Steve Pettitt 2016-09-18 09:24:57 +01:00
  • 03f590ccc4 Callback creates a new StripeAccount with id and publishable key. Steve Pettitt 2016-09-17 23:59:36 +01:00
  • 06279848c6 Stripe auth and callback working. Still need to process callback. Steve Pettitt 2016-09-17 23:19:28 +01:00
  • 3623325cab Add missing files Steve Pettitt 2016-09-05 19:31:40 +01:00