#martin-dev - Orders API

1 messages · Page 1 of 1 (latest)

idle crypt
#

Hello! Let me confirm something, hang on...

#

As far as I can tell there's currently no way to do what you're describing. You should be able to capture the partial amount just fine, but an Order that's already been submitted cannot be changed, so you won't be able to alter the line items.

faint ferry
#

Hmm, yeah, that's what I thought.

#

One thing I tried is this:

  • Submit the order
  • Store the payment intent of the order
  • Reopen the order and make changes
  • Capture the original payment intent

But the reason this doesn't work is that it seems that reopening the order also cancels the payment intent.

And it looks like I cannot update the status of a payment intent.

idle crypt
#

Correct.

#

Can you tell me more about your use case? What's the scenario here?

faint ferry
#

We have a flow where...

  1. A customer pays for an order
  2. We put that charge on hold
  3. We may want to alter the order by replacing one item with a lower priced item
  4. In such a case, we will only partially capture the charge (give them a refund)

But, instead of just giving a refund, we want to actually update the order's line items, recalculate the total (including discounts), and then charge them for the lower amount.

#

And, we CAN update the order. But it seems like doing so cancels the payment intent which seems like it'd require us to get the customer to pay again

idle crypt
#

Yep, that's correct. Unfortunately Orders doesn't support what you need today, but I recommend you email orders-beta@stripe.com to let them know about your use case/feature request, and if they do end up adding functionality to support your scenario they'll be aware of your interest and may ask if you want to test what they're working on.