@bigbinary/neeto-payments-frontend 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -141,7 +141,7 @@ This hook is used to generate the `stripePromise` object to be passed to the str
141
141
  Example usage
142
142
 
143
143
  ```js
144
- const stripeAccountIdentifier = "acct_1Mtqtz2e5McIywz4"
144
+ const stripeAccountIdentifier = "acct_1Mtqtz2e5McIywz4";
145
145
  const stripePromise = useStripePromise(stripeAccountIdentifier);
146
146
  ...
147
147
  <Elements stripe={stripePromise}>
@@ -149,6 +149,32 @@ Example usage
149
149
  </Elements>
150
150
 
151
151
  ```
152
+
153
+ ### 4. `PaymentKindRestrictionAlert` component
154
+
155
+ #### Props
156
+
157
+ 1. **isOpen**: To specify whether the Stripe connect restriction alert should be
158
+ opened or closed.
159
+
160
+ 2. **paymentKind**: To specify the type of Stripe payment kind for rendering
161
+ related content to alert either as "standard" or "platform". If Stripe
162
+ Standard is connected the alert shall forbid Stripe Platform connect and vice
163
+ versa.
164
+
165
+ 3. **onClose**: Handler function that is triggered when the disconnect button is
166
+ clicked.
167
+
168
+ Example usage
169
+
170
+ ```js
171
+ <PaymentKindRestrictionAlert
172
+ isOpen={isStripePlatformConnectedAlertOpen}
173
+ paymentKind="standard"
174
+ onClose={() => setIsStripePlatformConnectedAlertOpen(false)}
175
+ />
176
+ ```
177
+
152
178
  ## Other References
153
179
 
154
180
  - [Development instructions](./docs/general/development-instructions.md)