To enable Coinbase as a payment method, do the following:

  1. Sign up at https://commerce.coinbase.com/
  2. Complete the registration steps
  3. Navigate to Settings >> Security >> Whitelisted domains from there add your domain like https://example.com to the wishlist domains.
  4. To get the API key, navigate to Settings >> Security >> API keys