2016-04-25 98 views
0

我正在使用paypal进行付款,这里是用于支付的主要功能和参数。付款流程支付在红宝石轨道上的集成

def self.paypal_url(.....) 
values = { 
     :business => '[email protected]', 
     :cmd => '_cart', 
     :upload => 1, 
     :return => return_url, 
     :invoice => "#{customer.id}_#{sType.id}_#{Time.now}", 
     :notify_url => notify_url 
    } 
    values.merge!({ 
         "amount_1" => amount, 
         "item_name_1" => sType.show_title, 
         "discount_amount_1" => discount 
         # "quantity_1" => '1' 
        }) 
    "https://www.paypal.com/cgi-bin/webscr?" + values.to_query 
end 

但是现在我想用PayFlow。请指导我哪一个参数,我必须改变,什么是付款的最终网址是"https://www.paypal.com/cgi-bin/webscr?" + values.to_query

请亲引导我?

回答