Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Ruby Gems
/
var
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Marcel
2016-03-01 15:40:11 -0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0fe9fea89d427465a74104df65f68761f52c583f
0fe9fea8
1 parent
00b632ff
Added discharge functionality
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
lib/var.rb
lib/var.rb
View file @
0fe9fea
...
...
@@ -119,6 +119,12 @@ module ActsAsChargeable
# TODO: Create a new table with transaction
end
def
manual_discharge
update_columns
(
var_service:
'manual'
,
var_status:
'pending'
,
var_payment_at:
nil
)
# TODO: Create a new table with transaction
end
# def charge_with_paypal(options)
# if(!options.include? :card)
# error_message = "Paypal needs a card sent as a third paramater"
...
...
Please
register
or
login
to post a comment