lemonwaysas / ruby-client-directkit-string

Ruby example calling DirectKit API
MIT License
3 stars 4 forks source link

Fix key not found ':money_in_with_card_id_result' #7

Closed gponsu closed 8 years ago

gponsu commented 8 years ago

It is a patch for the next error when I try do a money_in_with_card_id:

Lemonway::Client::Error: key not found: :money_in_with_card_id_result, expected `money_in_with_card_id_response.money_in_with_card_id_result` but got : {:money_in_with_card_id_response=>{:money_in_result=>{:e=>{:error=>nil, :code=>"248", :msg=>"Wrong IP format", :prio=>"2"}}, :@xmlns=>"Service_mb_xml"}}
    from /app/lib/lemonway/client.rb:56:in `rescue in client_call'
    from /app/lib/lemonway/client.rb:38:in `client_call'
    from /app/lib/lemonway/client.rb:29:in `method_missing'
    from (irb):20
    from /usr/local/bin/irb:11:in `<main>'

I do not have permission to use the test configuration

   {
       : WlLogin => "test"
       : WlPass => "test"
       : Language => "fr"
       : Version => "1.0"
       : Channel => "W"
       : WalletIp => "91.222.286.32"
       : Wsdl => "https://ws.lemonway.fr/mb/ioio/dev/directkit/service.asmx?wsdl"
     }

So I used my sandbox config in my local code to create test for the patch. So I have not added the cassete fixture to pull request.

I would like to have access to the configuration of the tests for future contributions I can do.

Thank you very much, a greeting!