--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-us...@googlegroups.com.
To post to this group, send email to killbill...@googlegroups.com.
Visit this group at http://groups.google.com/group/killbilling-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/95d29291-74b1-4d46-bdc7-11a82b4fa15c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Let's imagine I go with option 1 and I tag accounts with AUTO_PAY_OFF to prevent two invoices from being sent out (we don't want that of course).Then instead of having to trigger payments manually, would it work if I had some scheduler on my side calling the "Pay all invoices" API endpoint at regular intervals?
And concerning the description of the external charge and according to commit 28545f50c2900d6e216e17567d4618577c36f058, is it correct that the charge will now be labelled correctly with whatever we specify (e.g. "VAT 8% blablabla")
--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-us...@googlegroups.com.
To post to this group, send email to killbill...@googlegroups.com.
Visit this group at http://groups.google.com/group/killbilling-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/5e5ab843-d531-4997-b48e-8c6a006b5c9e%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/388e7938-77bc-4413-921e-6a6a02cb992c%40googlegroups.com.
You rock! That was it!I've completely overlooked the OSGIConfig class, eeek!
I've got another dependency conflict as Maven will always pull the latest release of the killbill-api (0.9.5) even though I've specified my snapshot version (0.9.6-SNAPSHOT) pretty much everywhere I could think of. This is probably due to Maven's transitive dependency management. In the dependency tree, I see the following lines:
[INFO] +- org.kill-bill.billing.plugin:killbill-plugin-api-invoice:jar:0.7.4-SNAPSHOT:compile[INFO] | \- (org.kill-bill.billing:killbill-api:jar:0.9.5:compile - version managed from 0.9.6-SNAPSHOT; omitted for conflict with 0.9.6-20140521.210723-1)[INFO] +- org.kill-bill.billing.plugin:killbill-plugin-api-payment:jar:0.7.3:compile[INFO] | \- (org.kill-bill.billing:killbill-api:jar:0.9.5:compile - version managed from 0.9.6-SNAPSHOT; omitted for conflict with 0.9.6-20140521.210723-1)When I'm done fixing this, if you guys are interested in a pull request, we'd be happy to contribute, of course.
Thanks much for your help!Val
On Thursday, May 22, 2014 10:03:28 AM UTC+2, stephane wrote:You are probably missing the export package defined in https://github.com/killbill/killbill/blob/master/util/src/main/java/org/killbill/billing/util/config/OSGIConfig.java.
There is a property 'org.killbill.osgi.system.bundle.export.packages' which defines the packages that should be exported by Kill Bill.In the same way we have in that list 'org.killbill.billing.payment.plugin.api' you should also add your new package.Let us know of that solves the issue.S.
--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-us...@googlegroups.com.
To post to this group, send email to killbill...@googlegroups.com.
Visit this group at http://groups.google.com/group/killbilling-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/a08312b2-2315-4275-b57d-588d172303f5%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/e1c89b25-a847-498f-877e-02b739fe3659%40googlegroups.com.
Thanks for the confirmation.The only thing I see that could potentially mess this up is if there are several threads creating several invoices for a given customer at the same time, but I don't think we'll ever get in that case.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/01ef5718-167c-48c3-9d72-4cadb972d97c%40googlegroups.com.
We're currently trying to fix this from within our plugin by listening to INVOICE_ADJUSTMENT events.
I'm trying to find a way to only react to the first INVOICE_ADJUSTMENT event and ignore the next one.
The most ideal case for us would be to be able to change the amount of an existing TAX item, but that doesn't seem possible from what I saw.
I understand the reason why an idempotent call would be ideal, but I don't quite get how to achieve it in our case.Here is what I ended up doing when processing INVOICE_ADJUSTMENT events:1. I retrieve the TAX item. if none found, I stop right there since there's nothing to adjust2. At this point, a TAX item exists, I then check if there's an ITEM_ADJ linked to the TAX item retrieved in step 1. if I find one, it means the TAX item has already been adjusted, so I stop there
3. Finally, if we land here, we have a non-adjusted TAX item, which we can now adjust. We create the item adjustment by linking it to the TAX item.4. This will induce a new INVOICE_ADJUSTMENT event, which we're going to ignore given steps 1 and 2Does this look like a sound approach to you?
The most ideal case for us would be to be able to change the amount of an existing TAX item, but that doesn't seem possible from what I saw.Yes, currently, the only way to change an invoice is to amend it (invoice or invoice item adjustment). This is because we don't support the concept of draft invoices yet (it's on our radar though).That being said, I'm not sure if it would help your usecase, when the client changes his mind after the payment is already triggered (in PENDING state).
[...]
It does although there is a limitation where you can only have a single tax item adjustment. This would break if your client changes its plan again.
[...]
Also, how are you dealing with the PENDING payment? On average, this would trigger 3 payments in the gateway (original invoice and two adjustments) unless you play with AUTO_PAY_OFF tags.
Yes, indeed, open invoices would be a great addition. Create an invoice, add stuff to it (items, charges, credits, taxes, etc), and when done, seal it.That would make the point about adding support for batch subscriptions that I raised the other day (https://github.com/killbill/killbill/issues/199) irrelevant, since we could just create 1+ subscriptions as we do now and when done, we could seal the open invoice.
Actually when the plan changes, the first invoice is rebalanced, the tax is adjusted and a second invoice gets created.
If the user changes the plan again, I believe the first invoice is untouched, but now the second would be balanced, tax adjusted, etc and a third invoice would be created, right?So there will always ever be a single tax item in any invoice.
We're "batching" everything we can into a single invoice by using AUTO_INVOICING_OFF as described the other day in https://groups.google.com/d/msg/killbilling-users/w0ZAxa9Z0BA/h3P_nC0QzjIJ
Despite of that, there will still be one PENDING payment per invoice created, which is not ideal in terms of user-friendlyness, but that should do for now.
Yes, indeed, open invoices would be a great addition. Create an invoice, add stuff to it (items, charges, credits, taxes, etc), and when done, seal it.That would make the point about adding support for batch subscriptions that I raised the other day (https://github.com/killbill/killbill/issues/199) irrelevant, since we could just create 1+ subscriptions as we do now and when done, we could seal the open invoice.I think we want both features. In the "shopping cart" checkout flow scenario, it's nice to be able to create the subscriptions atomically and trigger the invoice / payment in one call.
[...]
We're "batching" everything we can into a single invoice by using AUTO_INVOICING_OFF as described the other day in https://groups.google.com/d/msg/killbilling-users/w0ZAxa9Z0BA/h3P_nC0QzjIJ
Despite of that, there will still be one PENDING payment per invoice created, which is not ideal in terms of user-friendlyness, but that should do for now.
Indeed. A potential workaround would be to delay the payment using the AUTO_PAY_OFF tag (similar behavior than the AUTO_INVOICING_OFF tag, but for the payment subsystem).