README.md in crp-0.0.3 vs README.md in crp-0.0.4
- old
+ new
@@ -42,20 +42,18 @@
Parse the callback received from CRP:
```` ruby
require "crp"
=> true
-review_callback_response = CRP::ReviewCallbackResponse.new(callback_response)
+review_callback = CRP::ReviewCallbackRequest.new(callback_request)
=>
-review_callback_response.successful?
- => true
-review_callback_response.internal_id
+review_callback.internal_id
=> "123"
-review_callback_response.external_id
+review_callback.external_id
=> "4321"
-review_callback_response.result_code
+review_callback.result_code
=> 1
-review_callback_response.result_message
+review_callback.result_message
=> "Approved"
````
**WARNING** You are responsible for listening for the callback, the gem does not handle that in any way. Note that CRP expects to see an `ok` body when sending its callback or it will keep sending the same callback over and over again.