-
Notifications
You must be signed in to change notification settings - Fork 0
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
Pb 22 add payment info stripe #56
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kjempebra jobba, let's goo!!
#@jwt_required() | ||
def get(self): | ||
# identity = get_jwt_identity() | ||
# user = UserRepository.get_by_id(identity) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
er det viktig å ha med kommentarene i tilfelle, til senere? eller bør de fjernes ?
prices = stripe.Price.list( | ||
expand=['data.product'] | ||
) | ||
# print(prices) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console log XD
) | ||
res = jsonify({'sessionId': checkout_session['id'], 'url': checkout_session['url']}) | ||
|
||
return res |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kunne kanskje returnert jsonify({'sessionId': checkout_session['id'], 'url': checkout_session['url']})
direkte?
# Handle the event | ||
if event['type'] == 'payment_intent.succeeded': | ||
payment_intent = event['data']['object'] | ||
print(payment_intent) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ser brukeren denne printen eller er det for debugging?
haha den er fortsatt veldig i draft, sikkert en uke eller to før dette er ferdig. Men bra engasjement ❤ |
No description provided.