Class: CatarsePaypalExpress::ContributionActions
- Inherits:
-
Object
- Object
- CatarsePaypalExpress::ContributionActions
- Defined in:
- lib/catarse_paypal_express/contribution_actions.rb
Instance Method Summary collapse
-
#initialize(contribution) ⇒ ContributionActions
constructor
A new instance of ContributionActions.
- #refund ⇒ Object
Constructor Details
#initialize(contribution) ⇒ ContributionActions
Returns a new instance of ContributionActions.
4 5 6 |
# File 'lib/catarse_paypal_express/contribution_actions.rb', line 4 def initialize contribution @contribution = contribution end |
Instance Method Details
#refund ⇒ Object
8 9 10 11 |
# File 'lib/catarse_paypal_express/contribution_actions.rb', line 8 def refund refund_request = gateway.refund(nil, @contribution.payment_id) refund_request.success? end |