Pin Payments API Implementation for Ruby and Rails