-
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
docs(connector): update connector integration documentation #3041
Conversation
Signed-off-by: chikke srujan <[email protected]>
add_connector.md
file add_connector.md
document
add_connector.md
document Signed-off-by: chikke srujan <[email protected]>
add_connector.md
Outdated
let redirection_data = item.response.links.redirect.map(|href| { | ||
services::RedirectForm::from((href.redirection_url, services::Method::Get)) | ||
}); |
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.
Can we format the Rust code snippets included in this document?
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.
Done
add_connector.md
Outdated
``` | ||
|
||
**ConnectorIntegration :** For every api endpoint contains the url, using request transform and response transform and headers. | ||
Within the `ConnectorIntegration` trait, you'll find the following methods implemented(below mentioned is example for authorized flow ): |
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.
Within the `ConnectorIntegration` trait, you'll find the following methods implemented(below mentioned is example for authorized flow ): | |
Within the `ConnectorIntegration` trait, you'll find the following methods implemented (below mentioned is example for authorized flow): |
add_connector.md
Outdated
} | ||
``` | ||
|
||
- `get_request_body` method calls transformers where hyperswitch payment request data is transformed into connector payment request .For constructing the request body have a function `log_and_get_request_body` that allows generic argument which is the struct that is passed as the body for connector integration, and a function that can be use to encode it into String. We log the request in this function, as the struct will be intact and the masked values will be masked. |
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.
- `get_request_body` method calls transformers where hyperswitch payment request data is transformed into connector payment request .For constructing the request body have a function `log_and_get_request_body` that allows generic argument which is the struct that is passed as the body for connector integration, and a function that can be use to encode it into String. We log the request in this function, as the struct will be intact and the masked values will be masked. | |
- `get_request_body` method calls transformers where hyperswitch payment request data is transformed into connector payment request. For constructing the request body have a function `log_and_get_request_body` that allows generic argument which is the struct that is passed as the body for connector integration, and a function that can be use to encode it into String. We log the request in this function, as the struct will be intact and the masked values will be masked. |
Please ensure correct punctuation across the document.
Type of Change
Description
As
add_connector.md
was updated long time ago, This PR updates theadd_connector.md
file.Additional Changes
Motivation and Context
How did you test it?
No tests required as this is documentation related PR.
Checklist
cargo +nightly fmt --all
cargo clippy