Package com.skava.apppaymentplugin.web
Class AppPaymentController
java.lang.Object
com.skava.apppaymentplugin.web.AppPaymentController
Contains completepayment API's
completepayment - It's return CompletePaymentResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<CompletePaymentResponse>
completePayment
(String requestId, String option, String status, String locale, CompletePaymentDetails completePaymentDetails) This API is to complete a payment/transaction which is registered already completepayment - It's return CompletePaymentResponse With help of request url it will get the complete payment
-
Constructor Details
-
AppPaymentController
public AppPaymentController()
-
-
Method Details
-
completePayment
@PostMapping("/completepayment/{requestId}/{status}/{option}") public org.springframework.http.ResponseEntity<CompletePaymentResponse> completePayment(@PathVariable(value="requestId",required=true) String requestId, @PathVariable(value="option",required=true) String option, @PathVariable(value="status",required=true) String status, @RequestHeader(value="locale",required=false,defaultValue="en_US") String locale, @RequestBody(required=true) CompletePaymentDetails completePaymentDetails) This API is to complete a payment/transaction which is registered already completepayment - It's return CompletePaymentResponse With help of request url it will get the complete payment- Parameters:
requestId
-option
-status
-completePaymentDetails
-- Returns:
- ResponseEntity
-