Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Added Payments Setting tab in the settings #351

Merged
vipulnsward merged 2 commits intodevelopfrom
payments-settings-tab
Apr 28, 2022
Merged

Added Payments Setting tab in the settings #351
vipulnsward merged 2 commits intodevelopfrom
payments-settings-tab

Conversation

@aniketkaushik
Copy link
Contributor

Notion card

  • New feature (non-breaking change which adds functionality)

Checklist:

  • I have manually tested all workflows
  • I have performed a self-review of my own code
  • I have added automated tests for my code

@github-actions
Copy link

Current Code Coverage Percent of this PR:

96.54 %

Files having coverage below 100%

Impacted Files Coverage
/app/controllers/subscriptions_controller.rb 66.67 %
/app/controllers/invoices_controller.rb 63.64 %
/app/models/client.rb 92.5 %
/app/models/invoice.rb 95.83 %
/app/policies/subscriptions_policy.rb 66.67 %
/app/services/application_service.rb 66.67 %
/app/controllers/invoices/payments_controller.rb 61.11 %
/app/services/invoice_payment/checkout.rb 43.48 %

Copy link
Contributor

@keshavbiswa keshavbiswa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some comments.

@@ -0,0 +1 @@
<H1>Code</H1> No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what this is supposed to be?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This I kept for reference, Shruti will work on that page,

@@ -0,0 +1,7 @@
# frozen_string_literal: true

class PaymentsSettingController < ApplicationController
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be PaymentSettings controller?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can change it to paymentSettings,

config/routes.rb Outdated
Comment on lines 65 to 66
get "payments_setting/*path", to: "payments_setting#index", via: :all
get "payments_setting", to: "payments_setting#index"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not understanding why are we doing this and not

resource :payment_settings, only: [:index]

Is there a specific use case I'm missing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is how Ajinkya prefers for react components

@vipulnsward vipulnsward merged commit 15b0b25 into develop Apr 28, 2022
@vipulnsward vipulnsward deleted the payments-settings-tab branch April 28, 2022 15:57
vipulnsward pushed a commit that referenced this pull request Feb 15, 2026
* added payments_setting

* change payments_setting to payment_settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants