Skip to content

Conversation

@mrsaicharan1
Copy link
Member

Fixes #6248

Short description of what this resolves:

PayTM uses a merchant key & a secret key to authorize payments. These will be used in the follow-up PRs for the integration of the payment gateway.

Changes proposed in this pull request:

  • Model & schema additions PayTM
  • Added hybrid properties to check for activation

Checklist

  • I have read the Contribution & Best practices Guide and my PR follows them.
  • My branch is up-to-date with the Upstream development branch.
  • The unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • All the functions created/modified in this PR contain relevant docstrings.

@auto-label auto-label bot added the feature label Jul 29, 2019
@mrsaicharan1 mrsaicharan1 force-pushed the paytm-fields branch 2 times, most recently from d1e0e66 to 66171b7 Compare July 29, 2019 13:00
@codecov
Copy link

codecov bot commented Jul 29, 2019

Codecov Report

Merging #6249 into development will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #6249      +/-   ##
===============================================
+ Coverage        65.24%   65.28%   +0.04%     
===============================================
  Files              287      287              
  Lines            14731    14749      +18     
===============================================
+ Hits              9611     9629      +18     
  Misses            5120     5120
Impacted Files Coverage Δ
app/models/setting.py 91.41% <100%> (+0.55%) ⬆️
app/api/schema/settings.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7b4ba3a...3d54758. Read the comment docs.

@mrsaicharan1 mrsaicharan1 force-pushed the paytm-fields branch 4 times, most recently from 28fe009 to eaeed38 Compare July 30, 2019 04:08
@mrsaicharan1
Copy link
Member Author

@iamareebjamal @uds5501 @shreyanshdwivedi Please have a look


<<<<<<< Updated upstream
=======
# payTM credentials

Choose a reason for hiding this comment

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

unexpected indentation (comment)

@mrsaicharan1 mrsaicharan1 force-pushed the paytm-fields branch 4 times, most recently from ccbc09b to 7f7c82c Compare August 10, 2019 06:36
@mrsaicharan1 mrsaicharan1 changed the title feat: Model additons & hybrid methods for payTM feat: Model additions for payTM integration Aug 10, 2019
@mrsaicharan1 mrsaicharan1 force-pushed the paytm-fields branch 5 times, most recently from e69d5c8 to 6d8c3ee Compare August 10, 2019 08:35
@fossasia fossasia deleted a comment Aug 10, 2019
@fossasia fossasia deleted a comment Aug 10, 2019
@mrsaicharan1
Copy link
Member Author

SAWarning: Attribute 'is_paytm_activated' on class <class 'app.models.setting.Setting'> appears to be a non-schema 'sqlalchemy.sql.column()' object; this won't be part of the declarative mapping
  % (key, cls)

@kushthedude @iamareebjamal I'm getting this warning when I restart the server. Aren't the model and schema fields present here?

@mrsaicharan1
Copy link
Member Author

SAWarning: Attribute 'is_paytm_activated' on class <class 'app.models.setting.Setting'> appears to be a non-schema 'sqlalchemy.sql.column()' object; this won't be part of the declarative mapping
  % (key, cls)

@kushthedude @iamareebjamal I'm getting this warning when I restart the server. Aren't the model and schema fields present here?

Fixed

kushthedude
kushthedude previously approved these changes Aug 10, 2019
Copy link
Member

@kushthedude kushthedude left a comment

Choose a reason for hiding this comment

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

LGTM !

uds5501
uds5501 previously approved these changes Aug 10, 2019
Copy link
Member

@shreyanshdwivedi shreyanshdwivedi left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@mrsaicharan1
Copy link
Member Author

mrsaicharan1 commented Aug 10, 2019

Travis wasn't able to start. I've rebased and pushed once again. Please review. @kushthedude @uds5501 @shreyanshdwivedi

Copy link
Contributor

@uds5501 uds5501 left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Addition of API keys for PayTM

7 participants