-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(connector): [VOLT] Implement payment flows and bank redirect payment method #2582
Merged
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
89c7828
feat(connector): [VOLT] Implement bank redirect
swangi-kumari 55f64a4
implement volt connector payment flows
swangi-kumari d11e9f0
docs(openapi): re-generate OpenAPI specification
github-actions[bot] 9aab3f8
refactor: fix error messages
swangi-kumari 734b633
Merge branch 'volt' of https://github.com/juspay/hyperswitch into volt
swangi-kumari 40eec3b
removed unnessary comment
swangi-kumari 9a150f5
Merge branch 'main' into volt
swangi-kumari d4ed524
resolve comments
swangi-kumari c8221da
Merge branch 'main' into volt
swangi-kumari 2d47d44
Merge branch 'volt' of https://github.com/juspay/hyperswitch into volt
swangi-kumari 259dbbf
fix: resolve comments
swangi-kumari 0264012
Merge branch 'main' into volt
prasunna09 3d0b67b
refactor: fix payment status
swangi-kumari 92ae8df
Merge branch 'main' into volt
swangi-kumari 62c631a
refactor: remove rsync fun, fix error message, fix payment status
swangi-kumari 19db82d
fix: resolve comments
swangi-kumari 79ad261
fix: add settled payment status
swangi-kumari 37c54b0
feat: add postman test cases
swangi-kumari e51802f
fix: updated connector auth file
swangi-kumari 3086a3d
Merge branch 'main' into volt
swangi-kumari 25e0c6b
fix: update connector auth file
swangi-kumari 7ff277c
Merge branch 'main' into volt
swangi-kumari File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -238,11 +238,19 @@ impl From<VoltPaymentStatus> for enums::AttemptStatus { | |
fn from(item: VoltPaymentStatus) -> Self { | ||
match item { | ||
VoltPaymentStatus::Completed => Self::Charged, | ||
VoltPaymentStatus::Processing => Self::Pending, | ||
VoltPaymentStatus::NewPayment | VoltPaymentStatus::Received => { | ||
VoltPaymentStatus::Received | ||
| VoltPaymentStatus::NotReceived | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Map this to |
||
| VoltPaymentStatus::DelayedAtBank | ||
| VoltPaymentStatus::AwaitingCheckoutAuthorisation => Self::Pending, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. AwaitingCheckoutAuthorisation should be mapped to AuthenticationPending |
||
VoltPaymentStatus::NewPayment | VoltPaymentStatus::BankRedirect => { | ||
Self::AuthenticationPending | ||
} | ||
VoltPaymentStatus::AbandonedByUser => Self::AuthenticationFailed, | ||
VoltPaymentStatus::RefusedByBank | ||
| VoltPaymentStatus::RefusedByRisk | ||
| VoltPaymentStatus::ErrorAtBank | ||
| VoltPaymentStatus::CancelledByUser | ||
| VoltPaymentStatus::AbandonedByUser | ||
| VoltPaymentStatus::Failed => Self::Failure, | ||
} | ||
} | ||
} | ||
|
@@ -289,8 +297,16 @@ pub enum VoltPaymentStatus { | |
NewPayment, | ||
Completed, | ||
Received, | ||
NotReceived, | ||
BankRedirect, | ||
DelayedAtBank, | ||
AwaitingCheckoutAuthorisation, | ||
RefusedByBank, | ||
RefusedByRisk, | ||
ErrorAtBank, | ||
CancelledByUser, | ||
AbandonedByUser, | ||
Processing, | ||
Failed, | ||
} | ||
#[derive(Debug, Deserialize)] | ||
#[serde(rename_all = "camelCase")] | ||
|
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.
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 map this to
Charged