Skip to content

Commit

Permalink
Revert Stripe to 0.2.3 to fix Android build.
Browse files Browse the repository at this point in the history
- Bumping to 0.2.4 requires Android SDK, see stripe/stripe-react-native#812.
  • Loading branch information
alexsegura committed Nov 16, 2022
1 parent 4729c96 commit d8b701f
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 44 deletions.
44 changes: 16 additions & 28 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -699,27 +699,19 @@ PODS:
- Sentry (7.1.4):
- Sentry/Core (= 7.1.4)
- Sentry/Core (7.1.4)
- Stripe (22.5.1):
- Stripe/Stripe3DS2 (= 22.5.1)
- StripeApplePay (= 22.5.1)
- StripeCore (= 22.5.1)
- StripeUICore (= 22.5.1)
- stripe-react-native (0.14.0):
- Stripe (21.9.1):
- Stripe/Stripe3DS2 (= 21.9.1)
- StripeCore (= 21.9.1)
- StripeUICore (= 21.9.1)
- stripe-react-native (0.2.3):
- React-Core
- Stripe (~> 22.5.1)
- StripeFinancialConnections (~> 22.5.1)
- Stripe/Stripe3DS2 (22.5.1):
- StripeApplePay (= 22.5.1)
- StripeCore (= 22.5.1)
- StripeUICore (= 22.5.1)
- StripeApplePay (22.5.1):
- StripeCore (= 22.5.1)
- StripeCore (22.5.1)
- StripeFinancialConnections (22.5.1):
- StripeCore (= 22.5.1)
- StripeUICore (= 22.5.1)
- StripeUICore (22.5.1):
- StripeCore (= 22.5.1)
- Stripe (~> 21.9.0)
- Stripe/Stripe3DS2 (21.9.1):
- StripeCore (= 21.9.1)
- StripeUICore (= 21.9.1)
- StripeCore (21.9.1)
- StripeUICore (21.9.1):
- StripeCore (= 21.9.1)
- Yoga (1.14.0)

DEPENDENCIES:
Expand Down Expand Up @@ -842,9 +834,7 @@ SPEC REPOS:
- PureLayout
- Sentry
- Stripe
- StripeApplePay
- StripeCore
- StripeFinancialConnections
- StripeUICore

EXTERNAL SOURCES:
Expand Down Expand Up @@ -1106,12 +1096,10 @@ SPEC CHECKSUMS:
RNSVG: 551acb6562324b1d52a4e0758f7ca0ec234e278f
RNVectorIcons: 7923e585eaeb139b9f4531d25a125a1500162a0b
Sentry: 1d3eb1a25f8c5333c88dd5603904a6d461cd9fcf
Stripe: 2b2decd03146e08a350960966d41f3028c2eac29
stripe-react-native: c90947c1f02761d11622dcb3cd3bd8683916b36b
StripeApplePay: b14f06ac6fc24b56704c1e598149ed0cc45e166f
StripeCore: 4833738f2ca4336712f279f3c2867a0a7eb67c93
StripeFinancialConnections: 982115b82af429968d8aa78d329a42ed7ba3feab
StripeUICore: 08c1efbd7e3c54ee7fa74334a37a1d4c08ba944d
Stripe: 22c1b8da5ee20a1aaf40fd198160efa72e71644a
stripe-react-native: 980f3d19f52a7dc4b373c6c20d30ebd760bc39e5
StripeCore: 91ea038ac0abbb72f11014044dfd1e5d39089714
StripeUICore: 7edf64b24c9c178bfd97e988f2cffdbb7a7628b0
Yoga: b316a990bb6d115afa1b436b5626ac7c61717d17

PODFILE CHECKSUM: 0fb88ebe750af8489e96099c54487d98f99e962a
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@react-navigation/native": "^6.0.13",
"@react-navigation/stack": "^6.3.2",
"@sentry/react-native": "^2.6.0",
"@stripe/stripe-react-native": "^0.14.0",
"@stripe/stripe-react-native": "0.2.3",
"@turf/turf": "^6.5.0",
"abortcontroller-polyfill": "^1.7.5",
"axios": "^0.26.1",
Expand Down
14 changes: 6 additions & 8 deletions src/redux/Checkout/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -780,14 +780,12 @@ export function checkout(cardholderName) {
}

