#alan-tse_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1295215519183405056
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
We are currently transmitting plaintext card numbers using the PCI interface, so the code looks like this:
json
-d payment_method_data[type]=card
-d payment_method_data[card][number]=4242424242424242
-d payment_method_data[card][exp_month]=12
-d payment_method_data[card][exp_year]=2022
-d payment_method_data[card][cvc]=123
Since we have not integrated any of Stripe's components or JavaScript and have built our own payment form, we consulted with Stripe support before. They guided us to pass in the IP and user agent when creating a payment intent:
json
mandate_data[customer_acceptance][online][ip_address]
mandate_data[customer_acceptance][online][user_agent]
However, our customers have noticed that there is no IP and user agent information in Radar.
I have now checked the updated Stripe documentation at: https://docs.stripe.com/radar/integration#recommendations
Do we need to do it like this so that Radar will have the IP and user agent information?
haml
-d "payment_method_data[type]"=card
-d "payment_method_data[card][number]"=4000002500003155
-d "payment_method_data[card][exp_month]"=12
-d "payment_method_data[card][exp_year]"=29
-d "payment_method_data[card][cvc]"=123
-d "payment_method_data[ip]"="62.132.141.1"
--data-urlencode "payment_method_data[user_agent]"="Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)"
--data-urlencode "payment_method_data[referrer]"="https://example.com/payment-page"
They guided us to pass in the IP and user agent when creating a payment intent:mandate_data[customer_acceptance][online][ip_adress]/[user_agent]
Could you share the doc link where you saw this information from?mandate_data[customer_acceptance][online][ip_adress]/[user_agent]is used for mandate of a payment method, not for Radar.
I have now checked the updated Stripe documentation at: https://docs.stripe.com/radar/integration#recommendations
Do we need to do it like this so that Radar will have the IP and user agentinformation?"payment_method_data[ip]"=""
--data-urlencode "payment_method_data[user_agent]"=""
--data-urlencode "payment_method_data[referrer]""
Yes. This should be the correct fields to set user agent and IP addresss. Alternatively, I'd recommend using Radar Session: https://docs.stripe.com/radar/radar-session
Could you share the doc link where you saw this information from? mandate_data[customer_acceptance][online][ip_adress]/[user_agent] is used for mandate of a payment method, not for Radar.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
This is just an API specs of the mandate_data field. It doesn't mention that this is used for Radar.
To set the IP and user agent for Radar, this guide should be used: https://docs.stripe.com/radar/integration#recommendations
May I ask when the document was last updated? Because we are currently using plaintext card numbers directly, and we could not find any mention of transmitting IP and user agent in the document previously.
The doc has been there since 2 years ago
Because we consulted online customer service before, they mentioned uploading to https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-mandate_data-customer_acceptance-online-ip_address lol
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
https://docs.stripe.com/radar/integration#recommendations should be the correct way to send the IP and user agent information to Stripe if raw card data integration is used
thanks a lot ๐