Use self-serve prepaid
Self-serve prepaid lets customers purchase prepaid on demand.
Before you use self-serve prepaid, you must complete the following tasks in Smile, among
others:
- configure prepaid
- make prepaid blocks available for self-service
- set up payment types
The following self-serve prepaid workflow lets you dynamically discover available prepaid blocks
and payment types, so you can change your prepaid offerings in Smile without changing your
code:
- authenticate() checks the
customer's credentials and returns the subscription USN. Note: This method is located on the authentication endpoint.
- getSelfServePrepaidList() returns a list of the prepaid blocks a customer can purchase.
- getPrepaidPaymentTypes() returns a list of payment methods available to the customer.
- getQuote() returns a quote to purchase a prepaid block with a specific payment method.
- addSelfServePrepaid() adds a prepaid block to a subscription and charges for the prepaid.