Sha256: e4dd8727c8bc12c75b5f3b6fda18441bc7fbe560622b2a14944b5bd0597a26b2
Contents?: true
Size: 578 Bytes
Versions: 7
Compression:
Stored size: 578 Bytes
Contents
class Wepay::IpnController < Wepay::ApplicationController def create record = WepayCheckoutRecord.find_by_checkout_id_and_security_token(params[:checkout_id],params[:security_token]) if record.present? wepay_gateway = WepayRails::Payments::Gateway.new checkout = wepay_gateway.lookup_checkout(record.checkout_id) record.update_attributes(checkout) render :text => "ok" else raise StandardError.new("Wepay IPN: No record found for checkout_id #{params[:checkout_id]} and security_token #{params[:security_token]}") end end end
Version data entries
7 entries across 7 versions & 1 rubygems