#tymm

1 messages · Page 1 of 1 (latest)

versed tendonBOT
modest plover
#

Hi! Let me help you with this.

#

What are you trying to do exactly?

teal gorge
#

im updating a subscription, adding new items into it

#
SubscriptionItemCreateParams params = SubscriptionItemCreateParams.builder()
                    .setProrationBehavior(SubscriptionItemCreateParams.ProrationBehavior.NONE)
                    .setPaymentBehavior(SubscriptionItemCreateParams.PaymentBehavior.DEFAULT_INCOMPLETE)
                    .setSubscription(subscription.getId())
                    .setPrice(createItem.getKey())
                    .setQuantity(Long.valueOf(createItem.getValue().toString()))
                    .build();
            SubscriptionItem.create(params);

this is the snippet

#

i dont think the price price_1N5gcnLouXJU4FDJTOBVAcS7 that im adding into the subscription sub_1NdqFOLouXJU4FDJsDHB0QSZ already exist prior to this request req_KGZuTXLDZX0Ly7

#

can u please help me check.

modest plover
teal gorge
#

why is the subscriptionitemcreateparams way not recommended

modest plover
modest plover
#

But in any case, the Subscription already has the Price you're trying to add.

teal gorge
#

please let me know which request adds price_1N5gcnLouXJU4FDJTOBVAcS7 to the subscriprion

modest plover