#flavio-paymentintent-discount

1 messages · Page 1 of 1 (latest)

worthy thornBOT
#

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.

upper garden
#

flavio-paymentintent-discount

#

@potent hemlock PaymentIntents have no concepts of line items or discounts at all so that's expected. What matters is how you integrated and what "product" you're using. For example if you are using Invoicing or Checkout then the "discount details" would live on those respective objects. Does that make sense?

potent hemlock
#

I see, is there a way I can get this information from the any data inside Get payment intent ?
Context: I run a automation that triggers based on data

upper garden
#

no that's impossible, there's nothing on the PaymentIntent that stores this information

potent hemlock
#

How can I get this info them? only in get Invoice ? I'm trying get checkout session but no luck

upper garden
#

Step 1: clearly explain how you integrate since that completely changes the answer. Where does that PaymentIntent come from?

potent hemlock
#

Trigger is from zapier, "New Payment in Stripe".
Then we have a workflow that grab the discount code used to update a field in a CRM

upper garden
#

ignore that

#

I'm asking how you created that PaymentIntent

#

What is your real code doing to get a payment from the customer? We have dozens of ways to integrate our products and APIs so I need to know which one you're using

worthy thornBOT
potent hemlock
#

They are generated from payment links that we have embed after a form inside a website

formal bison
#

HI 👋

Okay so Payment Links redirect your users to Checkout pages where they enter their payment method information as well as any discount codes

#

How are you receiving the Payment Intents?

upper garden
#

I don't think it makes sense to look at the line items discount

#

They likely have a ton of no-code solution since they use PaymentLinks. They are using Zapier to react to payment_intent.succeeded Events I assume and that won't work. Zapier basically won't work for any of this since they need to retrieve the completed Checkout Session and expand the relevant properties

#

(have to leave but hopefully I summarized things well)

formal bison
#

I think I've got a clear picture of what's going on, thanks!

potent hemlock
formal bison
#

What do you mean "did the call"? can you clarify what you are doing?

potent hemlock
#

Using the payment intent I found the checkout seessiojn ID and did the API Call to get the checkout info

formal bison