laravel / cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.
https://laravel.com/docs/cashier-paddle
MIT License
246 stars 57 forks source link

1 Month subscription save the ends_at date - 3 months subscription ends_at missing #80

Closed Benoit1980 closed 4 years ago

Benoit1980 commented 4 years ago

save

        "php": "^7.3",
        "ext-dom": "*",
        "laravel/cashier-paddle": "^1.2",
        "laravel/framework": "^8.6.0",

I have created in Paddle 2 subscriptions. 1 set with a 1-month billing interval. 1 set with a 3 months billing interval.

When the transactions happen, the webhook call back from Paddle is sent correctly to the Paddle Laravel callback URL on my website. The "next_bill_date" in the json response shows with the first subscription a 1-month billing interval while with the other subscription a 3 months billing interval, all good.

The problem happens in the database table called "subscriptions".

On a 1 month subscription, the "ends_at" column is filled in with the correct 1-month billing interval. On a 3 months subscription, the "ends_at" column stays as null.

I have repeated the process again and again with no luck.

Thank you.

driesvints commented 4 years ago

Please resubmit this with a filled out issue template.

Benoit1980 commented 4 years ago

I am not understanding

driesvints commented 4 years ago

https://github.com/laravel/cashier-paddle/issues/new?template=1_Bug_report.md

Screenshot 2020-10-01 at 15 10 24

Benoit1980 commented 4 years ago
   "php": "^7.3",
    "ext-dom": "*",
    "laravel/cashier-paddle": "^1.2",
    "laravel/framework": "^8.6.0",
    Database client version: libmysql - 5.6.43

description

When a subscription is created in Paddle with a billing interval of 1 month, the ends_at column is filled with the right date. When a subscription is created in Paddle with a billing interval of 3 months, the ends_at column shows as NULL.

Paddle example of a 3 months subscription. 94669274-4d3b6e80-0311-11eb-84ff-f4e6dc95a5ce

steps

Create in Paddle: A 1-month SUBSCRIPTION billing interval. A 3-months SUBSCRIPTION billing interval.

Pass the transaction and wait for the webhook from Paddle to update the database columns to see the issue with the ends_at column.

driesvints commented 4 years ago

Please open a new issue with the issue template and don't copy paste your composer.json file. Use the versions from your composer.lock file