Permalink
Browse files

Fix `DirectPaymentAPI#get_recurrent_payment_responses` by wrapping bi…

…lling responses in an array
  • Loading branch information...
1 parent 9022289 commit 3e7da41e7774aeddea4e90d9ebfd4496d8afc70a @samleb samleb committed Mar 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/active_merchant/billing/gateways/payline/payline_direct_api.rb
@@ -59,7 +59,7 @@ def do_recurrent_wallet_payment(money, wallet_id, options = {})
def get_recurrent_payment_responses(payment_record_id)
response = get_payment_record(payment_record_id)
responses = response.params[:billing_record_list][:billing_record]
- responses.collect { |r| build_response(r) if r[:result] }.compact
+ Array.wrap(responses).collect { |r| build_response(r) if r[:result] }.compact
end
def get_payment_record(payment_record_id)

0 comments on commit 3e7da41

Please sign in to comment.