Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On updating subscription_item quantity, invoice immediately value is not working #8

Closed
sandy-tpp opened this issue Apr 9, 2024 · 3 comments

Comments

@sandy-tpp
Copy link

sandy-tpp commented Apr 9, 2024

I tried the below code to update the quantity. The quantity is updated in the item, but the invoice is not processed immediately.

          data: {
            type: "subscription-items",
            id: id.to_s,
            attributes: {
              quantity: quantity,
              invoice_immediately: true,
            }
          }
}
response = LemonSqueezy::Client.patch_request("subscription-items/#{id}", body: body.to_json)
LemonSqueezy::SubscriptionItem.new(response.body["data"]) if response.success?

@deanpcmad
Copy link
Owner

Again, this looks like an issue with the Lemon Squeezy API? Have you tried contacting them about these 2 issues?

@sandy-tpp
Copy link
Author

Have raised a ticket, will keep the thread updated.

@deanpcmad
Copy link
Owner

Closing this as there's been no update and I don't believe it's an issue with this library

@deanpcmad deanpcmad closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants