-
Notifications
You must be signed in to change notification settings - Fork 12
Issues: pi-apps/pi-python
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
Author
Label
Projects
Milestones
Assignee
Sort
Issues list
user_uid = "GET-THIS-SECRET-DATA-FROMFRONTEND" #unique for every user
""" Build your payment """
payment_data = {
"amount": 3.14,
"memo": "Test - Greetings from MyApp",
"metadata": {"product_id": "apple-pie-1"},
"uid": user_uid
}
"""
Create an payment
It is critical that you store paymentId in your database
so that you don't double-pay the same user, by keeping track of the payment.
"""
payment_id = pi.create_payment(payment_data)
#14
opened Jan 21, 2025 by
Hasseass
ProTip!
Add no:assignee to see everything that’s not assigned.