From 0c947d2dc6581d3bca6fcb85115c02c556ab7d10 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Wed, 5 Aug 2020 14:31:25 +0300 Subject: [PATCH] Add flags to prorate and bill immediately when changing plans (#271) --- lib/plausible/billing/paddle_api.ex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/plausible/billing/paddle_api.ex b/lib/plausible/billing/paddle_api.ex index ab3e083f9..f6dc47a6f 100644 --- a/lib/plausible/billing/paddle_api.ex +++ b/lib/plausible/billing/paddle_api.ex @@ -39,6 +39,9 @@ defmodule Plausible.Billing.PaddleApi do vendor_id: config[:vendor_id], vendor_auth_code: config[:vendor_auth_code], subscription_id: paddle_subscription_id, + prorate: true, + keep_modifiers: true, + bill_immediately: true, quantity: 1 })