2016-04-25 97 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

請親引導我?

回答