 
 module.exports = class JPayment extends Base
 
-  {secure, dash} = require 'bongo'
+  {secure, dash, signature} = require 'bongo'
   {difference, extend} = require 'underscore'
 
   JUser = require '../user'


  @set
    sharedMethods  :
      static       : [
        'getBalance'
        'setPaymentInfo'
        'fetchAccountDetails'
        'fetchTransactions'
        'fetchCountryDataByIp'
        'removePaymentMethod'
      ]

  @removePaymentMethod: secure (client, paymentMethodId, callback) ->
    (require './method').removePaymentMethod client, paymentMethodId, callback

  @setPaymentInfo = secure (client, paymentMethodId, data, callback) ->
    [data, callback, paymentMethodId] = [paymentMethodId, data, callback]  unless callback
    (require './method').updatePaymentMethodById client, paymentMethodId, data, callback

  @fetchTransactions = secure ({ connection:{ delegate }}, callback) ->
    delegate.fetchPaymentMethods (err, paymentMethods) ->
