@betterstore/react 0.2.42 → 0.2.44

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.2.44
4
+
5
+ ### Patch Changes
6
+
7
+ - bug type fix
8
+
9
+ ## 0.2.43
10
+
11
+ ### Patch Changes
12
+
13
+ - variant handeling bug fixes
14
+
3
15
  ## 0.2.42
4
16
 
5
17
  ### Patch Changes
@@ -9,11 +9,12 @@ interface PaymentFormProps {
9
9
  onDoubleBack: () => void;
10
10
  contactEmail: string;
11
11
  shippingAddress: string;
12
- shippingProvider: string;
12
+ shippingName: string;
13
13
  shippingPrice: string;
14
14
  checkoutAppearance?: AppearanceConfig;
15
15
  fonts?: StripeElementsOptions["fonts"];
16
16
  locale?: StripeElementLocale;
17
+ publicKey: string | null;
17
18
  }
18
- export default function PaymentForm({ paymentSecret, onSuccess, onError, onBack, onDoubleBack, contactEmail, shippingAddress, shippingProvider, shippingPrice, checkoutAppearance, fonts, locale, }: PaymentFormProps): React.JSX.Element;
19
+ export default function PaymentForm({ paymentSecret, onSuccess, onError, onBack, onDoubleBack, contactEmail, shippingAddress, shippingName, shippingPrice, checkoutAppearance, fonts, locale, publicKey, }: PaymentFormProps): React.JSX.Element;
19
20
  export {};
@@ -1,7 +1,8 @@
1
1
  import { Appearance, StripeElementLocale, StripeElementsOptions } from "@stripe/stripe-js";
2
2
  import React from "react";
3
- declare function PaymentElement({ paymentSecret, checkoutAppearance, locale, fonts, onSuccess, onError, children, setSubmitting, }: {
3
+ declare function PaymentElement({ paymentSecret, publicKey, checkoutAppearance, locale, fonts, onSuccess, onError, children, setSubmitting, }: {
4
4
  paymentSecret: string;
5
+ publicKey: string | null;
5
6
  checkoutAppearance?: Appearance;
6
7
  locale?: StripeElementLocale;
7
8
  fonts?: StripeElementsOptions["fonts"];