#mr_pablo - refunds

1 messages ยท Page 1 of 1 (latest)

strong axle
#

What integration flow are you using? Subscriptions/Invoicing?

tribal tundra
#

We would be use the webhook for refunds

#

So refund made in Stripe, we get the data and I want to know what Price object was used for the Product they purchased

#

In both one off, and subscription, payments

strong axle
#

Ok. How are you using Price objects for one-off payments? Still Invoicing?

tribal tundra
#

I dont get what you mean sorry

#

We create a Product, with a default Price, maybe add more Prices. Can be one off or subscription. A user "buys" a Product using one of the Prices

strong axle
#

Yeah I get that. What I mean is what API endpoint do you use to accept one-off payments with those Price objects?

tribal tundra
#

We just use the checkout

strong axle
#

Got it

steady oak
#

Hello ๐Ÿ‘‹ Taking over as codename_duchess needs to step away soon.

tribal tundra
#

The example response show any product/price data

steady oak
tribal tundra
#

ah yes

steady oak
#
const sessions = await stripe.checkout.sessions.list({
  limit: 3,
},{ expand: ['line_items'] });
tribal tundra
#

so get the refund data, get the PI ID, get the checkout session using the PI ID, get the line items?

steady oak
#

Yup