ruby - Rails paypal adaptive 302 redirect -


i'm implementing paypal adaptive sdk rails https://github.com/paypal/adaptivepayments-sdk-ruby

i'm getting 302 redirect on pay action, have ideia or tip give.

i change cookie permanent still same.

someone know if due nginx pagespeed or passenger, or rails version 3.2.22?

controller:

def buy order = order.find(params[:id])      @api = paypal::sdk::adaptivepayments.new       @pay = @api.build_pay({         :actiontype => "pay",         :cancelurl => carts_url,         :currencycode => "us",         :feespayer => "sender",         :ipnnotificationurl => ipn_notification_order_url(order),          :receiverlist => {           :receiver => [{             :email =>  "test@test.com",             :amount => "1",             :primary => true},             {:email => "test2@test2.com",              :amount => "2",                   :primary => false}]},              :returnurl => carts_url })  begin              @response = @api.pay(@pay)               # access response              if @response.success? && @response.payment_exec_status != "error"                @response.paykey               redirect_to  @api.payment_url(@response)  # url complete payment              else                @response.error[0].message                redirect_to fail_order_path(order)               end   end  end 

the result

url http://41.67.229.88/orders/1/buy status complete response code 302 moved temporarily protocol http/1.1 ssl - method kept alive yes content-type text/html; charset=utf-8 client address /127.0.0.1 remote address 41.67.229.88/41.67.229.88 connection  timing  request start time 11/9/16 18:40:11 request end time 11/9/16 18:40:11 response start time 11/9/16 18:40:12 response end time 11/9/16 18:40:12 duration 939 ms dns - connect - ssl handshake - request 2 ms response 6 ms latency 930 ms speed 2.28 kb/s response speed 357.26 kb/s size  request 1.38 kb (1,417 bytes) header 1.38 kb (1,417 bytes) query string - cookies 1,000 bytes body - uncompressed body - compression - response 778 bytes header 663 bytes cookies - body 115 bytes uncompressed body - compression - total 2.14 kb (2,195 bytes) 


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -