#junaid_abbasi999
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
- junaid_abbasi999, 1 day ago, 3 messages
hi, can you expand on that? what receipt, and how are you using Connect(Direct or Destination charges?)
I am talkin about the receipt that is sent to account when I use paymentIntent.charge. and I am doing destination charges
What do you mean by "use paymentIntent.charge." exactly?
You can get the receipt URL: https://stripe.com/docs/api/charges/object#charge_object-receipt_url
I am talking about when i create a charge using an api and if it's successfull.... the customer gets a receipt.
Yes I am talking about this one, I just want the receipt to be mentioning the connect account details...
Oh, then you can use the on_behalf_of parameter: https://stripe.com/docs/connect/destination-charges#settlement-merchant
connect account = destination attribute i mention while creating the chargs
I don't have nay yet I am just in test phase, and right now i don't have access to stripe dashboard
How are you creating charges?
const paymentIntent = await stripe.paymentIntents.create({
amount: amount,
currency: "cad",
confirm: true,
customer: customerId,
payment_method: paymentMethodId,
off_session: true,
receipt_email: receipt_email,
transfer_data: {
destination: destination,
},
application_fee_amount: applicationFee,
receipt_email: receipt_email,
description: description,
metadata: metadata,
});
return paymentIntent;
paymentIntent variable will have an ID, that's what I was asking for.
You need to add the on_behalf_of parameter in your request, as in the article that I shared.
Please read it carefully and let me know if anything is not working as expected.
Yes I got that.... thanks.... and other thing I can only mention the on_behalf_of parameter while I am creating the paymentIntent as mentioned in the api..... but my usecase is I don't know the on_behalf_of when i am creating the paymentIntent..... I know about it when I am capturing it.... Can I update the on_behalf_of before capturing, because I don't see on_behalf_off optional parameter in this api https://stripe.com/docs/api/payment_intents/update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I don't think it's possible. What you can do instead, is cancel the PaymentIntent that holds the funds, and create and capture a new one that has on_behalf_of
No i can't do that because I am capturing the hold if the actual payment fails for some reason..... and if payment is successfull then I am releasing the hold
I don't think I understand. Are you creating 2 PaymentIntents already?