createPaymentMethod({
paymentMethodType: 'Card',
paymentMethodData: {
billingDetails: {
email: billingEmail,
name: cardholderName,
phone: cart.fulfillmentMethod === 'delivery' ? cart.shippingAddress.telephone : '',
},
}
type: 'Card',
billingDetails: {
email: billingEmail,
name: cardholderName,
phone: cart.fulfillmentMethod === 'delivery' ? cart.shippingAddress.telephone : '',
},
})
.then(({ paymentMethod, error }) => {
if (error) {
Expand Down
48 changes: 41 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1718,7 +1718,7 @@
xcode "^3.0.1"
xml2js "0.4.23"

"@expo/config-plugins@4.1.5", "@expo/config-plugins@^4.0.2", "@expo/config-plugins@^4.1.4":
"@expo/config-plugins@4.1.5", "@expo/config-plugins@^4.0.2":
version "4.1.5"
resolved "https://registry.yarnpkg.com/@expo/config-plugins/-/config-plugins-4.1.5.tgz#9d357d2cda9c095e511b51583ede8a3b76174068"
integrity sha512-RVvU40RtZt12HavuDAe+LDIq9lHj7sheOfMEHdmpJ/uTA8pgvkbc56XF6JHQD+yRr6+uhhb+JnAasGq49dsQbw==
Expand All @@ -1739,6 +1739,26 @@
xcode "^3.0.1"
xml2js "0.4.23"

"@expo/config-plugins@^3.0.5":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@expo/config-plugins/-/config-plugins-3.1.0.tgz#0752ff33c5eab21cf42034a44e79df97f0f867f8"
integrity sha512-V5qxaxCAExBM0TXmbU1QKiZcAGP3ecu7KXede8vByT15cro5PkcWu2sSdJCYbHQ/gw6Vf/i8sr8gKlN8V8TSLg==
dependencies:
"@expo/config-types" "^42.0.0"
"@expo/json-file" "8.2.33"
"@expo/plist" "0.0.14"
chalk "^4.1.2"
debug "^4.3.1"
find-up "~5.0.0"
fs-extra "9.0.0"
getenv "^1.0.0"
glob "7.1.6"
resolve-from "^5.0.0"
semver "^7.3.5"
slash "^3.0.0"
xcode "^3.0.1"
xml2js "^0.4.23"

"@expo/config-plugins@^5.0.1":
version "5.0.1"
resolved "https://registry.yarnpkg.com/@expo/config-plugins/-/config-plugins-5.0.1.tgz#66bc8d15785bdcd3598e466344f8c0518390179d"
Expand All @@ -1760,6 +1780,11 @@
xcode "^3.0.1"
xml2js "0.4.23"

"@expo/config-types@^42.0.0":
version "42.0.0"
resolved "https://registry.yarnpkg.com/@expo/config-types/-/config-types-42.0.0.tgz#3e3e125ec092c0c34dbfaf19be5480402de3d677"
integrity sha512-Rj02OMZke2MrGa/1Y/EScmR7VuWbDEHPJyvfFyyLbadUt+Yv6isCdeFzDt71I7gJlPR9T4fzixeYLrtXXOTq0w==

"@expo/config-types@^43.0.1":
version "43.0.1"
resolved "https://registry.yarnpkg.com/@expo/config-types/-/config-types-43.0.1.tgz#3e047dccb371741a540980eaff26fb0c95039c30"
Expand Down Expand Up @@ -1838,6 +1863,15 @@
getenv "^1.0.0"
sucrase "^3.20.0"

"@expo/plist@0.0.14":
version "0.0.14"
resolved "https://registry.yarnpkg.com/@expo/plist/-/plist-0.0.14.tgz#a756903bd28aabe0a961222df2e7858a39a218c9"
integrity sha512-bb4Ua1M/OdNgS8KiGdSDUjZ/bbPfv3xdPY/lz8Ctp/adlj/QgB8xA7tVPeqSSfJPZqFRwU0qLCnRhpUOnP51VQ==
dependencies:
"@xmldom/xmldom" "~0.7.0"
base64-js "^1.2.3"
xmlbuilder "^14.0.0"

"@expo/plist@0.0.15":
version "0.0.15"
resolved "https://registry.yarnpkg.com/@expo/plist/-/plist-0.0.15.tgz#41ef37b7bbe6b81c48bf4a5c359661c766bb9e90"
Expand Down Expand Up @@ -3737,12 +3771,12 @@
dependencies:
"@sinonjs/commons" "^1.7.0"

"@stripe/stripe-react-native@^0.14.0":
version "0.14.0"
resolved "https://registry.yarnpkg.com/@stripe/stripe-react-native/-/stripe-react-native-0.14.0.tgz#0ff0f7f5fdeeffd37965bc468da6f121ed8b64ca"
integrity sha512-6/QdRz39PG5RhuWWsSKgjDmi6/HqUjCnLequqKXtPN1hpxcyCIixYwYyJn7jshZnffV+o0WAR5KFB8SuI9r2hw==
"@stripe/stripe-react-native@0.2.3":
version "0.2.3"
resolved "https://registry.yarnpkg.com/@stripe/stripe-react-native/-/stripe-react-native-0.2.3.tgz#c0570d6afa30ab432983cea03ccf532c1f8d731a"
integrity sha512-UugLDeJEHAbrHDj5OcwhD5Za96pTwXr2sCfvO6UrGzH71HZ7vzBSq+/Cckm2HJFmkC4JqamGjTxy/pI6pqZ4ng==
dependencies:
"@expo/config-plugins" "^4.1.4"
"@expo/config-plugins" "^3.0.5"

"@styled-system/background@^5.1.2":
version "5.1.2"
Expand Down Expand Up @@ -14202,7 +14236,7 @@ xml-name-validator@^3.0.0:
resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a"
integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==

xml2js@0.4.23:
xml2js@0.4.23, xml2js@^0.4.23:
version "0.4.23"
resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.4.23.tgz#a0c69516752421eb2ac758ee4d4ccf58843eac66"
integrity sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==
Expand Down

0 comments on commit d8b701f

Please sign in to comment.