Closed sajjadmurtaza closed 6 years ago
I'm using paypal for payment and here is main function and parameters which are used for payment.
def self.paypal_url(.....) values = { :business => 'email@id.com', :cmd => 'cart', :upload => 1, :return => returnurl, :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
}) "https://www.paypal.com/cgi-bin/webscr?" + values.to_query end But now i want to use PayFlow. Kindly guide me which parameter i have to change and what will be the final url as for payment is "https://www.paypal.com/cgi-bin/webscr?" + values.to_query.
Kindly guide me.
I'm using paypal for payment and here is main function and parameters which are used for payment.
def self.paypal_url(.....) values = { :business => 'email@id.com', :cmd => 'cart', :upload => 1, :return => returnurl, :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 But now i want to use PayFlow. Kindly guide me which parameter i have to change and what will be the final url as for payment is "https://www.paypal.com/cgi-bin/webscr?" + values.to_query.
Kindly guide me.