【发布时间】:2012-03-04 20:29:13
【问题描述】:
我正在尝试使用活跃的商家设置 PayPal 快速结账,但遇到了问题。我已经按照教程进行操作,我可以进入贝宝上的“选择支付方式”表格,但没有显示任何项目或价格。
这是一个屏幕截图。 http://i39.tinypic.com/35mircz.png
为什么即使我传递了价格或任何物品,它们也没有显示?这是我用于 setup_purchase 的代码。
@product = Product.find(params[:product_id])
setup_response = gateway.setup_purchase(200,
:ip => request.remote_ip,
:items => [{:name => "Tickets", :quantity => 22, :description => "Tickets for 232323", :amount => 10}],
:return_url => url_for(:action => 'confirm', :only_path => false),
:cancel_return_url => url_for(:action => 'index', :only_path => false)
)
redirect_to gateway.redirect_url_for(setup_response.token)
任何帮助将不胜感激。 亚历克斯
【问题讨论】:
-
请问您正在学习什么教程?到目前为止,我一直在盲目地做这件事,事实证明这很困难!
标签: ruby-on-rails paypal activemerchant