Closed cjappl closed 3 years ago
You may access it in the transaction.payment_type
The target and actor work a little differently. The actor can request money, or can send money. Being the actor just shows that that was the user that initiated the transaction.
Got it! I missed that one. Thanks for the help!
I'd like to request the "action" member be available in the transaction class.
Happy to circle back and take care of this myself after I'm done with this project.
You can reference it now by: transaction._json['payment']['action']
Looks like it is 'charge' or 'pay'
It would be nice to be able to specifically look at actor or target based on the action:
right now, I have to check both, because I can't be sure which direction the transaction is flowing:
if transaction.target.display_name == 'my friend' or transaction.actor.display_name == 'my friend'
Not a massive deal, in the large scale of things, but I'd definitely use it :)
Thanks for all your work on this project, it's so helpful!