Class CustomerCenter
java.lang.Object
com.codename1.payment.center.CustomerCenter
The customer center: a form listing the customer's active subscriptions and what can be done about them.
The console configures which paths the form offers:
MANAGEopens the store's own subscription management, or the customer's management page where the platform has noneRESTORErestores the purchases of the store accountREFUNDasks the store for a refund, one row per subscription the store can refundCANCELasks why, reports the answer, shows the retention offer configured for that reason if there is one, and otherwise continues to the store's subscription management. Offered while a subscription is active.SUPPORTopens the support page, or an email to the support address. Offered when one of the two is configured.
When the configuration cannot be fetched the form offers MANAGE and
RESTORE.
Styling
CustomerCenterForm: the formCustomerCenterHeader: the heading above the subscriptionsCustomerCenterSubscription: one active subscriptionCustomerCenterEmpty: the line shown when no subscription is activeCustomerCenterRow: the button of one pathCustomerCenterReason: one cancel reason
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe path that cancels a subscription.static final StringThe path that opens subscription management.static final StringThe path that asks for a refund.static final StringThe path that restores purchases.static final StringThe path that reaches support. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidshow()Fetches the customer center configuration and shows the form over the current one; going back returns there.
-
Field Details
-
PATH_MANAGE
-
PATH_RESTORE
-
PATH_REFUND
-
PATH_CANCEL
-
PATH_SUPPORT
-
-
Method Details
-
show
public static void show()Fetches the customer center configuration and shows the form over the current one; going back returns there. May be called on any thread: the form is shown on the EDT, which is not blocked while the configuration is fetched.
-