#vasant-dhatrak_api

1 messages ¡ Page 1 of 1 (latest)

opal trenchBOT
#

👋 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.

round crescentBOT
#

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.

young jetty
#

Listen to charge.succeeded event, and you can get the billing_details from the event's object.

exotic aurora
young jetty
#

I don't understand what you mean, can you rephrase?

exotic aurora
#

i want to place order in my system and then want to create payment intent

young jetty
#

So you want to collect the billing_details in your system and send it to Stripe?

exotic aurora
#

POST/v1/tokens

before calling this i want to read data and save details in my web based system to create invoice

young jetty
#

Did you make this request?

exotic aurora
#

no it is automated

young jetty
#

This happens before you create a PaymentIntent.

exotic aurora
#

i want to read this data

young jetty
#

You can get the same billingDetails from the API that I shared earlier, I'd suggest you to try it out.

exotic aurora
#

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

young jetty
#

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.

olive onyx
#

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

opal trenchBOT
#

@olive onyx looks like you're in the wrong place, this thread is for someone else's question.

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.

exotic aurora
#

hello