class PaymentRecipes::PayPal::REST::Action::RefundCapture
Public Instance Methods
perform()
click to toggle source
# File lib/payment_recipes/paypal/rest/action/refund_capture.rb, line 8 def perform if @capture.can_be_refunded? @capture.raw_capture.refund({}) @capture.reload! @capture.reload_payment! else raise Exception, "Capture can't be refunded" end @capture end