V
V
volodymyr2011-09-09 20:56:56
Ruby on Rails
volodymyr, 2011-09-09 20:56:56

Order information in ActiveMerchant for PaypalExpress?

Hello!
Perhaps someone has experience with PayPal Express using ActiveMerchant. I am redirecting to PayPal using the following code:

def checkout_paypal<br>
    setup_response = gateway.setup_purchase(@course.price,<br>
      :ip                => request.remote_ip,<br>
      :return_url        => url_for(:action => 'confirm',<br>
                                      :course_id => params[:course_id], :only_path => false),<br>
      :cancel_return_url => url_for(:action => 'index', :only_path => false),<br>
      :description => I18n.t("payments.payment_for") + " " + @course.name,<br>
      :currency => "EUR"<br><br>
    )<br>
    redirect_to gateway.redirect_url_for(setup_response.token)<br>
  end<br>

Everything works, but when paying for the order, information about the order itself and its cost is not displayed (although I pass it as a hash: description). How do I tell PayPal to display this information to the user?
Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question