mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
feat(core): Add a new endpoint for Complete Authorize flow (#4686)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -81,6 +81,7 @@ Never share your secret api keys. Keep them guarded and secure.
|
||||
routes::payments::payments_incremental_authorization,
|
||||
routes::payment_link::payment_link_retrieve,
|
||||
routes::payments::payments_external_authentication,
|
||||
routes::payments::payments_complete_authorize,
|
||||
|
||||
// Routes for refunds
|
||||
routes::refunds::refunds_create,
|
||||
@ -402,6 +403,7 @@ Never share your secret api keys. Keep them guarded and secure.
|
||||
api_models::payments::CaptureResponse,
|
||||
api_models::payments::PaymentsIncrementalAuthorizationRequest,
|
||||
api_models::payments::IncrementalAuthorizationResponse,
|
||||
api_models::payments::PaymentsCompleteAuthorizeRequest,
|
||||
api_models::payments::PaymentsExternalAuthenticationRequest,
|
||||
api_models::payments::PaymentsExternalAuthenticationResponse,
|
||||
api_models::payments::SdkInformation,
|
||||
|
||||
@ -486,3 +486,23 @@ pub fn payments_incremental_authorization() {}
|
||||
security(("publishable_key" = []))
|
||||
)]
|
||||
pub fn payments_external_authentication() {}
|
||||
|
||||
/// Payments - Complete Authorize
|
||||
///
|
||||
///
|
||||
#[utoipa::path(
|
||||
post,
|
||||
path = "/{payment_id}/complete_authorize",
|
||||
request_body=PaymentsCompleteAuthorizeRequest,
|
||||
params(
|
||||
("payment_id" =String, Path, description = "The identifier for payment")
|
||||
),
|
||||
responses(
|
||||
(status = 200, description = "Payments Complete Authorize Success", body = PaymentsResponse),
|
||||
(status = 400, description = "Missing mandatory fields")
|
||||
),
|
||||
tag = "Payments",
|
||||
operation_id = "Complete Authorize a Payment",
|
||||
security(("publishable_key" = []))
|
||||
)]
|
||||
pub fn payments_complete_authorize() {}
|
||||
|
||||
Reference in New Issue
Block a user