File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -122,11 +122,6 @@ This example assumes the use of the Rails web framework.
122
122
request_body = request.body.read
123
123
ipn_response = PaysonAPI::Response::IPN.new(request_body)
124
124
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
-
130
125
# Create a new IPN request object containing the raw response from above
131
126
ipn_request = PaysonAPI::Request::IPN.new(ipn_response.raw)
132
127
@@ -135,6 +130,11 @@ This example assumes the use of the Rails web framework.
135
130
unless validate.verified?
136
131
raise "Something went terribly wrong."
137
132
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!
138
138
end
139
139
end
140
140
You can’t perform that action at this time.
0 commit comments