-
Notifications
You must be signed in to change notification settings - Fork 4.2k
feat(connector): [Adyen] Add support for PIX Payment Method #3236
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
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
2e88745
feat: implement pix for adyen
swangi-kumari 288b04b
Merge branch 'main' into pix
swangi-kumari b09cbbf
docs(openapi): re-generate OpenAPI specification
hyperswitch-bot[bot] f4f1c4d
fix: remove unnecessary comments
swangi-kumari 9290384
Merge branch 'pix' of https://github.com/juspay/hyperswitch into pix
swangi-kumari 0606275
Merge branch 'main' into pix
swangi-kumari 83f9807
feat: pix recieving url in response
swangi-kumari 554683e
Merge remote-tracking branch 'origin' into pix
swangi-kumari 53807f9
Merge branch 'main' of https://github.com/juspay/hyperswitch into pix
swangi-kumari 6de61d2
refactor: handle 3 cases in adyen transformer
swangi-kumari 26fcb9f
refactor: redirection working
swangi-kumari 2ea1a49
Merge branch 'main' into pix
swangi-kumari 2d161fa
Merge branch 'main' into pix
swangi-kumari 47f8ebf
refactor: create from impl
swangi-kumari 8896530
refactor: display_to_timestamp works
swangi-kumari c9e88a7
refactor: wechatpay working
swangi-kumari eeb08ad
refactor: fixed bank_transfer
swangi-kumari c8e3460
refactor: fic clippy warnings
swangi-kumari 3d15bbb
refactor: rename functions and add check for pix
swangi-kumari b42c412
refactor: remove unnecessary comments
swangi-kumari 6beac53
refactor: convert display_to_timestamp in milisecond
swangi-kumari afbd060
refactor: create a funtion for get_timestamp_in_milliseconds
swangi-kumari 77715da
refactor: fix
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 hidden or 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 |
---|---|---|
|
@@ -1892,8 +1892,12 @@ pub enum NextActionData { | |
/// Contains url for Qr code image, this qr code has to be shown in sdk | ||
QrCodeInformation { | ||
#[schema(value_type = String)] | ||
image_data_url: Url, | ||
/// Hyperswitch generated image data source url | ||
image_data_url: Option<Url>, | ||
display_to_timestamp: Option<i64>, | ||
#[schema(value_type = String)] | ||
/// The url for Qr code given by the connector | ||
qr_code_url: Option<Url>, | ||
}, | ||
/// Contains the download url and the reference number for transaction | ||
DisplayVoucherInformation { | ||
|
@@ -1907,6 +1911,26 @@ pub enum NextActionData { | |
}, | ||
} | ||
|
||
#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)] | ||
#[serde(rename_all = "snake_case")] | ||
#[serde(untagged)] | ||
// the enum order shouldn't be changed as this is being used during serialization and deserialization | ||
pub enum QrCodeInformation { | ||
QrCodeUrl { | ||
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. Please add comments stating that the enum order shouldn't be changed as this is being used during serialization and deserialization |
||
image_data_url: Url, | ||
qr_code_url: Url, | ||
display_to_timestamp: Option<i64>, | ||
}, | ||
QrDataUrl { | ||
image_data_url: Url, | ||
display_to_timestamp: Option<i64>, | ||
}, | ||
QrCodeImageUrl { | ||
qr_code_url: Url, | ||
display_to_timestamp: Option<i64>, | ||
}, | ||
} | ||
|
||
#[derive(Clone, Debug, Eq, PartialEq, serde::Serialize, serde::Deserialize, ToSchema)] | ||
pub struct BankTransferNextStepsData { | ||
/// The instructions for performing a bank transfer | ||
|
@@ -1932,6 +1956,7 @@ pub struct VoucherNextStepData { | |
pub struct QrCodeNextStepsInstruction { | ||
pub image_data_url: Url, | ||
pub display_to_timestamp: Option<i64>, | ||
pub qr_code_url: Option<Url>, | ||
} | ||
|
||
#[derive(Clone, Debug, serde::Deserialize)] | ||
|
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.