0
我已经使用activemerchant和paypal在我的应用中设置了定期付款。所有代码都跑了与测试数据控制器和我越来越从这个成功的消息返回:Ruby on Rails Activemerchant集成 - 传递变量
credit_card = {
:type => "visa",
:number => "4402526063652333",
:verification_value => '122',
:month => '06',
:year => '2016',
:first_name => 'Test Name',
:last_name => 'Test Account',
:street_1 => 'Test Street',
:city => 'Test city',
:state => 'Heref',
:country => 'US',
:zip => '111111',
:email => '[email protected]'
}
不过,我想这对我的一个形式提供信用卡资料应用工作。但细节绝不让它从形式到控制器的设置是这样的:
credit_card = {
:type => :card_type,
:number => :card_number,
:verification_value => :card_verification,
:month => :card_month,
:year => :card_year,
:first_name => 'Test Name',
:last_name => 'Test Account',
:street_1 => 'Test Street',
:city => 'Test city',
:state => 'Heref',
:country => 'US',
:zip => '111111',
:email => '[email protected]'
}
我需要这个移动到模型制作,从形式卡值传递到:CARD_NUMBER?
谢谢!有效。 – nicktabs