tf-checkout-react-native 2.0.0-beta.15 → 2.0.0-beta.16
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/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/paymentSheet.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tf-checkout-react-native",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.16",
|
|
4
4
|
"description": "TheTicketFairy ReactNative Checkout library",
|
|
5
5
|
"homepage": "https://github.com/theticketfairy/tf-shared-libraries#readme",
|
|
6
6
|
"author": "The Ticket Fairy",
|
package/src/paymentSheet.ts
CHANGED
|
@@ -60,7 +60,7 @@ export const nativeSheetIntentIdentity = (
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/** The bridge must preserve the complete raw PI payment_method_types list.
|
|
63
|
-
*
|
|
63
|
+
* Stripe may offer card-mode Link within this existing card payment contract. */
|
|
64
64
|
const nativeSheetCardMethods = (intent: unknown): boolean => {
|
|
65
65
|
if (!intent || typeof intent !== 'object') return false
|
|
66
66
|
const methods = Object.getOwnPropertyDescriptor(intent, 'paymentMethodTypes')?.value
|
|
@@ -126,9 +126,9 @@ export const createPaymentSheetConfirmation = (
|
|
|
126
126
|
defaultBillingDetails: billing,
|
|
127
127
|
customFlow: false,
|
|
128
128
|
allowsDelayedPaymentMethods: false,
|
|
129
|
-
//
|
|
130
|
-
//
|
|
131
|
-
link: { display: sdk.LinkDisplay.
|
|
129
|
+
// Stripe decides whether the original account/session supports card-mode
|
|
130
|
+
// Link. This preference does not add an explicit Link/non-card PI type.
|
|
131
|
+
link: { display: sdk.LinkDisplay.AUTOMATIC },
|
|
132
132
|
})
|
|
133
133
|
if (initialized.error)
|
|
134
134
|
throw paymentProviderError(NATIVE_SHEET_CARD_FIELD_MESSAGE, 'notStarted', {
|