# Fwd: \[rubygems\] how to integate paypal with https

**URL:** <https://www.ruby-forum.com/t/fwd-rubygems-how-to-integate-paypal-with-https/129748>\
**Category:** Rails\
**Created:** [February 21, 2008, 9:35am UTC](https://www.ruby-forum.com/t/fwd-rubygems-how-to-integate-paypal-with-https/129748 "2008-02-21T09:35:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavanagrawal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c57346/32.png) [@pavanagrawal](https://www.ruby-forum.com/u/pavanagrawal)\
**Post date:** [February 21, 2008, 9:35am UTC](https://www.ruby-forum.com/t/fwd-rubygems-how-to-integate-paypal-with-https/129748/1 "2008-02-21T09:35:26Z")

</div>

---------- Forwarded message ----------  
From: amit [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Date: Thu, Feb 21, 2008 at 12:46 PM  
Subject: [rubygems] how to integate paypal with https  
To: rubygems [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

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!  
Amit

–  
Thanks & Regards,  
Pavan A.

NOTICE : This transmission contains information that may be confidential  
and  
that may also be privileged. Unless you are the intended recipient of  
the  
message or authorized to receive it for the intended recipient, you may  
not  
copy, forward, or otherwise use it, or disclose it or its contents to  
anyone  
else. If you have received this transmission in error please notify us  
immediately and delete it from your system.

---

<div class="post-metadata">

**Author:** ![pavanagrawal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c57346/32.png) [@pavanagrawal](https://www.ruby-forum.com/u/pavanagrawal)\
**Post date:** [February 21, 2008, 12:21pm UTC](https://www.ruby-forum.com/t/fwd-rubygems-how-to-integate-paypal-with-https/129748/2 "2008-02-21T12:21:29Z")

</div>

Try Google Checkout. I think they allow for in-website purchases.

Vish

On Thu, Feb 21, 2008 at 2:04 PM, Pavan A.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![pavanagrawal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c57346/32.png) [@pavanagrawal](https://www.ruby-forum.com/u/pavanagrawal)\
**Post date:** [February 21, 2008, 6:22pm UTC](https://www.ruby-forum.com/t/fwd-rubygems-how-to-integate-paypal-with-https/129748/3 "2008-02-21T18:22:57Z")

</div>

Perhaps it’s not the best way, but I’m using the PayPal NVP (Name-  
Value Pair) API by doing crude stuff: creating a string of name-value  
pairs, encoding it, sending an https post to PayPal with credentials,  
and parsing the response. The rails community has provided some great  
tools, but I sometimes find it easier to take a more “simple” approach  
and do some work myself. Then, I at least know what’s going wrong  
(and I can blame any problems on myself). If you’re used to SOAP,  
have at it. I found it to be a bit more than I needed for a few  
simple requests and responses.

-Kyle
