mtvbrianking/laravel-ussd

Add whitelist and blacklist tags.

Opened this issue · 1 comments

Usage:

Using a list of comma-separated telephone numbers.

Whitelist

<whitelist numbers="256772000001,256772000002,256772000003" msisdn="{{phone_number}}" text="Not allowed"/>

Expectation: Exit with the text Not allowed for non-whitelisted numbers, else proceed.

Blacklist

<blacklist numbers="256772000001,256772000002,256772000003" msisdn="{{phone_number}}" text="Barred"/>

Expectation: Exit with the text Barred for blacklisted numbers, else proceed.

This can be useful for feature previews before they’re released to the general public.

You could use Coming Soon for non-allowed users while allowed users access and test the feature.