Skip to content

Pb 22 add payment info stripe - #56

Draft
stianjsu wants to merge 3 commits into
mainfrom
PB-22-add-payment-info-stripe
Draft

Pb 22 add payment info stripe#56
stianjsu wants to merge 3 commits into
mainfrom
PB-22-add-payment-info-stripe

Conversation

@stianjsu

Copy link
Copy Markdown
Collaborator

No description provided.

@sergiosja sergiosja left a comment

Copy link
Copy Markdown
Collaborator

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 thread application/backend/app/api/stripe.py Outdated
Comment on lines +17 to +20
#@jwt_required()
def get(self):
# identity = get_jwt_identity()
# user = UserRepository.get_by_id(identity)

Copy link
Copy Markdown
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 ?

Comment thread application/backend/app/api/stripe.py Outdated
prices = stripe.Price.list(
expand=['data.product']
)
# print(prices)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

console log XD

Comment thread application/backend/app/api/stripe.py Outdated
)
res = jsonify({'sessionId': checkout_session['id'], 'url': checkout_session['url']})

return res

Copy link
Copy Markdown
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?

Comment thread application/backend/app/api/stripe.py Outdated
# Handle the event
if event['type'] == 'payment_intent.succeeded':
payment_intent = event['data']['object']
print(payment_intent)

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