Merge branch 'manual_discharge' into 'master'
Added discharge functionality See merge request !1
Showing
1 changed file
with
6 additions
and
0 deletions
| ... | @@ -119,6 +119,12 @@ module ActsAsChargeable | ... | @@ -119,6 +119,12 @@ module ActsAsChargeable |
| 119 | # TODO: Create a new table with transaction | 119 | # TODO: Create a new table with transaction |
| 120 | end | 120 | end |
| 121 | 121 | ||
| 122 | + def manual_discharge | ||
| 123 | + update_columns(var_service: 'manual', var_status: 'pending', | ||
| 124 | + var_payment_at: nil) | ||
| 125 | + # TODO: Create a new table with transaction | ||
| 126 | + end | ||
| 127 | + | ||
| 122 | # def charge_with_paypal(options) | 128 | # def charge_with_paypal(options) |
| 123 | # if(!options.include? :card) | 129 | # if(!options.include? :card) |
| 124 | # error_message = "Paypal needs a card sent as a third paramater" | 130 | # error_message = "Paypal needs a card sent as a third paramater" | ... | ... |
-
Please register or login to post a comment