Wes Foster
Wes Foster

Reputation: 8900

ActiveMerchant Paypal Gateway/Express

I'm trying to integrate ActiveMerchange and PaypalExpress into my site, but I'm getting confused along the way. I've googled all over the place and watched several RailsCasts, but am still a little confused.

In my app, I'm wanting to sell credits. The "products" to purchase are simply credits. They are not actual objects, nor are in the database, but are simply in a hash, for example:

# 1 credit is $5, 5 credits are $25
{
  '1' => 5,
  '5' => 25
}

I do not want to use a Cart system like it shows in many online tutorials, I simply want the user to be able to select an amount of credits from a dropdown list, click "Checkout with Paypal", purchase the credits, and have it update their account.

Can anyone guide me through this? I hope this isn't asking too much.

Upvotes: 2

Views: 557

Answers (1)

Drew Angell
Drew Angell

Reputation: 26056

I would recommend using Express Checkout. This makes it very simple to process any amount you need no matter how you're calculating the total.

Upvotes: 1

Related Questions