Last active
June 10, 2021 21:13
-
-
Save NajeebArif/6eaf5c377db77244328ef3abd1adc9c0 to your computer and use it in GitHub Desktop.
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
//... | |
private final PaymentService paymentService; | |
public OrderController(PaymentService paymentService) { | |
this.paymentService = paymentService; | |
} | |
@PostMapping | |
public String placeOrder(@RequestParam Double totalAmount, HttpServletRequest request){ | |
final URI returnUrl = buildReturnUrl(request); | |
CreatedOrder createdOrder = paymentService.createOrder(totalAmount, returnUrl); | |
return ""; | |
} | |
//... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment