phcdevworks_accounts_stripe 0.1.6 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +39 -21
  4. data/app/assets/config/phcdevworks_accounts_stripe_manifest.js +2 -3
  5. data/app/controllers/phcdevworks_accounts_stripe/admin/customers_controller.rb +17 -17
  6. data/app/controllers/phcdevworks_accounts_stripe/admin/invoices_controller.rb +17 -17
  7. data/app/controllers/phcdevworks_accounts_stripe/admin/products_controller.rb +16 -16
  8. data/app/controllers/phcdevworks_accounts_stripe/admin/subscriptions_controller.rb +16 -16
  9. data/app/controllers/phcdevworks_accounts_stripe/application_controller.rb +10 -10
  10. data/app/controllers/phcdevworks_accounts_stripe/user/invoices_controller.rb +19 -19
  11. data/app/controllers/phcdevworks_accounts_stripe/user/product_controller.rb +13 -13
  12. data/app/controllers/phcdevworks_accounts_stripe/user/subscription_controller.rb +18 -18
  13. data/app/helpers/phcdevworks_accounts_stripe/admin/customers_helper.rb +4 -4
  14. data/app/helpers/phcdevworks_accounts_stripe/admin/invoices_helper.rb +4 -4
  15. data/app/helpers/phcdevworks_accounts_stripe/admin/plans_helper.rb +4 -4
  16. data/app/helpers/phcdevworks_accounts_stripe/admin/subscriptions_helper.rb +4 -4
  17. data/app/helpers/phcdevworks_accounts_stripe/application_helper.rb +18 -18
  18. data/app/helpers/phcdevworks_accounts_stripe/user/invoices_helper.rb +4 -4
  19. data/app/helpers/phcdevworks_accounts_stripe/user/plan_helper.rb +4 -4
  20. data/app/helpers/phcdevworks_accounts_stripe/user/subscription_helper.rb +4 -4
  21. data/app/mailers/phcdevworks_accounts_stripe/application_mailer.rb +2 -2
  22. data/app/models/phcdevworks_accounts_stripe/application_record.rb +5 -5
  23. data/app/views/layouts/phcdevworks_accounts_stripe/application.html.erb +34 -27
  24. data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/footer/_footer.html.erb +9 -7
  25. data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/navigation/_top_menu.html.erb +22 -21
  26. data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/sidebars/_side_menu.html.erb +491 -349
  27. data/app/views/phcdevworks_accounts_stripe/admin/customers/admin_customer_list.html.erb +59 -67
  28. data/app/views/phcdevworks_accounts_stripe/admin/invoices/admin_invoice_list.html.erb +81 -89
  29. data/app/views/phcdevworks_accounts_stripe/admin/products/admin_products_list.html.erb +61 -69
  30. data/app/views/phcdevworks_accounts_stripe/admin/subscriptions/admin_subscription_list.html.erb +67 -75
  31. data/app/views/phcdevworks_accounts_stripe/user/invoices/user_invoice_list.html.erb +88 -88
  32. data/app/views/phcdevworks_accounts_stripe/user/products/user_product_list.html.erb +66 -66
  33. data/app/views/phcdevworks_accounts_stripe/user/subscription/user_subscription_cancel.html.erb +66 -66
  34. data/app/views/phcdevworks_accounts_stripe/user/subscription/user_subscription_item.html.erb +70 -70
  35. data/config/initializers/stripe.rb +8 -8
  36. data/config/routes.rb +0 -3
  37. data/lib/phcdevworks_accounts_stripe/engine.rb +1 -4
  38. data/lib/phcdevworks_accounts_stripe/version.rb +1 -1
  39. metadata +47 -55
  40. data/app/assets/javascripts/phcdevworks_accounts_stripe/admin/invoices.coffee +0 -3
  41. data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/customers.css +0 -4
  42. data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/invoices.scss +0 -3
  43. data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/plans.css +0 -4
  44. data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/subscriptions.css +0 -4
  45. data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/invoices.css +0 -4
  46. data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/plan.css +0 -4
  47. data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/subscription.css +0 -4
