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

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -