Module: DohPaypal

Defined in:
lib/doh/paypal/pdt.rb,
lib/doh/paypal/paypal.rb

Class Method Summary collapse

Class Method Details

.get_tx_info(tx_str) ⇒ Object

this downloads the payment data for a transaction, passing in the tx that paypal sends to us



9
10
11
12
13
# File 'lib/doh/paypal/pdt.rb', line 9

def self.get_tx_info(tx_str)
  hash = {'cmd' => '_notify-synch', 'tx' => tx_str, 'at' => DohApp::config['paypal_identity_string']}
  http = Doh::HttpHelper.new("https://#{DohApp::config['paypal_url']}/cgi-bin/webscr")
  http.post(hash)
end