Missing 1 required positional argument: method


#1
response = Paynow.send_mobile(payment, '0779094759', 'ecocash')
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

TypeError: Paynow.send_mobile() missing 1 required positional argument: ‘method’

hello guys how do I resolve this error


#2

It’s paynow and not Paynow as you have stated there… You are creating an instance of the Paynow class instead of using the method.


#3

As mentioned by @Surveyor please make sure you following through as mentioned in the docs for our NodeJS SDK