lib/fawry/requests/charge_request.rb in fawry-1.3.0 vs lib/fawry/requests/charge_request.rb in fawry-1.3.1

- old
+ new

@@ -3,11 +3,11 @@ require 'digest' module Fawry module Requests module ChargeRequest - DEFAULTS = { payment_method: 'PAYATFAWRY', currency_code: 'EGP' }.freeze + DEFAULTS = { payment_method: 'PAYATFAWRY', currency_code: 'EGP', language: 'ar-eg' }.freeze def fire_charge_request fawry_api_response = Connection.post(request[:path], request[:params], request[:body], request[:options]) response_body = JSON.parse(fawry_api_response.body) @@ -43,9 +43,10 @@ amount: request_params[:amount], description: request_params[:description], paymentExpiry: request_params[:payment_expiry], chargeItems: charge_items, currencyCode: request_params[:currency_code], + language: request_params[:language], signature: charge_request_signature }.compact end # rubocop:enable Metrics/MethodLength # rubocop:enable Metrics/AbcSize