Stripe 결제 적용 테스트
This commit is contained in:
@@ -1565,7 +1565,7 @@ public class OrdrController {
|
|||||||
*/
|
*/
|
||||||
@Policy(AuthPolicy.RESTRICTED)
|
@Policy(AuthPolicy.RESTRICTED)
|
||||||
@RequestMapping(value="/insertStripeSetle")
|
@RequestMapping(value="/insertStripeSetle")
|
||||||
public void insertStripeSetle(@RequestBody String payload, @RequestHeader("Stripe-Signature") String sigHeader) {
|
public ResponseEntity<String> insertStripeSetle(@RequestBody String payload, @RequestHeader("Stripe-Signature") String sigHeader) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
log.info("insertStripeSetle webhook start ::: ");
|
log.info("insertStripeSetle webhook start ::: ");
|
||||||
@@ -1657,7 +1657,11 @@ public class OrdrController {
|
|||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.debug("Webhook error ::: {}", e);
|
log.debug("Webhook error ::: {}", e);
|
||||||
|
|
||||||
|
return ResponseEntity.status(HttpStatus.BAD_REQUEST).build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return ResponseEntity.ok().build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user