#rao-burhan_webhooks

1 messages · Page 1 of 1 (latest)

floral galleonBOT
#

👋 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/1351104031044407296

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

stoic rune
#

👋
I'm not sure I understand your question honestly. Could you please share more details ?

#

When using the direct payment method, my webhook isn't being triggered
Can you share a Webhook Endpoint Id and a Test Direct Charge Payment Id ?

sweet furnace
#

the below is my payload for creating the session
publishable_key = publishablekey;
session = await this.stripe.checkout.sessions.create(
{
payment_method_types: ['card'],
customer_email: user.email,
line_items: [
{
price_data: {
currency: customerCurrancy.code,
product_data: {
name: 'visa',
},
unit_amount_decimal: ${convertedAmount},
},
quantity: 1,
},
],
metadata: {
userId: context.UserId.toString(),
secondryOrderId,
visaConfigurationId,
processingPriorityId,
nationalityCountryId,
orderId,
amount,
tenantId,
residentialCountryId,
destinationCountryId,
},
payment_intent_data: {
metadata: {
userId: context.UserId.toString(),
visaConfigurationId,
processingPriorityId,
nationalityCountryId,
orderId,
amount,
tenantId,
},
application_fee_amount: platformFee,
},
client_reference_id: ${context.UserId.toString()},
mode: 'payment',
allow_promotion_codes: !!apiKey?.credentials?.stripe_promo_code,
success_url: successUrl,
cancel_url: cancelUrl,
},
{ stripeAccount: accountId },
);
Webhook endpoint : https://backend.dev.propellus.ai/stripe/payment-success

stoic rune
#

Please share with me Stripe Ids: WebhookEndpoitn Id and Checkout Sesison Id

sweet furnace
#

I’ve implemented the connected account feature in Stripe, but I’m running into an issue. No checkout session is being created—only an application fee event (evt_1R3YHYJjxrfgscFsclJPc3Iw) is generated. I’m using the following method to redirect users to the Stripe checkout:

if (success && isStripeConnected && stripe) {
window.location.href = data.sessionUrl;
}
Initially, I was using the session method, but I learned it’s outdated, so I switched to the URL method. When I exclude the stripeAccount: accountId key from the payload, everything works fine, and the payment.succeeded event is triggered. However, as soon as I include stripeAccount: accountId, the payment.succeeded event stops firing, and only the application fee event appears. What could be causing this?

stoic rune
#

You should debug your Checkout Session creation and see why it's not creating

#

if there is a failure you should have a requestId

sweet furnace
#

can you please also provide me the docs on how to implement the direct transfer in stripe ?