PayPal Integration
19/02/09|
0 Comments
The trend of today’s global web market is to develop the e-commerce based web application. For the development of e-Commerce web application, we are using very small & easy to use plugin like PayPalSDK. The use of this plugin is very simple and even budding rails developer can use it. Just download it from Paypal Developer center and follow the guidelines in that document. Within 3-4 hours, we can integrate paypal in our application. For live PayPal account, we have to change following user credentials in “profile.rb” in PayPalSDK plugin:
Sample code for “profile.rb”
@@credentials ={"USER" => "xxxxxxxxxx", "PWD" => "xxxxxxxxxx", "SIGNATURE"=>"xxxxxxxxxxxxxxxxxxxxxxx" } # endpoint of PayPal server against which call will be made. @@endpoints = {"SERVER" => "xxxxxxxxxxxxxxxxx", "SERVICE" => "/nvp/"} # Proxy information of the client environment. @@proxy_info = {"USE_PROXY" => false, "ADDRESS" => nil, "PORT" => nil, "USER" => nil, "PASSWORD" => nil } # Information needed for tracking purposes. @@client_info = { "VERSION" => "3.0", "SOURCE" => "PayPalRubySDKV1.2.0"
|
|
|
|