#1infiniteloop-customer
1 messages · Page 1 of 1 (latest)
Hello! starting a thread for you
Quick question - what are you using the IP address for? Is this for Stripe Tax, or something else?
thanks
Copying over some of the context you left in the main channel:
is there a way to pass customer ip_address to stripe
or as a webhook get the customer ip
we're trying to integrate it into our crm and the only way to match customers is by their customer ip
Other than Stripe Tax, there isn't a way to set an IP address for a customer
1infiniteloop-customer
does every customer have a tax-id ip
It depends on how they're being created - hosted flows like Checkout will create a customer with an IP address, but if you're creating customers yourself you would need to send us that information
ok
so if its a stripe hosted page then it will be included in the customer object or the charge object
and if we do it ourselves the hosting, is there a way that when we specify a thank you url after payment we can pass paramaters in the url
like customer_id or ip as a url paramater
that would also work for us
if thats possible
There wouldn't be a way to put the customer ID or IP as a url parameter, but depending on what you're using you can include things like the checkout session ID and retrieve the customer from that
you mean depending on what shopping cart i'm using to collect payments
?
like woocommerce or shopify
Are you using a third-party plugin or extension? You're not integration with Stripe directly?
we have multiple funnels
for most we use self hosted
but we're trying to test stripe hosted
So which specific Stripe product are you looking to use? Checkout? Payment Element? Something else?
checkout and elements
So for Checkout, the only url param you can add is the Checkout Session ID (we talk about this here https://stripe.com/docs/payments/checkout/custom-success-page), but the Checkout Session ID should link to the Customer so you can easily get that information
For Payment Element you can have the Payment Intent ID in the return_url (which we talk about here https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#web-submit-payment)
but in both these cases we don't have access to the ip
unless is throug hte checkout product
You'd be able to get it through Checkout (because you can retrieve the Customer from the CHeckout Session), but not through Elements (since we wouldn't be saving the IP address for the Customer in this case)
Backing up for a second here though - why are you trying to do this?
we are doing this to integrate with our custom crm
but we track our customers ip's
and we'd like to match them to stripe
so for example
we use intercom to integrate with our crm
we pass to intercom the customer ip when they're on our page
at that moment they might or might not be a customer
so all we have is an ip address as a way to distinguish that person
when they become a customer we move them to a different support line
but if we dont' know how it is because we only have their ip
and stripe doesn't tell us the ip
is becoming impossible
to match them
If you're using Elements you could manage all this yourself though - Elements would be on your own page (so you would be the one to pull the IP address, not Stripe) and when you create the Customer in Stripe you can just store the relationship between IP address and the Stripe Customer ID in your own databases
yeah thats what i'm thinking
i was just wondering if we switch to hosted pages
if we could still do it
we manage multiple accounts
and its a hassle sometimes
and we really needed this
thanks so much for your hlep
Yeah if the IP address is this vital to your tracking I'd just stick with Elements so you have more control over the whole flow