# PayPal integration with Rails shopping cart

**URL:** <https://www.ruby-forum.com/t/paypal-integration-with-rails-shopping-cart/128282>\
**Category:** Rails\
**Created:** [February 6, 2008, 11:58am UTC](https://www.ruby-forum.com/t/paypal-integration-with-rails-shopping-cart/128282 "2008-02-06T11:58:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nishant\_Sinha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/71e660/32.png) [@Nishant\_Sinha](https://www.ruby-forum.com/u/Nishant_Sinha)\
**Post date:** [February 6, 2008, 11:58am UTC](https://www.ruby-forum.com/t/paypal-integration-with-rails-shopping-cart/128282/1 "2008-02-06T11:58:33Z")

</div>

Hello everyone,

I have 3 main questions and they are:

1. Is it possible to integrate the PayPal payment gateway within our  
website? My client doesn’t want the customer to be directed to the  
PayPal website to complete the transaction.

2. I tried integrating the ‘Ruby PayPal Gem’ from  
[HugeDomains.com](http://www.elctech.com/projects/paypal)  
but ran into some issues. I am using the PayPal SOAP API on Rails  
1.2.5. I have a PayPal Pro and Developer Account but I did not get  
sandbox\_api.crt, sandbox\_api.key, live\_api.crt and live\_api.key as  
required for this installation.

My questions are a) Is this library compatible with Rails 1.2.5? and  
b) Could someone direct me to a good tutorial of installing this gem?

1. Is there a way to work with Active Merchant on Rails 1.2.5 because  
I think it is only compatible with the latest version?

I’ve been trying to crack this since the last 2 days and I am  
desperate to get this going. Any help will be greatly appreciated.

Thanks!

Nishant

---

<div class="post-metadata">

**Author:** ![Nishant\_Sinha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/71e660/32.png) [@Nishant\_Sinha](https://www.ruby-forum.com/u/Nishant_Sinha)\
**Post date:** [February 7, 2008, 3:47am UTC](https://www.ruby-forum.com/t/paypal-integration-with-rails-shopping-cart/128282/2 "2008-02-07T03:47:21Z")

</div>

Nishant Sinha wrote:

> Hello everyone,
> 
> I have 3 main questions and they are:
> 
> 1. Is it possible to integrate the PayPal payment gateway within our  
> website? My client doesn’t want the customer to be directed to the  
> PayPal website to complete the transaction.

It is if you have one of their more expensive (paypal) accounts.

> 1. I tried integrating the ‘Ruby PayPal Gem’ from  
> [HugeDomains.com](http://www.elctech.com/projects/paypal)  
> but ran into some issues. I am using the PayPal SOAP API on Rails  
> 1.2.5. I have a PayPal Pro and Developer Account but I did not get  
> sandbox\_api.crt, sandbox\_api.key, live\_api.crt and live\_api.key as  
> required for this installation.

Perhaps you’re required to generate your own–see  
[http://dist.leetsoft.com/api/paypal/](http://dist.leetsoft.com/api/paypal/)  
the example with some  
(for example)  
’ openssl req -new -key business\_key.pem -x509 -days 3650 -out  
business\_cert.pem’  
in there (equivalent to generating \*.key??? maybe?

It should work with 1.2.5, I’d imagine–haven’t ever done it.

> 1. Is there a way to work with Active Merchant on Rails 1.2.5 because  
> I think it is only compatible with the latest version?  
> Yeah should integrate nicely. ActiveMerchant should make it easy.

maybe google for activemerchant paypal tutorial

GL.  
-Roger

---

<div class="post-metadata">

**Author:** ![Nishant\_Sinha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/71e660/32.png) [@Nishant\_Sinha](https://www.ruby-forum.com/u/Nishant_Sinha)\
**Post date:** [February 18, 2008, 3:47pm UTC](https://www.ruby-forum.com/t/paypal-integration-with-rails-shopping-cart/128282/3 "2008-02-18T15:47:24Z")

</div>

On Feb 7, 7:47 am, Roger P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> ’ openssl req -new -key business\_key.pem -x509 -days 3650 -out  
> maybe google for activemerchant paypal tutorial
> 
> ## GL. -Roger
> 
> Posted viahttp://www.ruby-forum.com/.

hi nishant yes it is possible  
in actullay we use soap method and we have integrate this saop  
method directly in our application

please read the paypal documentation for that
