我正在使用 Paytabs 支付网关。使用其余 API 验证密钥提供所有参数,但 API 每次都在“缺少参数商人电子邮件”消息中返回。
result = HTTParty.post("https://www.paytabs.com/apiv2/validate_secret_key",
:body=>{merchant_email: params[:merchant_email],
merchant_secretKey: params[:secret_key]}.to_json,
:headers => { 'Content-Type' => 'application/json',
'Accept' =>'application/json' } )
render :json => {:code=>345, :result => result}