R – Invalid date notation: nil! Adyen Rails Gem Error


I'm looking to integrate my rails application with the payment provider Adyen, I've installed the Adyen Gem and put the code in to make a basic form, but I'm getting an error:

Adyen Gem: http://github.com/wvanbergen/adyen

Invalid date notation: nil!


my Code is:

 <% form_tag(:url => Adyen::Form.url) do %>
<%= Adyen::Form.hidden_fields(:merchant_account => 'myaccount',:skin_code => 'myperfectskin', :shared_secret => 'youllneverguess', :payment_amount => '1000') %>

Best Solution

If you look at the Adyen's source, you'll see on lib/adyen/form.rb at the line 35 that there's a ship_before_date required option which you don't fill.

But you're using Adyen at it's version 0.1.5 when there's the 0.2.1 version (and apparently that "bug" has been corrected).
If you installed that version (with gem install adyen -v=0.2.1), you would be using a much more recent and reliable version of the library.

Related Question