lib/alipay/service.rb in alipay-0.7.1 vs lib/alipay/service.rb in alipay-0.8.0

- old
+ new

@@ -160,27 +160,9 @@ }.merge(params) Net::HTTP.get(request_uri(params, options)) end - MOBILD_SECURITY_PAY_REQUIRED_PARAMS = %w( notify_url out_trade_no subject total_fee body ) - def self.mobile_security_pay_url(params, options = {}) - params = Utils.stringify_keys(params) - check_required_params(params, MOBILD_SECURITY_PAY_REQUIRED_PARAMS) - sign_type = options[:sign_type] || Alipay.sign_type - raise ArgumentError, "only support RSA sign_type" if sign_type != 'RSA' - - params = { - 'service' => 'mobile.securitypay.pay', - '_input_charset' => 'utf-8', - 'partner' => options[:pid] || Alipay.pid, - 'seller_id' => options[:pid] || Alipay.pid, - 'payment_type' => '1' - }.merge(params) - - request_uri(params, options).to_s - end - def self.request_uri(params, options = {}) uri = URI(GATEWAY_URL) uri.query = URI.encode_www_form(sign_params(params, options)) uri end