Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how do i get item id ? #166

Open
dhdygks54 opened this issue Jun 13, 2021 · 2 comments
Open

how do i get item id ? #166

dhdygks54 opened this issue Jun 13, 2021 · 2 comments

Comments

@dhdygks54
Copy link

dhdygks54 commented Jun 13, 2021

hi guys

i finished almost functions

but i have one problems about listener part

when user start to payments

and i got transaction id but how do i know user bought which item ?

i tried find_payment function but that objects only returned None

like this

def print_payment_id(payment_id):
payment = facade.find_payment(payment_id)
print('payment:',payment, payment.status(),"user:",payment.user, payment.items.name)

so i can't add to some package to user with transaction id

only i can know user have which transaction and status

and objects also can't callable

please check this problems

and your product really helped to me

thank you!

@renzon
Copy link
Owner

renzon commented Mar 31, 2024

Hi, sorry for late response, but you can have the items from the paytment. Check that they are saved as reponse to sucessfull notification: https://github.com/renzon/django_pagarme/blob/master/django_pagarme/facade.py#L114

@renzon
Copy link
Owner

renzon commented Mar 31, 2024

A but I found is not having items for purchases with no accepted states: #131

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants