Payment settings and configuration.
PAYMENT_PROVIDER
variable in your .env
.
PAYMENT_PRODUCTS_TYPE
to single
in your .env
.PAYMENT_PRODUCTS_TYPE
to recurring
in your .env
.PAYMENT_TRIAL_DAYS
to number of days.
USD
.
To update default currency for your plans and application, go to .env
file and update this variable:
en_US
.
To update default currency format, go to .env
file:
PAYMENT_HIGHLIGHTED_PRODUCT_ID
to the ID of the plan.
config/payments.php
under settings.cache_keys
. Feel free to update those keys as you wish.
To delete data from cache manually you can call this command in your terminal:
PAYMENT_MUST_BE_AUTHENTICATED
to false
.
PAYMENT_COLLECT_ADDRESS
to true
.
PAYMENT_CALCULATE_TAXES
to true
.
PAYMENT_COLLECT_TAX_IDS
to false
.
Enabled by default.
PAYMENT_ALLOW_DISCOUNTS
to false
.
Enabled by default.
PAYMENT_TRIAL_DAYS
to the number of days.
trial_ends_at
column on the user record to your desired trial ending date.
This is typically done during user registration:
subscribed
defined here app/Http/Middleware/Subscribed.php
.
This will check if user has any purchased product when using single payments or valid subscription when using recurring payments.