isValidWebhookIpAddress function

bool isValidWebhookIpAddress(
  1. String ipAddress
)

Returns true if the provided ip address is of of the white listed Stripe webhook ip addresses.

Implementation

bool isValidWebhookIpAddress(String ipAddress) => [
      '3.18.12.63',
      '3.130.192.231',
      '13.235.14.237',
      '13.235.122.149',
      '35.154.171.200',
      '52.15.183.38',
      '54.187.174.169',
      '54.187.205.235',
      '54.187.216.72',
      '54.241.31.99',
      '54.241.31.102',
      '54.241.34.107',
    ].contains(ipAddress);