diff --git a/lib/rock_rms/resources/refund.rb b/lib/rock_rms/resources/refund.rb index 343af32..2429b2b 100644 --- a/lib/rock_rms/resources/refund.rb +++ b/lib/rock_rms/resources/refund.rb @@ -20,7 +20,6 @@ def create_refund( transaction_amount = old_transaction[:details].map{|d| d[:amount]}.reduce(0.0){|sum,x| sum + x } - scheduled_transaction_id = old_transaction[:recurring_donation_id] refund_amount = amount || transaction_amount @@ -37,7 +36,7 @@ def create_refund( 'TransactionDetails' => refunded_details(old_transaction[:details], transaction_amount, refund_amount), 'TransactionTypeValueId' => old_transaction[:transaction_type_id], 'SourceTypeValueId' => old_transaction[:source_type_id], - 'ScheduledTransactionId' => scheduled_transaction_id, + 'ScheduledTransactionId' => old_transaction[:recurring_donation_id] } } post(refund_path, params) diff --git a/lib/rock_rms/version.rb b/lib/rock_rms/version.rb index 983639b..8a95025 100644 --- a/lib/rock_rms/version.rb +++ b/lib/rock_rms/version.rb @@ -1,3 +1,3 @@ module RockRMS - VERSION = '8.19.0'.freeze + VERSION = '8.20.0'.freeze end