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

Pb 22 add payment info stripe #56

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

stianjsu
Copy link

No description provided.

Copy link
Collaborator

@sergiosja sergiosja left a 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!!

Comment on lines 17 to 20
#@jwt_required()
def get(self):
# identity = get_jwt_identity()
# user = UserRepository.get_by_id(identity)
Copy link
Collaborator

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)
Copy link
Collaborator

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
Copy link
Collaborator

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)
Copy link
Collaborator

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?

@stianjsu
Copy link
Author

Kjempebra jobba, let's goo!!

haha den er fortsatt veldig i draft, sikkert en uke eller to før dette er ferdig. Men bra engasjement ❤

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

Successfully merging this pull request may close these issues.

2 participants