@@ -1,89 +1,89 @@
1
- <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Invoice Manager" %>
3
- <% phc_title_tagline "Stripe Invoice List" %>
4
- <% phc_breadcrumb_one "Home" %>
5
- <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
- <!-- PHCTitleSEO Title Variables -->
7
-
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
10
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
- </ol>
13
- <!-- Page Bradcrumbs -->
14
-
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
18
-
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
22
-
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
25
-
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
31
-
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
34
-
35
- <!-- Index - Table -->
36
- <div class="table-responsive">
37
- <table class="table table-striped table-bordered">
38
-
39
- <thead>
40
- <tr>
41
- <th>Status</th>
42
- <th>Account Name</th>
43
- <th>Invoice Amount</th>
44
- <th>Invoice Paid</th>
45
- <th>Invoice Due</th>
46
- <th>Due Date</th>
47
- <th>Invoice PDF Download</th>
48
- <th>Invoice Link</th>
49
- </tr>
50
- </thead>
51
-
52
- <tbody>
53
- <% @user_invoice_list.each do |user_invoice| %>
54
- <tr>
55
- <td><%= user_invoice.status.capitalize %></td>
56
- <td><%= user_invoice.account_name %></td>
57
- <td><%= number_to_currency(user_invoice.amount_due/100) %></td>
58
- <td><%= number_to_currency(user_invoice.amount_paid/100) %></td>
59
- <td><%= number_to_currency(user_invoice.amount_remaining/100) %></td>
60
- <td><%= Time.at(user_invoice.due_date).to_datetime.strftime("%B %d, %Y") %></td>
61
- <td>
62
- <i class="fad fa-external-link"></i>
63
- <%= link_to user_invoice.invoice_pdf, target: "_blank" do %>
64
- Invoice #: <%= user_invoice.number %>
65
- <% end %>
66
- </td>
67
- <td>
68
- <i class="fad fa-external-link"></i>
69
- <%= link_to user_invoice.hosted_invoice_url, target: "_blank" do %>
70
- Invoice #: <%= user_invoice.number %>
71
- <% end %>
72
- </td>
73
- </tr>
74
- <% end %>
75
- </tbody>
76
-
77
- </table>
78
- </div>
79
- <!-- Index - Table -->
80
-
81
- </div>
82
- <!-- Panel - Body -->
83
-
84
- </div>
85
- <!-- Panel -->
86
-
87
- </div>
88
- </div>
1
+ <!-- PHCTitleSEO Title Variables -->
2
+ <% phc_title "Invoice Manager" %>
3
+ <% phc_title_tagline "Stripe Invoice List" %>
4
+ <% phc_breadcrumb_one "Home" %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
+ <!-- PHCTitleSEO Title Variables -->
7
+
8
+ <!-- Page Bradcrumbs -->
9
+ <ol class="breadcrumb pull-right">
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
+ </ol>
13
+ <!-- Page Bradcrumbs -->
14
+
15
+ <!-- Page Header -->
16
+ <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
+ <!-- Page Header -->
18
+
19
+ <!-- Page Content -->
20
+ <div class="row">
21
+ <div class="col-lg-12">
22
+
23
+ <!-- Panel -->
24
+ <div class="panel panel-inverse">
25
+
26
+ <!-- Panel - Heading -->
27
+ <div class="panel-heading">
28
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
+ </div>
30
+ <!-- Panel - Heading -->
31
+
32
+ <!-- Panel - Body -->
33
+ <div class="panel-body">
34
+
35
+ <!-- Index - Table -->
36
+ <div class="table-responsive">
37
+ <table class="table table-striped table-bordered">
38
+
39
+ <thead>
40
+ <tr>
41
+ <th>Status</th>
42
+ <th>Account Name</th>
43
+ <th>Invoice Amount</th>
44
+ <th>Invoice Paid</th>
45
+ <th>Invoice Due</th>
46
+ <th>Due Date</th>
47
+ <th>Invoice PDF Download</th>
48
+ <th>Invoice Link</th>
49
+ </tr>
50
+ </thead>
51
+
52
+ <tbody>
53
+ <% @user_invoice_list.each do |user_invoice| %>
54
+ <tr>
55
+ <td><%= user_invoice.status.capitalize %></td>
56
+ <td><%= user_invoice.account_name %></td>
57
+ <td><%= number_to_currency(user_invoice.amount_due/100) %></td>
58
+ <td><%= number_to_currency(user_invoice.amount_paid/100) %></td>
59
+ <td><%= number_to_currency(user_invoice.amount_remaining/100) %></td>
60
+ <td><%= Time.at(user_invoice.due_date).to_datetime.strftime("%B %d, %Y") %></td>
61
+ <td>
62
+ <i class="fad fa-external-link"></i>
63
+ <%= link_to user_invoice.invoice_pdf, target: "_blank" do %>
64
+ Invoice #: <%= user_invoice.number %>
65
+ <% end %>
66
+ </td>
67
+ <td>
68
+ <i class="fad fa-external-link"></i>
69
+ <%= link_to user_invoice.hosted_invoice_url, target: "_blank" do %>
70
+ Invoice #: <%= user_invoice.number %>
71
+ <% end %>
72
+ </td>
73
+ </tr>
74
+ <% end %>
75
+ </tbody>
76
+
77
+ </table>
78
+ </div>
79
+ <!-- Index - Table -->
80
+
81
+ </div>
82
+ <!-- Panel - Body -->
83
+
84
+ </div>
85
+ <!-- Panel -->
86
+
87
+ </div>
88
+ </div>
89
89
  <!-- Page Content -->
