degica / spree_komoju

Spree extension for using the Komoju Payments API.
https://komoju.com/
BSD 3-Clause "New" or "Revised" License
6 stars 11 forks source link

Add more fraud details #59

Closed project-eutopia closed 7 years ago

project-eutopia commented 7 years ago

Delivers #56

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.

rramsden commented 7 years ago

@project-eutopia Thanks, I'll test later today 👍

rramsden commented 7 years ago

LGTM