-
Notifications
You must be signed in to change notification settings - Fork 5
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
ECP-2415 -- add extra details to charge request #92
ECP-2415 -- add extra details to charge request #92
Conversation
aa_stripe/models.py
Outdated
@@ -409,8 +409,15 @@ def charge(self, idempotency_key=None): | |||
metadata = { | |||
"object_id": self.object_id, | |||
"content_type_id": self.content_type_id, | |||
"member_uuid": str(self.user.uuid), |
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.
This lib is public and some other users might not have this field
"member_uuid": str(self.user.uuid), | |
"member_uuid": str(self.user.uuid) if hasattr(self.user, "uuid") else None, |
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.
made the updates
aa_stripe/models.py
Outdated
@@ -409,8 +409,15 @@ def charge(self, idempotency_key=None): | |||
metadata = { | |||
"object_id": self.object_id, | |||
"content_type_id": self.content_type_id, | |||
"member_uuid": str(self.user.uuid), | |||
"origin": "roman_api", |
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.
Please move it to some settings.
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.
Looks good, do you want to bump version and changelog in the same PR?
@remik i updated release details and version. if you can review |
Looks good. Let me know if you have access with releasing it. If not I can add you to pypi or just release. |
WHAT: