Настройка страницы отзывов PayPal Express с помощью ActiveMerchant

Я использую ActiveMerchant, чтобы предоставить моему приложению rails доступ к экспресс-оформлению заказа PayPal. Я хотел бы включить сведения о заказе на страницу рецензирования, как описано здесь: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECCustomizing

Можно ли это сделать?

В настоящее время код контроллера выглядит следующим образом:

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

Если то, что я пытаюсь сделать, возможно, что мне нужно изменить?

6
задан Ryan 10 October 2010 в 00:38
поделиться