Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 114443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:51:41+00:00 2026-05-11T02:51:41+00:00

I am creating a store using Active Merchant and PayPal sandbox right now. It

  • 0

I am creating a store using Active Merchant and PayPal sandbox right now. It seems to be working fine, but I don’t think it is even remotely secure. I don’t really know too much about HTTPS and how to implement secure connections.

I am currently passing the credit card and billing information in the session (probably not the smartest idea). My current code is posted below. I really need help with what direction and steps to take in order to make this a secure, usable store.

 def payment session[:billing_address] = params[:billing_address]   end   def summary     @credit_card = params[:credit_card]     session[:credit_card] = params[:credit_card]     @billing_address = session[:billing_address]     @cart = get_cart     @purchases  = @cart.purchases     @total = @cart.total  end   def finish      @cart = get_cart      @total = @cart.total       credit_card = ActiveMerchant::Billing::CreditCard.new( session[:credit_card] )       billing_address = session[:billing_address]       flash[:notice] = credit_card.errors and return unless credit_card.valid?       gateway = ActiveMerchant::Billing::PaypalGateway.new(:login=>$PAYPAL_LOGIN, :password=>$PAYPAL_PASSWORD)       res = gateway.authorize(@total, credit_card, :ip=>request.remote_ip, :billing_address=>billing_address)       if res.success?         gateway.capture(@total, res.authorization)         flash[:notice] = 'Authorized'       else         flash[:notice] = 'Failure: ' + res.message.to_s      end       end 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T02:51:42+00:00Added an answer on May 11, 2026 at 2:51 am

    There was a good railscast about how to implement ssl.

    http://railscasts.com/episodes/143-paypal-security

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating thumbnails from videos using ffmpeg and it's working fine. But now I
Right now I'm stuck between using PHP's native session management, or creating my own
I m creating document files using filemanager which is text file.i want to store
I'm creating an application that will store a hierarchical collection of items in an
I am creating a program that needs to store the user's data in encrypted
I am creating an ASP script that uses the application object to store the
I'm creating an XML document and I want to store URLs inside the a
I am creating a Web application using ASP.NET MVC, and I'm trying to use
I am looking into creating a new website using ASP.NET 4.0. I am currently
Using ASP.NET MVC2, how would I go about creating a WML view for a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.