我期待將我的Rails應用程序與支付提供商Adyen集成,我已經安裝了Adyen Gem並將代碼放在一個基本表單中,但出現錯誤:無效日期符號:無! Adyen Rails Gem Error
Adyen寶石:http://github.com/wvanbergen/adyen
Invalid date notation: nil!
/Users/chris/.gem/ruby/1.8/gems/adyen-0.1.5/lib/adyen/formatter.rb:10:in
fmt_date' /Users/chris/.gem/ruby/1.8/gems/adyen-0.1.5/lib/adyen/form.rb:35:in
do_attribute_transformations!' /Users/chris/.gem/ruby/1.8/gems/adyen-0.1.5/lib/adyen/form.rb:40:inpayment_fields' /Users/chris/.gem/ruby/1.8/gems/adyen-0.1.5/lib/adyen/form.rb:59:in
hidden_fields' app/views/payments/free.html.erb:7
我的代碼是:
<% form_tag(:url => Adyen::Form.url) do %>
<%= Adyen::Form.hidden_fields(:merchant_account => 'myaccount',:skin_code => 'myperfectskin', :shared_secret => 'youllneverguess', :payment_amount => '1000') %>
謝謝,填完ship_before_date之後工作很完美(即使0.2.1,這個bug仍然存在,不過現在工作好了,這就是重要的) – Chris 2009-10-23 12:20:02