Answer the question
In order to leave comments, you need to log in
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>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question