Skip to content

Commit 4618079

Browse files
authored
Merge pull request #6 from gernberg/patch-1
Update README.rdoc
2 parents 4c0c2f0 + d74c87d commit 4618079

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.rdoc

+5-5
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,6 @@ This example assumes the use of the Rails web framework.
122122
request_body = request.body.read
123123
ipn_response = PaysonAPI::Response::IPN.new(request_body)
124124

125-
# Do business stuff, e.g. update the corresponding order:
126-
# order = Order.find_by_payson_token(ipn_response.token)
127-
# order.payson_status = ipn_response.status
128-
# order.save!
129-
130125
# Create a new IPN request object containing the raw response from above
131126
ipn_request = PaysonAPI::Request::IPN.new(ipn_response.raw)
132127

@@ -135,6 +130,11 @@ This example assumes the use of the Rails web framework.
135130
unless validate.verified?
136131
raise "Something went terribly wrong."
137132
end
133+
134+
# Do business transactions, e.g. update the corresponding order:
135+
# order = Order.find_by_payson_token(ipn_response.token)
136+
# order.payson_status = ipn_response.status
137+
# order.save!
138138
end
139139
end
140140

0 commit comments

Comments
 (0)