yurykk wrote:
1) How you would like to manage the price for customers - "permanent" markup for all DID's, or have ability to set the price per country / city ?
Please take into account that there are more than thousand cities / area codes available.
Sure, the markup have to be a fix percentage, can't be a fix amount, I have implemented your current plugin, and test it, and I see that you already have in the config to do a percentage markup, so that's it.
Quote:
2) Some countries have a regulatory restrictions which require to collect certain documents from the end-user. In this case DID can be assigned automatically, but it will not be activated until proper documentation will be submitted & validated. Doing that through a2billing interface can be a bit challenging - your ideas are welcome.
Very easy, as you said, DID would be assigned, and reserved until validation. In this case, via your plugin, have to open a notification to a2b admin, to follow-up the customer documentation. Then, request the customer to submit a message to the a2billing admin, which have to receive them and transfer them to you. As you have already executed the purchase process, you should prevent the end customer that documents have to be submitted within certain amount of time, 72 hours, for example, as maximum, if no feedback are received, DID should be released, and operation should be cancelled.
Quote:
3) What you think should happen when customer is cancelling the DID or service is expired -
a) DID should be cancelled on DIDWW side automatically and remove from stock
b) DID should be back to stock and available for purchase by next customer.
Sure, when DID is being released due to underpayment, by the diduse cron, or by customer release/cancelling, your plugin have to take charge and cancel that DID from DIDww, and release it.
Eventually, upon the cron release, due to balance missing, you can generate admin notification for follow-up with end customer, in case of a mistake, or top-up forgotten. Or even, you can do that for the first 48 hours, if no feedback, release definitively from DIDWW .
Then, I'd suggest another function, to do add an exclude list, by allowing the admin to introduce some country prefixes to be excluded by the plugin. For example, in my case, our company have own DIDs from own network in some countries, so don't want to mix this, so, would be useful to have an exclude function, per country prefix, in the setting.
I'm sending you a PM, as I need to work with this, to bring it up right now... so, looking forward your update...
Regards,