lib/paylense-sdk/disbursements.rb
# The transfer operation is used to transfer an amount from the payer's
# account to a payee account.
# The status of the transaction can be validated
# by using `get_transation_status`
The transfer operation is used to transfer an amount from the payer's
account to a payee account.
The status of the transaction can be validated
by using `get_transation_status`
The transfer operation is used to transfer an amount from the payer ' s account to a payee account . The status of the transaction can be validated by using ` get_transation_status `
def transfer(api_key, account_number, amount, merchant_reference, payment_method, provider, currency,
                 narration = '', account_name = '', account_email ='', redirect_url = '', callback_url = '',
                 extra_provider_detail = {})
      Paylense::Validate.new.validate(account_number, amount)
      merchant_reference = SecureRandom.uuid unless merchant_reference.blank?
      body = {
        "account_number": account_number,
        "narration": narration,
        "merchant_reference": merchant_reference,
        "amount": amount.to_i,
        "api_key": api_key,
        "payment_method": payment_method,
        "provider": provider,
        "currency": currency,
        "account_name": account_name,
        "account_email": account_email,
        "redirect_url": redirect_url,
        "callback_url": callback_url,
        "extra_provider_detail": extra_provider_detail
      }
      path = '/transfer'
      send_request('post', path, body)
      { merchant_reference: merchant_reference }
    end
def transfer ( api_key , account_number , amount , merchant_reference , payment_method , provider , currency , narration = '' , account_name = '' , account_email = '' , redirect_url = '' , callback_url = '' , extra_provider_detail = { } ) Paylense :: Validate . new . validate ( account_number , amount ) merchant_reference = SecureRandom . uuid unless merchant_reference . blank? body = { "account_number" : account_number , "narration" : narration , "merchant_reference" : merchant_reference , "amount" : amount . to_i , "api_key" : api_key , "payment_method" : payment_method , "provider" : provider , "currency" : currency , "account_name" : account_name , "account_email" : account_email , "redirect_url" : redirect_url , "callback_url" : callback_url , "extra_provider_detail" : extra_provider_detail } path = '/transfer' send_request ( 'post' , path , body ) { merchant_reference : merchant_reference } end
The transfer operation is used to transfer an amount from the payer's
account to a payee account.
The transfer operation is used to transfer an amount from the payer ' s account to a payee account .
api_key
<not_specific>
account_number
<not_specific>
amount
<not_specific>
merchant_reference
<not_specific>
payment_method
<not_specific>
provider
<not_specific>
currency
<not_specific>
narration
<not_specific>
account_name
<not_specific>
account_email
<not_specific>
redirect_url
<not_specific>
callback_url
<not_specific>
extra_provider_detail
<not_specific>