#ashoth_code
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/1234437684995559445
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- ashoth_code, 1 hour ago, 12 messages
Hi tarzan
๐ happy to help
would you mind sharing the request ID of the capture request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
i am using this code but throw the error in during payment detection
pi_3PAmqCKThIwh3yrW1w4HU5BF
taking a look
ok give me the reason above using the code is the right format or not if not give me the right way
the capture happened here https://dashboard.stripe.com/test/logs/req_tYcrEsfBGou4Vf
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
you're saying it's failing with insufficient funds but it's not
ya that issue occur in our live account this is a developer account
so can you please give a right solution in above code.
can you give me the request ID for the capture that failed?
I can't speculate without understanding what happened for that particular request
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
yes i need some clarification in above the code
Is there any guide you are following ?
Are you following this one?
https://docs.stripe.com/payments/place-a-hold-on-a-payment-method
Is there a specific use case you're trying to account for?
Yes I am following this document
but charge detection is using in ChargeService method so is this correct or not
but charge detection is using in ChargeService method so is this correct or not
Sorry, I'm not understanding you can you share more details ?
According to the payment intent you've shared, you've juste created the payment intent
You need to collect a payment method
okay wait i will share
this is my
pre authorization code:
var options = new PaymentIntentCreateOptions
{
Amount = Convert.ToInt64(Convert.ToDecimal(ProductCartModel.OrderDetailCart.Sum(od => Convert.ToDecimal(od.price) * Convert.ToDecimal(od.quantity))) * 100),
Currency = "usd",
PaymentMethodTypes = new List<string> { "card" },
CaptureMethod = "manual",
PaymentMethod = credit_card_auth_id,
Customer = stripe_customer_token,
};
var service = new PaymentIntentService();
var paymentIntent = service.Create(options);
this is my
payment debit charge code:
var chargeOptions = new ChargeCreateOptions
{
Amount = Convert.ToInt64(Convert.ToDecimal(Ordrdt[0].total_amt_payment) * 100),
Currency = Ordrdt[0].currency_code,
Description = "PackBack Payment Confirmation for Order Id-" + Ordrdt[0].Order_id,
Source = Ordrdt[0].credit_card_auth_id,
ReceiptEmail = Ordrdt[0].email,
Customer = Ordrdt[0].customer,
Metadata = new Dictionary<string, string>
{
{ "OrderId", convertedOrderid },
}
};
var chargeService = new ChargeService();
Charge charge = await chargeService.CreateAsync(chargeOptions);
this format is right or wrong
because we are facing one payment failed issue
so can you give a correct solution for me
Why you are using Charge Service
and not PaymentIntent Service ?
You are not following the guide, please select .NET option and create a PaymentIntent first:
https://docs.stripe.com/payments/place-a-hold-on-a-payment-method?lang=dotnet#authorize-only
because previously we are used in this charge service for payment detection so we are use that, is there any problem..
The recommended way is to use PaymentIntent and not direct Charge APis
okay what will be the impact in charge api
The charge API is deprecated.
And there is no capture_method on the Charge APIs. It's a feature on the PaymentIntent API:
https://docs.stripe.com/api/payment_intents/create#create_payment_intent-capture_method
I have used this Charge API for the last 2 months. But How some of them are get succeeded even it is deprecated ?
Deprecated doesn't mean removed. You can still use it and plan to migrate as soon as possible.
Okay, we removed the Charge API and switched to the Payment Intent API. However, we've already made some payments using the Charge API. How can we make this transition without affecting previous transactions? That's why I'm asking.
Any old payments won't be impacted assuming they've been successfully processed
How is this possible? Our application uses pre-authorization, where transaction amounts are held until orders are processed and amounts are debited. As a result, some transactions are currently pending. How should I handle this situation?
You'd process them as normal by calling the capture endpoint: https://docs.stripe.com/api/charges/capture
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.