README.md in securetrading-0.2.0 vs README.md in securetrading-0.3.0

- old
+ new

@@ -73,20 +73,20 @@ </billing> </request> </requestblock> ``` -#### FILTER +#### TRANSACTIONQUERY Parameters: - filters - list of filter xml subtags. You may find full list of filters in this doc: [http://www.securetrading.com/support/document/xml-reference-transaction-query/](http://www.securetrading.com/support/document/xml-reference-transaction-query/) Example: ```ruby -> filter = Securetrading::Filter.new({ transactionreference: [ '5-9-1982481', '5-9-1980795'] }) -> filter.perform +> query = Securetrading::TransactionQuery.new(transactionreference: [ '5-9-1982481', '5-9-1980795']) +> query.perform ``` It will send post request with xml: ```XML <requestblock version=\"3.67\"> @@ -97,9 +97,17 @@ <transactionreference>5-9-1980795</transactionreference> </filter> </request> </requestblock> ``` + +#### SiteSecurity + +Helper class for sitesecurity value calculation. +More details in [STPP-Payment-Pages-Setup-Guide-V2](http://www.securetrading.com/files/documentation/STPP-Payment-Pages-Setup-Guide-V2.pdf) chapter 6. + +Methods: + * hash(fields) - calculates SHA256 hash from fields. List of fields you can check in doc above. ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.