#tymm

1 messages · Page 1 of 1 (latest)

gentle boneBOT
open hedge
cyan harness
#

no i want to create an invoice with tax incurred

#

for subscription i can do something like this :

SubscriptionCreateParams.Builder paramsBuilder = SubscriptionCreateParams
                .builder()
                .setCustomer(customer.getId())
                .setProrationBehavior(proration)
                .setBillingCycleAnchor(anchor)
                .setPaymentBehavior(SubscriptionCreateParams.PaymentBehavior.DEFAULT_INCOMPLETE)
                .setDefaultTaxRates(taxList)
                .setPaymentSettings(
                        SubscriptionCreateParams.PaymentSettings.builder()
                                .setSaveDefaultPaymentMethod(SubscriptionCreateParams.PaymentSettings.SaveDefaultPaymentMethod.ON_SUBSCRIPTION)
                                .build()
                )
                .addAllExpand(Arrays.asList("latest_invoice.payment_intent"));
#

to add tax onto the invoice. however i cannot find a way to add that into invoice with non subscription items

open hedge
cyan harness
#

oh, didnt expect the name to be different. thanks