@@ -1,67 +1,67 @@
1
- <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Customer Manager" %>
3
- <% phc_title_tagline "Stripe Customer List" %>
4
- <% phc_breadcrumb_one "Home" %>
5
- <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
- <!-- PHCTitleSEO Title Variables -->
7
-
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
10
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
- </ol>
13
- <!-- Page Bradcrumbs -->
14
-
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
18
-
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
22
-
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
25
-
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
31
-
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
34
-
35
- <!-- Index - Table -->
36
- <div class="table-responsive">
37
- <table class="table table-striped table-bordered">
38
-
39
- <thead>
40
- <tr>
41
- <th>Customer Name</th>
42
- <th>Customer Email</th>
43
- </tr>
44
- </thead>
45
-
46
- <tbody>
47
- <% @admin_customer_list.each do |customers| %>
48
- <tr>
49
- <td><%= customers.name %></td>
50
- <td><%= customers.email %></td>
51
- </tr>
52
- <% end %>
53
- </tbody>
54
-
55
- </table>
56
- </div>
57
- <!-- Index - Table -->
58
-
59
- </div>
60
- <!-- Panel - Body -->
61
-
62
- </div>
63
- <!-- Panel -->
64
-
65
- </div>
66
- </div>
1
+ <!-- PHCTitleSEO Title Variables -->
2
+ <% phc_title "Customer Manager" %>
3
+ <% phc_title_tagline "Stripe Customer List" %>
4
+ <% phc_breadcrumb_one "Home" %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
+ <!-- PHCTitleSEO Title Variables -->
7
+
8
+ <!-- Page Bradcrumbs -->
9
+ <ol class="breadcrumb pull-right">
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
+ </ol>
13
+ <!-- Page Bradcrumbs -->
14
+
15
+ <!-- Page Header -->
16
+ <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
+ <!-- Page Header -->
18
+
19
+ <!-- Page Content -->
20
+ <div class="row">
21
+ <div class="col-lg-12">
22
+
23
+ <!-- Panel -->
24
+ <div class="panel panel-inverse">
25
+
26
+ <!-- Panel - Heading -->
27
+ <div class="panel-heading">
28
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
+ </div>
30
+ <!-- Panel - Heading -->
31
+
32
+ <!-- Panel - Body -->
33
+ <div class="panel-body">
34
+
35
+ <!-- Index - Table -->
36
+ <div class="table-responsive">
37
+ <table class="table table-striped table-bordered">
38
+
39
+ <thead>
40
+ <tr>
41
+ <th>Customer Name</th>
42
+ <th>Customer Email</th>
43
+ </tr>
44
+ </thead>
45
+
46
+ <tbody>
47
+ <% @admin_customer_list.each do |customers| %>
48
+ <tr>
49
+ <td><%= customers.name %></td>
50
+ <td><%= customers.email %></td>
51
+ </tr>
52
+ <% end %>
53
+ </tbody>
54
+
55
+ </table>
56
+ </div>
57
+ <!-- Index - Table -->
58
+
59
+ </div>
60
+ <!-- Panel - Body -->
61
+
62
+ </div>
63
+ <!-- Panel -->
64
+
65
+ </div>
66
+ </div>
67
67
  <!-- Page Content -->
