Skip to main content

hooks/useSCPaymentsEnabled

Functions

useSCPaymentsEnabled()

useSCPaymentsEnabled(): object

info

This custom hook is used to check if the payments are enabled

How to use it:

Follow these steps:

1. import useSCPaymentsEnabled from '@selfcommunity/react-core';
2. const {isPaymentsEnabled, stripePublicKey, stripeConnectedAccountId} = useSCPaymentsEnabled();

Returns

object

NameType
isPaymentsEnabledany
stripeConnectedAccountIdany
stripePublicKeyany