protonemedia / laravel-paddle

Paddle.com API integration for Laravel with support for webhooks/events
https://protone.media/en/blog/a-new-laravel-package-to-handle-payments-and-subscriptions-with-paddle
MIT License
203 stars 18 forks source link

How can I disable Qty and coupon option of paddle using this package? #26

Closed MdAnowarHosen closed 2 years ago

MdAnowarHosen commented 2 years ago

I want to disable Qty and Coupon option of Paddle. How can I disable this using this package?

BenBornschein commented 2 years ago

Easy:

Paddle::product()->generatePayLink([
'discountable' => 0,
'quantity_variable' => 0,
]);

See: https://developer.paddle.com/api-reference/b3A6MzA3NDQ3MjM-generate-pay-link

MdAnowarHosen commented 2 years ago

Thank you @BenBornschein