mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 15:53:22 +08:00
fix paddle refund (#1213)
This commit is contained in:
parent
d72226aa19
commit
69d5de8d41
1 changed files with 2 additions and 2 deletions
|
@ -601,9 +601,9 @@ def setup_paddle_callback(app: Flask):
|
|||
)
|
||||
return "No such subscription"
|
||||
|
||||
plan_id = request.form["subscription_plan_id"]
|
||||
plan_id = int(request.form["subscription_plan_id"])
|
||||
if request.form["refund_type"] == "full":
|
||||
if plan_id == PADDLE_MONTHLY_PRODUCT_ID:
|
||||
if plan_id in PADDLE_MONTHLY_PRODUCT_IDS:
|
||||
LOG.d("subtract 1 month from next_bill_date %s", sub.next_bill_date)
|
||||
sub.next_bill_date = sub.next_bill_date - relativedelta(months=1)
|
||||
LOG.d("next_bill_date is %s", sub.next_bill_date)
|
||||
|
|
Loading…
Reference in a new issue