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 3681372
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:40:56+00:00 2026-05-19T03:40:56+00:00

I am using ActiveMerchant to give my rails app access to Paypal’s Express Checkout.

  • 0

I am using ActiveMerchant to give my rails app access to Paypal’s Express Checkout.
I would like to include the Order Details on the Review Page as described here: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECCustomizing

Can this be done?

Currently, my controller code looks like this:

def paypal
  #currently, options is unused, I'm not sure where to send this info
  options = { 
              :L_NAME0=>"Tickets", 
              :L_QTY0=>@payment.quantity, 
              :L_DESC0=>"Tickets for #{@payment.event_name}",
              :L_AMT0=>@payment.unit_price
            }

  #the actual code that gets used
  setup_response = gateway.setup_purchase(@payment.amount,
    :ip=> request.remote_ip,
    :return_url=> url_for(:action=>:confirm, :id=>@payment.id, :only_path=>false),
    :cancel_return_url => url_for(:action=>:show, :id=>@payment.id, :only_path=>false)
  )
  redirect_to gateway.redirect_url_for(setup_response.token)
end

If what I’m trying to do is possible, what do I need to change?

  • 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. Editorial Team
    Editorial Team
    2026-05-19T03:40:56+00:00Added an answer on May 19, 2026 at 3:40 am

    @Soleone
    I try your solution,but don’t work for me.

    xml.tag! 'n2:OrderDescription', options[:description]
    xml.tag! 'n2:Name', options[:name]
    xml.tag! 'n2:Description', options[:desc]
    xml.tag! 'n2:Amount', options[:amount]
    xml.tag! 'n2:Quantity', options[:quantity]
    

    I think the xml structure is not right,the order items is multiple,so should like this

    xml.tag! 'n2:OrderItems' do
        xml.tag! 'n2:OrderItem' do
            xml.tag! 'n2:Name', options[:name]
            xml.tag! 'n2:Description', options[:desc]
            xml.tag! 'n2:Amount', options[:amount]
            xml.tag! 'n2:Quantity', options[:quantity]
        end
    end
    

    But really I don’t know the correct structure,looking for now.

    ====Update

    I found the SOAP api doc, https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_soap_r_SetExpressCheckout#id09BHC0QF07Q

    xml.tag! 'n2:PaymentDetails' do
        xml.tag! 'n2:PaymentDetailsItem' do
            xml.tag! 'n2:Name', options[:name]
            xml.tag! 'n2:Description', options[:desc]
            xml.tag! 'n2:Amount', options[:amount]
            xml.tag! 'n2:Quantity', options[:quantity]
        end
    end
    

    But also doesn’t work,who can help?

    =====UPDATE====

    I tried the method of adding PaymentDetails parameter,but seems still not work,I found the schema of SetExpressCheckoutReq xml, http://www.visualschema.com/vs/paypal/SetExpressCheckoutReq/ , there is no definition of PaymentDetails,who did this stuff before,hope for your help.

    ======FINAL========

    I have fixed this issue,new version of ActiveMerchant support the order details review,and mwagg pushed the patch about this,you guys can use this version https://github.com/mwagg/active_merchant

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

Sidebar

Related Questions

Using Rails 3.2.0 with haml and sass: I Would like to link an external
I am using activemerchant in a rails application like this ActiveMerchant::Billing::Base.mode = :test ::GATEWAY
I am building a rails app using the wonderful activemerchant gem to save credit
When users make credit card transactions on my web app, I'd like to include
I'm building a site on Rails using ActiveMerchant to clear payments through Authorize.net. We'd
I'm using ActiveMerchant gem with Ruby 1.9.3 and Rails 3.1 I already set up
I am integrating paypal service in my application using Activemerchant. Now I want to
I've integrated ActiveMerchant into my Rails 3 app more or less along the lines
Using Jenkins or Hudson I would like to create a pipeline of builds with
I'm using Rails 3.1 and ActiveMerchant 1.17 I'm calling the PaymentExpress gateway, using the

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.