Browse the Ruby on Rails Community.

You are here: Forums Ask a Rails expert How to integrate paypall in RA...

Replytotopic

How to integrate paypall in RAILS App?

Posted in Forums : Ask a Rails expert

 
Profile

Authority 12
Posting Rating 0
Sign in to rate this post

Hello all,
I want to integrate DoDirect paymment, Express Checkout,Recurrent Payment in my rails app. I searched in google but found no reachable doc. Please any guys help me.

Thanks

 
664297762

Authority 50
Posting Rating 95
Sign in to rate this post

Hi Abdul,

Basically there are two way for Integration of payment gateway in any ROR Tech..
1 – Using Basic Providers Url in the action of the form for with authorization details
2 – Using SOAP API services.
(Depends on service providers supports)

First type :

- It basically need required params info which we need to send with user provided detail.
- All Basic params value will become RequestParameters for providers site
- At your side Form Action will be Url of the servicde provider..

Like
<form name="ecom" method="post">
action=”http://test.yourPaymentGatewayProvider.com/secure/dpMerchantExample.jsp”
onSubmit=”encodeTxnRequest();”>
<input name="custName" type="hidden" value="Test User">
<input name="custAddress" type="hidden" value="Mumbai">
<input name="custCity" type="hidden" value="Mumbai">
<input name="custState" type="hidden" value="Maharashtra">
<input name="custPinCode" type="hidden" value="400001">
<input name="custCountry" type="hidden" value="IN">
<input name="custPhoneNo1" type="hidden" value="91">
<input name="custPhoneNo2" type="hidden" value="022">

<input name="otherNotes" type="hidden" value="test transaction for xyz">
<input type=”hidden” name=”requestparameter”

value=”200904281000001|DOM|County|INR|10|test-order|others|www.url.com/success.html|
www.url.com/fail.html|TOML”>

<input name="submit" type="submit" value="Submit">
/form

Note:where
www.url.com/success.html is your site’s success url
www.url.com/failure.html is your site’s failure handler url

After this in the controller you just need to accept responseParams value..

Sample responseParams:
For success transaction:
200904281000001|SUCCESS|IND|INR|NULL|111111|100.00| (Success Response)
For fail transaction:
200904281000001|FAIL|IND|INR|NULL|111111|100.00| (Failure Response)

Thats it.. :)

Now second type :

Using Soap Servies API.
- Need to create driver Object of Service at your side Using SOAP API
- After you can access all method related to that service. (Details of all methods & format of request params you will get from the service providers)
- After Methods of the SOAP service with provide details u’ll get the result as response of the service..
Which is same as First type…

*To consume SOAP service u need to install gem/Use wsdl4r or soap4r

Usually I prefer first type

I hope this will help you..!

Good Luck ..
Cheersssssss! [;)]

 
Profile

Authority 12
Posting Rating 0
Sign in to rate this post

Dear Ganesh,

Thanks for your reply and collaboration , I am actually not expert in PaymentGateway world, So please explain in details or any URL? or any plugin?

Thanks

 
19fad8b2f5f9948322c3fe0441265298

Authority 25
Posting Rating 0
Sign in to rate this post

Check the active_merchant gem. Also, check Ryan Bate’s screencasts episodes 141-146 on how to integrate active_merchant.

 
Profile

Authority 62
Posting Rating 0
Sign in to rate this post

Yes please check active_merchant gem/plugin. Its the best plugin for integrating E-commerce in any ROR website. Apart from providing suport for every paypal service it has wide range of merchants supported.http://www.activemerchant.org/

Authorize.Net CIM – US
Authorize.Net – US
Beanstream.com – CA
Braintree – US
CardStream – GB
CyberSource – US
DataCash – GB
Efsnet – US
eWAY – AU
E-xact – CA, US
LinkPoint – US
Modern Payments – US
Moneris – CA
NetRegistry – AU
NETbilling – US
PayJunction – US
PaySecure – AU
PayPal Express Checkout – US, CA, SG, AU
PayPal Payflow Pro – US, CA, SG, AU
PayPal Website Payments Pro (UK) – GB
PaymentExpress – AU, MY, NZ, SG, ZA, GB, US
PayPal Website Payments Pro (CA) – CA
PayPal Express Checkout – US
PayPal Website Payments Pro (US) – US
Plug’n Pay – US
Protx – GB
Psigate – CA
PSL Payment Solutions – GB
Quickpay – DK
Realex – IE, GB
Sage Payment Solutions – US, CA
SecurePay – AU
SecurePay – US
SecurePayTech – NZ
SkipJack – US, CA
TransFirst – US
TrustCommerce – US
USA ePay – US
Verifi – US
ViaKLIX – US
Wirecard – DE

Replytotopic

Other Recent Topics

Ask a Rails expert : nested application ApplicationController get called intead of children::ApplicationController

Ask a Rails expert : Best way to structure a database for a large/static dataset

Ask a Rails expert : Ruby Developer (ROR) - Scottish based (Remote working from within the UK)

Ask a Rails expert : Above Ground Pool Supplies

Ask a Rails expert : How to get url params in observer or model in Rails 3.1

Ask a Rails expert : What can persuade you to hire Junior Ruby devs with significant PHP experience?

Ask a Rails expert : What industry value does the Ruby or Rails Certification currently have?

Ask a Rails expert : Louis Vuitton Damier Azur Canvas specially sale ( www.salecheaplouisvuitton.com )

Ask a Rails expert : ·How to check errors/puts statements from ruby files which are under cronob

Ask a Rails expert : Louis Vuitton cheap Soft Sided Luggagespecial offer( www.salecheaplouisvuitton.com )

Formatting Help
  • *bold*       _italics_      
    bq. (quotes)
  • "DSC":http://www.dsc.net
  • * or # (lists)
or cancel