Traceback (most recent call last):
File "payment.py", line 6, in <module>
venmo.payment.send_money(int, 'comment', 'recipientid')
File "/home/USER/anaconda3/lib/python3.8/site-packages/venmo_api/apis/payment_api.py", line 54, in send_money
return self.__send_or_request_money(amount=amount,
File "/home/USER/anaconda3/lib/python3.8/site-packages/venmo_api/apis/payment_api.py", line 122, in __send_or_request_money
funding_source_id = self.get_default_payment_method().id
File "/home/USER/anaconda3/lib/python3.8/site-packages/venmo_api/apis/payment_api.py", line 144, in get_default_payment_method
payment_methods = self.get_payment_methods()
File "/home/USER/anaconda3/lib/python3.8/site-packages/venmo_api/apis/payment_api.py", line 32, in get_payment_methods
return deserialize(response=response, data_type=PaymentMethod)
File "/home/USER/anaconda3/lib/python3.8/site-packages/venmo_api/utils/api_util.py", line 43, in deserialize
return __get_objs_from_json_list(json_list=data, data_type=data_type)
File "/home/USER/anaconda3/lib/python3.8/site-packages/venmo_api/utils/api_util.py", line 77, in __get_objs_from_json_list
data_obj = data_type.from_json(obj)
File "/home/USER/anaconda3/lib/python3.8/site-packages/venmo_api/models/payment_method.py", line 26, in from_json
payment_class = payment_type[p_type]
KeyError: 'card'
Thanks for opening an issue. This was caused by a card payment_method, that is currently not supported. It should be fixed in the new version. Update your venmo-api using pip3 install venmo-api --upgrade
The following is the code I'm trying to run:
The following is the traceback: