Temporarily stores the request HTTP headers on each Spree::Payment model using the non-persistent attribute request_env. This is then used in the Spree::Payment::GatewayOptions to add the user agent and accept language parameters to the options hash. The ActiveMerchant::Billing::KomojuGateway already looks for browser_language and browser_user_agent options and adds these to the fraud_details if present.
Delivers #56
Temporarily stores the request HTTP headers on each
Spree::Payment
model using the non-persistent attributerequest_env
. This is then used in theSpree::Payment::GatewayOptions
to add the user agent and accept language parameters to the options hash. TheActiveMerchant::Billing::KomojuGateway
already looks forbrowser_language
andbrowser_user_agent
options and adds these to thefraud_details
if present.