Method: Mobius::Client::App#pay

Defined in:
lib/mobius/client/app.rb

#pay(amount, target_address: nil) ⇒ Object

Deprecated.

use #charge instead

Makes payment.

Parameters:

  • amount (Numeric, String)

    Payment amount.

  • target_address (String) (defaults to: nil)

    Optional: third party receiver address.



45
46
47
48
49
50
51
# File 'lib/mobius/client/app.rb', line 45

def pay(amount, target_address: nil)
  warn <<~MSG
    [DEPRECATED] method Mobius::Client::App#pay is deprecated and will be removed,
    use Mobius::Client::App#charge instead"
  MSG
  charge(amount, target_address)
end