Add flags to prorate and bill immediately when changing plans (#271)

This commit is contained in:
Uku Taht 2020-08-05 14:31:25 +03:00 committed by GitHub
parent f05dbe1a21
commit 0c947d2dc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
})