#vasant-dhatrak_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/1267374467714384015
đ 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.
- vasant-dhatrak_code, 2 days ago, 52 messages
- vasant-dhatrak_code, 2 days ago, 47 messages
- vasant-dhatrak_code, 3 days ago, 7 messages
- vasant-dhatrak_code, 3 days ago, 33 messages
Hi there, so you want to retrieve the billing_details of the charge object? https://docs.stripe.com/api/charges/object#charge_object-billing_details
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Listen to charge.succeeded event, and you can get the billing_details from the event's object.
but i want to first place order in my system and send my billing no in payment intents description to hit webhook
I don't understand what you mean, can you rephrase?
i want to place order in my system and then want to create payment intent
So you want to collect the billing_details in your system and send it to Stripe?
POST/v1/tokens
before calling this i want to read data and save details in my web based system to create invoice
Did you make this request?
no it is automated
https://docs.stripe.com/js/elements_object/express_checkout_element_confirm_event#express_checkout_element_on_confirm-handler-billingDetails Ok, then you can listen to the confirm event and get the billingDetails from your frontend code.
This happens before you create a PaymentIntent.
i want to read this data
You can get the same billingDetails from the API that I shared earlier, I'd suggest you to try it out.
expressCheckoutElement.on('confirm', async (event) => {
const {error: submitError} = await elements.submit();
if (submitError) {
handleError(submitError);
return;
}
let userData = {
'amount':100,
'currency':'eur',
}
// Create the PaymentIntent and obtain clientSecret
const res = await fetch('https://www.gurado.de/Testing_google_pay/public/create-intent.php', {
method: 'POST',
headers: {
"Content-Type": "application/json; charset=utf-8"
},
body: JSON.stringify(userData)
});
const {error} = await stripe.confirmPayment({
// elements instance used to create the Express Checkout Element
elements,
// clientSecret from the created PaymentIntent
clientSecret,
confirmParams: {
return_url: 'https://example.com/order/123/complete',
},
});
if (error) {
// This point is only reached if there's an immediate error when
// confirming the payment. Show the error to your customer (for example, payment details incomplete)
handleError(error);
} else {
// The payment UI automatically closes with a success animation.
// Your customer is redirected to your return_url.
}
});
currently my code is like this
so where i try can you help me
I'm afraid that I can't write code on behalf of users. You can send the doc to your developer and they should know where to write the code.
Hi ,
I m trying hard to generate bills of guest payment i cant get that bill how can i do that please tell me the procedure i only see invoice in that no information of them is there . I need bill with full info
Thank you
@olive onyx looks like you're in the wrong place, this thread is for someone else's question.
- If you have your own thread please chat there.
- If you have a question or a followup to a closed thread use one of the buttons in https://discord.com/channels/841573134531821608/842637025524842496 to get help (we don't reopen closed threads).
Note that posting inappropriate messages in other people's threads is against the rules. No worries if this was just an honest mistake, but anyone who violates the rules multiple times will be removed from this server.
hello