@@ -1,67 +1,67 @@
1
- <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Customer Manager" %>
3
- <% phc_title_tagline "Stripe Customer List" %>
4
- <% phc_breadcrumb_one "Home" %>
5
- <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
- <!-- PHCTitleSEO Title Variables -->
7
-
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
10
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
- </ol>
13
- <!-- Page Bradcrumbs -->
14
-
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
18
-
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
22
-
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
25
-
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
31
-
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
34
-
35
- <!-- Index - Table -->
36
- <div class="table-responsive">
37
- <table class="table table-striped table-bordered">
38
-
39
- <thead>
40
- <tr>
41
- <th>Customer Name</th>
42
- <th>Customer Email</th>
43
- </tr>
44
- </thead>
45
-
46
- <tbody>
47
- <% @admin_customer_list.each do |customers| %>
48
- <tr>
49
- <td><%= customers.name %></td>
50
- <td><%= customers.email %></td>
51
- </tr>
52
- <% end %>
53
- </tbody>
54
-
55
- </table>
56
- </div>
57
- <!-- Index - Table -->
58
-
59
- </div>
60
- <!-- Panel - Body -->
61
-
62
- </div>
63
- <!-- Panel -->
64
-
65
- </div>
66
- </div>
1
+ <!-- PHCTitleSEO Title Variables -->
2
+ <% phc_title "Customer Manager" %>
3
+ <% phc_title_tagline "Stripe Customer List" %>
4
+ <% phc_breadcrumb_one "Home" %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
+ <!-- PHCTitleSEO Title Variables -->
7
+
8
+ <!-- Page Bradcrumbs -->
9
+ <ol class="breadcrumb pull-right">
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
+ </ol>
13
+ <!-- Page Bradcrumbs -->
14
+
15
+ <!-- Page Header -->
16
+ <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
+ <!-- Page Header -->
18
+
19
+ <!-- Page Content -->
20
+ <div class="row">
21
+ <div class="col-lg-12">
22
+
23
+ <!-- Panel -->
24
+ <div class="panel panel-inverse">
25
+
26
+ <!-- Panel - Heading -->
27
+ <div class="panel-heading">
28
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
+ </div>
30
+ <!-- Panel - Heading -->
31
+
32
+ <!-- Panel - Body -->
33
+ <div class="panel-body">
34
+
35
+ <!-- Index - Table -->
36
+ <div class="table-responsive">
37
+ <table class="table table-striped table-bordered">
38
+
39
+ <thead>
40
+ <tr>
41
+ <th>Customer Name</th>
42
+ <th>Customer Email</th>
43
+ </tr>
44
+ </thead>
45
+
46
+ <tbody>
47
+ <% @admin_customer_list.each do |customers| %>
48
+ <tr>
49
+ <td><%= customers.name %></td>
50
+ <td><%= customers.email %></td>
51
+ </tr>
52
+ <% end %>
53
+ </tbody>
54
+
55
+ </table>
56
+ </div>
57
+ <!-- Index - Table -->
58
+
59
+ </div>
60
+ <!-- Panel - Body -->
61
+
62
+ </div>
63
+ <!-- Panel -->
64
+
65
+ </div>
66
+ </div>
67
67
  <!-- Page Content -->
