Fwd: [rubygems] how to integate paypal with https

---------- Forwarded message ----------
From: amit [email protected]
Date: Thu, Feb 21, 2008 at 12:46 PM
Subject: [rubygems] how to integate paypal with https
To: rubygems [email protected]

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
    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 & Regards,
Pavan A.

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

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


On Thu, Feb 21, 2008 at 2:04 PM, Pavan A.
[email protected]

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.