Adds a checking of offset
Merge pull request #5 from vatson/fixes-payment-details

Adds a checking of offset