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
| Name | Type |
|---|---|
isPaymentsEnabled | any |
stripeConnectedAccountId | any |
stripePublicKey | any |