Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix `DirectPaymentAPI#get_recurrent_payment_responses` by wrapping bi…

…lling responses in an array
  • Loading branch information...
commit 3e7da41e7774aeddea4e90d9ebfd4496d8afc70a 1 parent 9022289
@samleb authored
View
2  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)
Please sign in to comment.
Something went wrong with that request. Please try again.