<p>The closest thing I found to what I need is <a href="https://craftcms.stackexchange.com/questions/30853/is-it-possible-to-take-a-partial-payment-of-an-order-in-craft-commerce">here</a>, the problem is, even though it's only 8 months old, it appears outdated. I see there is an "outstanding balance" in the PayController, but I have no idea how to allow a customer to pay a specific amount at the gateway.</p>

<p>I created an adjuster that discounts a specific amount, so I am able to bill the correct amount at the time of payment, but the amount that I discounted needs to be reapplied to the order in order to be billed at a later date, which I haven't found a way to do this as every possibility I've seen/tried is either a read-only or it's another adjuster which I can't get to fire at the correct time. I tried to put that amount back on with an adjuster with the EVENT_BEFORE_ORDER_COMPLETE but then craft obviously sees the order total has changed and kicks me back to the payment form with my new adjustments, which negates my old one.</p>

<p><strong>tldr</strong></p>

<p>I just need to know how to set the amount a customer must pay at the gateway. Is there a specific way an adjuster needs to be set up in order to do this?</p>

CC BY-SA 4.0
2020-09-21T10:02:21.930Z
Hey, what was your approach in the end?
Karens
CC BY-SA 4.0
2020-10-25T02:03:28.617Z
Hey, sorry I didn't respond for so long, I never really found a very good way to do this. I did a lengthy workaround that I think included a discount and putting the difference between the discount and full value back onto the price. It was pretty messy though and there has to be a better way.
Darryl Hardin
<plugin-development><payment><plugin-craftcommerce3>
How do I allow partial payments?
# How do I allow partial payments?

(Asked by: username_0 on 2020-03-01)

The closest thing I found to what I need is [here](https://craftcms.stackexchange.com/questions/30853/is-it-possible-to-take-a-partial-payment-of-an-order-in-craft-commerce), the problem is, even though it's only 8 months old, it appears outdated. I see there is an "outstanding balance" in the PayController, but I have no idea how to allow a customer to pay a specific amount at the gateway.

I created an adjuster that discounts a specific amount, so I am able to bill the correct amount at the time of payment, but the amount that I discounted needs to be reapplied to the order in order to be billed at a later date, which I haven't found a way to do this as every possibility I've seen/tried is either a read-only or it's another adjuster which I can't get to fire at the correct time. I tried to put that amount back on with an adjuster with the EVENT\_BEFORE\_ORDER\_COMPLETE but then craft obviously sees the order total has changed and kicks me back to the payment form with my new adjustments, which negates my old one.

**tldr**

I just need to know how to set the amount a customer must pay at the gateway. Is there a specific way an adjuster needs to be set up in order to do this?

**Tags:** plugin-development, payment, plugin-craftcommerce3
> **Comments:**
> **username_1**: Hey, what was your approach in the end?  
> **username_0**: Hey, sorry I didn't respond for so long, I never really found a very good way to do this. I did a lengthy workaround that I think included a discount and putting the difference between the discount and full value back onto the price. It was pretty messy though and there has to be a better way.  

---

## 0 answers

