Stripe integration without a public IP

0

I have a nodejs integration with stripe for payment processing. It's been working fine for the last year. I've always had an Elastic IP address to make it easy to SSH into my system when needed. When AWS recently decided to start charging for public IPs, I removed the Elastic IP address and just allocate one when needed.

The problem is that my calls to stripe only connect if I have a public IP address on my system. (any address seems to be fine). If I remove the elastic ip from my instance, the calls to stripe timeout - I get no logs on their servers at all that an attempt was even made. I cannot find any documentation that stripe needs to have a public IP address to work. Is it possible they are blocking some of the Amazon IP ranges on incoming calls?

Any suggestions besides paying to keep the Public IP address that I don't otherwise need?

已提問 1 個月前檢視次數 105 次
2 個答案
1
已接受的答案

According to https://docs.stripe.com/ips

Your integration must be able to reach any of Stripe’s fully qualified domain names for it to function properly.

It then goes on to a list a load of domain names and IPv4 addresses.

In order for you to reach these, you need to access the public internet, either directly with a public IPv4 address that has a route to an Internet Gateway, or via a NAT Gateway. If you don't have either of these there's no way to route from your instance onto the public internet, and thus onto the *.stripe.com addresses.

Is it possible they are blocking some of the Amazon IP ranges on incoming calls?

Unlikely (but not impossible) because any time you allocate an elastic IP it gets drawn from the same pool of AWS's public IPv4 addresses.

Any suggestions besides paying to keep the Public IP address that I don't otherwise need?

Will they support connections over IPv6? That's a question to ask of Stripe.

profile picture
專家
Steve_M
已回答 1 個月前
profile picture
專家
已審閱 1 個月前
profile picture
專家
已審閱 1 個月前
  • Thanks for the insights. I'm an application engineer for the most part, and try to stay out of the network level as much as I can and misunderstood the need for the NAT gateway. Thanks!

0

Is your Nodejs implementation based on Lambda?

AWS
已回答 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南