Skip to main content
Version: Next

SubscriptionManageMembersModal

The SubscriptionManageMembers modal is used to manage members in a subscription from type membership.

Loading...
info

SubscriptionManageMembersModal requires the subscriptionToManageMembers to be set. if you have your own custom flow, you can use the usePelcro hook to set them before switching to the payment view like in the following example.

Usage#

import React from "react";
import {
SubscriptionManageMembersModal,
PelcroModalController,
usePelcro,
} from "@pelcro/react-pelcro-js";
import "@pelcro/react-pelcro-js/dist/pelcro.css";
export const SubscriptionManageMembersExample = () => {
return (
<>
<PelcroModalController>
<SubscriptionManageMembersModal />
</PelcroModalController>
</>
);
};

Reference#

Props#

onDisplay#

() โ‡’ void

Callback function called when the modal is first displayed.

onClose#

() โ‡’ void

Callback function called when the modal is closed.

onSuccess#

(userObject) โ‡’ void

Callback function called when the user logs in succesfully.

onFailure#

(errorObject) โ‡’ void

Callback function called when the login fails.