@@ -1,71 +1,71 @@
1
- <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Current Subscription" %>
3
- <% phc_title_tagline "Information on Your Subscription" %>
4
- <% phc_breadcrumb_one "Home" %>
5
- <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
- <!-- PHCTitleSEO Title Variables -->
7
-
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
10
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
- </ol>
13
- <!-- Page Bradcrumbs -->
14
-
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
18
-
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
22
-
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
25
-
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
31
-
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
34
-
35
- <!-- Index - Table -->
36
- <div class="table-responsive">
37
- <table class="table table-striped table-bordered">
38
-
39
- <thead>
40
- <tr>
41
- <th>Status</th>
42
- <th>Start Date</th>
43
- <th>Next Charge Date</th>
44
- <th>Amount Due ($)</th>
45
- </tr>
46
- </thead>
47
-
48
- <tbody>
49
- <% @user_subscription_item.each do |subscription_item| %>
50
- <tr>
51
- <td><%= subscription_item.status.capitalize %></td>
52
- <td><%= Time.at(subscription_item.created).to_datetime.strftime("%B %d, %Y") %></td>
53
- <td><%= Time.at(subscription_item.current_period_end).to_datetime.strftime("%B %d, %Y") %></td>
54
- <td><%= '%.2f' % BigDecimal(subscription_item.plan.amount/100).to_i + ' ' + subscription_item.plan.currency.upcase %></td>
55
- </tr>
56
- <% end %>
57
- </tbody>
58
-
59
- </table>
60
- </div>
61
- <!-- Index - Table -->
62
-
63
- </div>
64
- <!-- Panel - Body -->
65
-
66
- </div>
67
- <!-- Panel -->
68
-
69
- </div>
70
- </div>
1
+ <!-- PHCTitleSEO Title Variables -->
2
+ <% phc_title "Current Subscription" %>
3
+ <% phc_title_tagline "Information on Your Subscription" %>
4
+ <% phc_breadcrumb_one "Home" %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
+ <!-- PHCTitleSEO Title Variables -->
7
+
8
+ <!-- Page Bradcrumbs -->
9
+ <ol class="breadcrumb pull-right">
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
+ </ol>
13
+ <!-- Page Bradcrumbs -->
14
+
15
+ <!-- Page Header -->
16
+ <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
+ <!-- Page Header -->
18
+
19
+ <!-- Page Content -->
20
+ <div class="row">
21
+ <div class="col-lg-12">
22
+
23
+ <!-- Panel -->
24
+ <div class="panel panel-inverse">
25
+
26
+ <!-- Panel - Heading -->
27
+ <div class="panel-heading">
28
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
+ </div>
30
+ <!-- Panel - Heading -->
31
+
32
+ <!-- Panel - Body -->
33
+ <div class="panel-body">
34
+
35
+ <!-- Index - Table -->
36
+ <div class="table-responsive">
37
+ <table class="table table-striped table-bordered">
38
+
39
+ <thead>
40
+ <tr>
41
+ <th>Status</th>
42
+ <th>Start Date</th>
43
+ <th>Next Charge Date</th>
44
+ <th>Amount Due ($)</th>
45
+ </tr>
46
+ </thead>
47
+
48
+ <tbody>
49
+ <% @user_subscription_item.each do |subscription_item| %>
50
+ <tr>
51
+ <td><%= subscription_item.status.capitalize %></td>
52
+ <td><%= Time.at(subscription_item.created).to_datetime.strftime("%B %d, %Y") %></td>
53
+ <td><%= Time.at(subscription_item.current_period_end).to_datetime.strftime("%B %d, %Y") %></td>
54
+ <td><%= '%.2f' % BigDecimal(subscription_item.plan.amount/100).to_i + ' ' + subscription_item.plan.currency.upcase %></td>
55
+ </tr>
56
+ <% end %>
57
+ </tbody>
58
+
59
+ </table>
60
+ </div>
61
+ <!-- Index - Table -->
62
+
63
+ </div>
64
+ <!-- Panel - Body -->
65
+
66
+ </div>
67
+ <!-- Panel -->
68
+
69
+ </div>
70
+ </div>
71
71
  <!-- Page Content -->
@@ -1,8 +1,8 @@
1
- require 'stripe'
2
-
3
- Rails.configuration.stripe = {
4
- :publishable_key => ENV['PHCDEV_STRIPE_PK'],
5
- :secret_key => ENV['PHCDEV_STRIPE_SK']
6
- }
7
-
8
- Stripe.api_key = Rails.configuration.stripe[:secret_key]
1
+ require 'stripe'
2
+
3
+ Rails.configuration.stripe = {
4
+ :publishable_key => ENV['PHCDEV_STRIPE_PK'],
5
+ :secret_key => ENV['PHCDEV_STRIPE_SK']
6
+ }
7
+
8
+ Stripe.api_key = Rails.configuration.stripe[:secret_key]
data/config/routes.rb CHANGED
@@ -11,7 +11,4 @@ PhcdevworksAccountsStripe::Engine.routes.draw do
11
11
  match "/admin/products", to: "admin/products#admin_products_list", via: "get"
12
12
  match "/admin/subscriptions", to: "admin/subscriptions#admin_subscription_list", via: "get"
13
13
 
14
- # Mount Routes
15
- mount PhcdevworksAccounts::Engine, :at => '/'
16
-
17
14
  end
@@ -29,9 +29,6 @@ module PhcdevworksAccountsStripe
29
29
  # Mailer Dependencies
30
30
  require "mail_form"
31
31
 
32
- # Load User Accounts
33
- require "phcdevworks_accounts"
34
-
35
32
  # Engine Namespace
36
33
  isolate_namespace PhcdevworksAccountsStripe
37
34
 
@@ -44,4 +41,4 @@ module PhcdevworksAccountsStripe
44
41
  end
45
42
 
46
43
  end
47
- end
44
+ end
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksAccountsStripe
2
- VERSION = '0.1.6'
2
+ VERSION = "1.0.0"
3
3
  end