#krishna-awate_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1252849644103405638
đ Have more to share? Add details, code, screenshots, videos, etc. below.
You can start creating rules here https://dashboard.stripe.com/test/settings/radar/rules?startDate=2023-12-19&endDate=2024-06-17
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
It's up to you! The rules are what you define
How can I test these rules
You can create PaymentIntent as normal but matching the condition of your defined rule, and see if it blocked the PI as expected
Each rule on Dashboard also has the link to affected PI
Do I have to test from Checkout or dashboard?
suppose I want to block payement if amount is less that $10. How can I do that?
Yeah have you tried setup the block rule?
I have done this one
Block if :ip_state: = 'IND'
just to test
But it's not working. I just want to test block payment if customer from India.
Block if :email_domain: = 'gmail.com'
this is also not working
I am in test mode
does the rule in Dashboard say 0 matching payment?
suppose this I want
I have added in rule
But when I am using this email address. Payment is being successed.
Okie can you share the Payment Intent ID?
pi_3PTHaYLLXoITl2yi0fcAWVk1
Where did you input the email?
customer creation
const customer = await stripe.customers.create({
name: name,
email: email,
phone: "7020701627",
});
const paymentIntent = await stripe.paymentIntents.create({
amount: intAmount,
currency: "USD",
automatic_payment_methods: {
enabled: true,
},
});
I have done this only
No but I don't see the email in Customer creation request
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
{
amount: "555500",
automatic_payment_methods: {
enabled: "true",
},
currency: "USD",
}
You sent this parameters. Do you recognize them?
Yes but it looks like you haven't sepcified the customer to the PaymentIntent
This code, can you find the request Id it generated in https://dashboard.stripe.com/test/logs ?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
const paymentIntent = await stripe.paymentIntents.create({
amount: intAmount,
currency: "USD",
automatic_payment_methods: {
enabled: true,
},
customer: customer?.id,
});
Now it is wokring.
I have passed customer id to payment intent
Thank you so much for your help.
Have a nice day sir