Pb 22 add payment info stripe - #56
Draft
stianjsu wants to merge 3 commits into
Draft
Conversation
sergiosja
approved these changes
Oct 16, 2023
sergiosja
left a comment
Collaborator
There was a problem hiding this comment.
Kjempebra jobba, let's goo!!
Comment on lines
+17
to
+20
| #@jwt_required() | ||
| def get(self): | ||
| # identity = get_jwt_identity() | ||
| # user = UserRepository.get_by_id(identity) |
Collaborator
There was a problem hiding this comment.
er det viktig å ha med kommentarene i tilfelle, til senere? eller bør de fjernes ?
| prices = stripe.Price.list( | ||
| expand=['data.product'] | ||
| ) | ||
| # print(prices) |
| ) | ||
| res = jsonify({'sessionId': checkout_session['id'], 'url': checkout_session['url']}) | ||
|
|
||
| return res |
Collaborator
There was a problem hiding this comment.
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) |
Collaborator
There was a problem hiding this comment.
ser brukeren denne printen eller er det for debugging?
Collaborator
Author
haha den er fortsatt veldig i draft, sikkert en uke eller to før dette er ferdig. Men bra engasjement ❤ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.