ordering-ui-react-native 0.18.84 → 0.18.86

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.18.84",
3
+ "version": "0.18.86",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -153,7 +153,8 @@ export const StripeMethodForm = (props: StripeMethodFormParams) => {
153
153
  const { error, paymentMethod } = await presentApplePay({
154
154
  cartItems: [{
155
155
  label: t('CART', 'Cart'),
156
- amount: cartTotal?.toString?.() ?? cart?.balance?.toString() ?? cart?.total?.toString?.()
156
+ amount: cartTotal?.toString?.() ?? cart?.balance?.toString() ?? cart?.total?.toString?.(),
157
+ paymentType: 'Immediate'
157
158
  }],
158
159
  country: 'US',
159
160
  currency: configs?.stripe_currency?.value ?? 'USD',
@@ -50,8 +50,8 @@ const StripeElementsFormUI = (props: any) => {
50
50
  const { height } = useWindowDimensions();
51
51
  const { top, bottom } = useSafeAreaInsets();
52
52
  const [isKeyboardShow, setIsKeyboardShow] = useState(false);
53
- const zipCodeEnabled = validationFields?.checkout?.zipcode?.enabled
54
- const zipCodeRequired = validationFields?.checkout?.zipcode?.required
53
+ const zipCodeEnabled = validationFields?.fields?.card?.zipcode?.enabled
54
+ const zipCodeRequired = validationFields?.fields?.card?.zipcode?.required
55
55
  const styles = StyleSheet.create({
56
56
  container: {
57
57
  width: '100%',
@@ -20,7 +20,7 @@ export const UDLoader = styled.View`
20
20
  width: 100%;
21
21
  justify-content: center;
22
22
  height: auto;
23
- display: inline-flex;
23
+ display: flex;
24
24
  flex-wrap: wrap;
25
25
  padding: 0;
26
26
  margin-top: 0px;