#anthonyl5602
1 messages · Page 1 of 1 (latest)
Sorry, don't understand the question
I have subscriptions on Stripe, and I have payments. I would like to be able to link each payment to the corresponding subscription. via stripe API
Well assuming you're using the Subscriptions API then the payments should already be 'linked' via a shared Invoice
Do you have an example of objects you're trying to 'link'?
Okay, you answered my question. THANKS
But starting from an invoice we can find the payment as well as the subscription, but I have a problem with my stripe account, it is that each first invoice of a subscription is 0€ because stripe considers it as an "trial" when the customer pays an amount other than 0€, how is this possible?
But starting from an invoice we can find the payment as well as the subscription
You'd check thepayment_intentandsubscriptionfields on the Invoice object
it is that each first invoice of a subscription is 0€ because stripe considers it as an "trial" when the customer pays an amount other than 0€, how is this possible?
Do you have an example?
do you have access to all stripe accounts? If I give you IDs will you have access to them?
Yep!
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
invoice 0€, payment 37,50€ ...
Deleting the screenshot as it includes PII
Ok, so:
- Invoice: https://dashboard.stripe.com/invoices/in_1NsQN8JnHcficTc3L9NRSddY
- Payment: https://dashboard.stripe.com/payments/pi_3NsQN1JnHcficTc31APZ4syI
They're not related at all. The payment was created separately as a one-time payment here: https://dashboard.stripe.com/logs/req_oxgdIKZMUg0eNo
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
ok thank you for this information which I didn't have!
Could you tell me if this payment is a one-time payment also which is not attached to an invoice please https://dashboard.stripe.com/payments/pi_3MholUJnHcficTc31FpmyCt6
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Not attached to an Invoice: https://dashboard.stripe.com/logs/req_MZaQsTw80D7EGe
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Normally the method to follow to link a payment to an invoice is to generate the invoice that the customer pays, right?
By the way you can find these requests in the Dashboard on the page for the payment (scroll to the very bottom)
Yes, when you finalize an invoice we automatically create a Payment Intent
Okay, the subscription creation method is not the right one then. as well as for the 2nd link that I sent you. Thank you very much for your answer ! Have a good day
What specifically are you trying to do?
in fact I'm trying to understand why I can't connect the payments to the invoice and the subscriptions, but it's a single cause of the payments, I have my answer
Ok, perfect!