access paypal response in ruby on rails 4 -


i have abort

abort(response.payment_info.inspect) 

and response

[#<paypal::payment::response::info:0x007f25f62a8410 @ack="success", @currency_code="usd", @error_code="0", @order_time="2015-07-01t13:30:54z", @payment_status="completed", @payment_type="instant", @pending_reason="none", @protection_eligibility="ineligible", @protection_eligibility_type="none", @reason_code="none", @receipt_id=nil, @secure_merchant_account_id="xpn8gak2pgvcq", @transaction_id="63h82632fa7502700", @transaction_type="expresscheckout", @request_id=nil, @seller_id=nil, @exchange_rate=nil, @amount=#<paypal::payment::common::amount:0x007f25f629f400 @total=5, @item=0, @fee=0.5, @handing=0, @insurance=0, @ship_disc=0, @shipping=0, @tax=0, @gross=0, @net=0>>] 

how can transaction_id or other variables amount? please me out this. thanks

i have found. can this.

response.payment_info.first.transaction_id response.payment_info.first.payment_status response.payment_info.first.amount.total 

Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -