StripeWebhookController

@RestController
@RequestMapping(value = ["/api/v2/webhooks/stripe"])
class StripeWebhookController(@Value(value = "${stripe.webhook-secret}") endpointSecret: String, billingService: BillingService)(source)

Constructors

Link copied to clipboard
constructor(@Value(value = "${stripe.webhook-secret}") endpointSecret: String, billingService: BillingService)

Functions

Link copied to clipboard
@PostMapping
fun handleWebhook(request: HttpServletRequest, @RequestBody payload: String): ResponseEntity<String>