I am currently building out our onboarding process for providers (or sellers per Stripe). I have already been able to successfully create a customer but am having issues with the function of [Stripe.js - Platform - Update a custom seller’s details].
I am trying to figure out how do I provide a dynamic UNIX timestamp for the TOS Date field. I tried leaving the field in it’s default “UNIX (in seconds)” but I get basically the same error (see below).
I tried looking at the @copilot documentation but the video doesn’t address the TOS IP Address or TOS Date fields. Any help would be super appreciated!
Now that I have gotten past that issue, I am getting another error about an invalid IP address. Would you happen to know what to put there by any chance? Sorry, I am very new at this.
Would it be fine if I just updated a user field user_IP by making the API call of ipiphy and storing that number to use for the stripe API call. Or is it best to simply save it on a custom state.
I also have the same question about Stripe-IDs. Is it against best practices to store that info - the stripe generated ID and IP address?
It’s really up to you regarding storage; if you have other uses for users’ IP addresses then save them as you see fit. Where not particularly useful, we save IP addresses in a custom state for seller onboarding.
For the future, please give us a shout at [email protected] if you run into issues.