lib/pesapal/merchant/post.rb in pesapal-1.3.0 vs lib/pesapal/merchant/post.rb in pesapal-1.5.0

- old
+ new

@@ -1,11 +1,11 @@ module Pesapal module Post # build html encoded xml string for PostPesapalDirectOrderV4 - def Post.generate_post_xml(details) + def self.generate_post_xml(details) # build xml with input data, the format is standard so no editing is # required post_xml = '' post_xml.concat '<?xml version="1.0" encoding="utf-8"?>' @@ -28,10 +28,10 @@ "#{post_xml}" end # set parameters required by the PostPesapalDirectOrderV4 call - def Post.set_parameters(callback_url, consumer_key, post_xml) + def self.set_parameters(callback_url, consumer_key, post_xml) # parameters required by the PostPesapalDirectOrderV4 call (excludes # oauth_signature parameter as per the instructions here # http://developer.pesapal.com/how-to-integrate/api-reference#PostPesapalDirectOrderV4)