@stripe/stripe-react-native 0.52.0-crypto-onramp-2-private-beta.2 → 0.53.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/android/.idea/caches/deviceStreaming.xml +0 -13
- package/android/.idea/gradle.xml +1 -0
- package/android/.idea/misc.xml +1 -1
- package/android/build.gradle +0 -14
- package/android/gradle.properties +1 -1
- package/android/local.properties +2 -2
- package/android/src/main/java/com/reactnativestripesdk/EmbeddedPaymentElementView.kt +48 -25
- package/android/src/main/java/com/reactnativestripesdk/EmbeddedPaymentElementViewManager.kt +2 -0
- package/android/src/main/java/com/reactnativestripesdk/PaymentLauncherFragment.kt +1 -1
- package/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt +14 -13
- package/android/src/main/java/com/reactnativestripesdk/StripeSdkPackage.kt +1 -19
- package/android/src/main/java/com/reactnativestripesdk/utils/Errors.kt +0 -10
- package/android/src/main/java/com/reactnativestripesdk/utils/Mappers.kt +3 -12
- package/android/src/oldarch/java/com/facebook/react/viewmanagers/ApplePayButtonManagerDelegate.java +0 -12
- package/android/src/oldarch/java/com/facebook/react/viewmanagers/ApplePayButtonManagerInterface.java +0 -4
- package/android/src/oldarch/java/com/reactnativestripesdk/NativeStripeSdkModuleSpec.java +4 -4
- package/ios/Mappers.swift +1 -134
- package/ios/OldArch/StripeSdkEventEmitterCompat.h +0 -1
- package/ios/OldArch/StripeSdkEventEmitterCompat.m +1 -7
- package/ios/StripeSdk.mm +7 -0
- package/ios/StripeSdkEmitter.swift +0 -4
- package/ios/StripeSdkImpl.swift +13 -584
- package/lib/commonjs/components/AddToWalletButton.js +1 -1
- package/lib/commonjs/components/AddToWalletButton.js.map +1 -1
- package/lib/commonjs/components/AddressSheet.js +1 -1
- package/lib/commonjs/components/AddressSheet.js.map +1 -1
- package/lib/commonjs/components/AuBECSDebitForm.js +1 -1
- package/lib/commonjs/components/AuBECSDebitForm.js.map +1 -1
- package/lib/commonjs/components/CardField.js +1 -1
- package/lib/commonjs/components/CardField.js.map +1 -1
- package/lib/commonjs/components/CardForm.js +1 -1
- package/lib/commonjs/components/CardForm.js.map +1 -1
- package/lib/commonjs/components/PlatformPayButton.js +1 -1
- package/lib/commonjs/components/PlatformPayButton.js.map +1 -1
- package/lib/commonjs/components/StripeContainer.js +1 -1
- package/lib/commonjs/components/StripeContainer.js.map +1 -1
- package/lib/commonjs/components/StripeProvider.js +1 -1
- package/lib/commonjs/components/StripeProvider.js.map +1 -1
- package/lib/commonjs/events.js +1 -1
- package/lib/commonjs/events.js.map +1 -1
- package/lib/commonjs/functions.js +1 -1
- package/lib/commonjs/functions.js.map +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/plugin/withStripe.js +1 -1
- package/lib/commonjs/plugin/withStripe.js.map +1 -1
- package/lib/commonjs/specs/NativeStripeSdkModule.js.map +1 -1
- package/lib/commonjs/types/EmbeddedPaymentElement.js +1 -1
- package/lib/commonjs/types/EmbeddedPaymentElement.js.map +1 -1
- package/lib/commonjs/types/Errors.js +1 -1
- package/lib/commonjs/types/Errors.js.map +1 -1
- package/lib/commonjs/types/PlatformPay.js.map +1 -1
- package/lib/commonjs/types/index.js +1 -1
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/module/components/AddToWalletButton.js +1 -1
- package/lib/module/components/AddToWalletButton.js.map +1 -1
- package/lib/module/components/AddressSheet.js +1 -1
- package/lib/module/components/AddressSheet.js.map +1 -1
- package/lib/module/components/AuBECSDebitForm.js +1 -1
- package/lib/module/components/AuBECSDebitForm.js.map +1 -1
- package/lib/module/components/CardField.js +1 -1
- package/lib/module/components/CardField.js.map +1 -1
- package/lib/module/components/CardForm.js +1 -1
- package/lib/module/components/CardForm.js.map +1 -1
- package/lib/module/components/PlatformPayButton.js +1 -1
- package/lib/module/components/PlatformPayButton.js.map +1 -1
- package/lib/module/components/StripeContainer.js +1 -1
- package/lib/module/components/StripeContainer.js.map +1 -1
- package/lib/module/components/StripeProvider.js +1 -1
- package/lib/module/components/StripeProvider.js.map +1 -1
- package/lib/module/events.js +1 -1
- package/lib/module/events.js.map +1 -1
- package/lib/module/functions.js +1 -1
- package/lib/module/functions.js.map +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/plugin/withStripe.js +1 -1
- package/lib/module/plugin/withStripe.js.map +1 -1
- package/lib/module/specs/NativeStripeSdkModule.js.map +1 -1
- package/lib/module/types/EmbeddedPaymentElement.js +1 -1
- package/lib/module/types/EmbeddedPaymentElement.js.map +1 -1
- package/lib/module/types/Errors.js +1 -1
- package/lib/module/types/Errors.js.map +1 -1
- package/lib/module/types/PlatformPay.js.map +1 -1
- package/lib/module/types/index.js +1 -1
- package/lib/module/types/index.js.map +1 -1
- package/lib/typescript/src/components/StripeProvider.d.ts.map +1 -1
- package/lib/typescript/src/events.d.ts +0 -3
- package/lib/typescript/src/events.d.ts.map +1 -1
- package/lib/typescript/src/functions.d.ts +1 -0
- package/lib/typescript/src/functions.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +0 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/plugin/withStripe.d.ts +0 -15
- package/lib/typescript/src/plugin/withStripe.d.ts.map +1 -1
- package/lib/typescript/src/specs/NativeStripeSdkModule.d.ts +1 -0
- package/lib/typescript/src/specs/NativeStripeSdkModule.d.ts.map +1 -1
- package/lib/typescript/src/types/EmbeddedPaymentElement.d.ts +1 -0
- package/lib/typescript/src/types/EmbeddedPaymentElement.d.ts.map +1 -1
- package/lib/typescript/src/types/Errors.d.ts +0 -5
- package/lib/typescript/src/types/Errors.d.ts.map +1 -1
- package/lib/typescript/src/types/PlatformPay.d.ts +7 -1
- package/lib/typescript/src/types/PlatformPay.d.ts.map +1 -1
- package/lib/typescript/src/types/index.d.ts +1 -7
- package/lib/typescript/src/types/index.d.ts.map +1 -1
- package/package.json +21 -2
- package/src/components/StripeProvider.tsx +0 -9
- package/src/events.ts +0 -22
- package/src/functions.ts +11 -0
- package/src/index.tsx +0 -1
- package/src/plugin/withStripe.ts +7 -104
- package/src/specs/NativeStripeSdkModule.ts +2 -0
- package/src/types/EmbeddedPaymentElement.tsx +7 -0
- package/src/types/Errors.ts +0 -6
- package/src/types/PlatformPay.ts +7 -1
- package/src/types/index.ts +0 -8
- package/stripe-react-native.podspec +8 -21
- package/.clang-format +0 -90
- package/.claude/settings.local.json +0 -11
- package/.editorconfig +0 -18
- package/.husky/pre-commit +0 -1
- package/.idea/GitLink.xml +0 -6
- package/.idea/codeStyles/Project.xml +0 -162
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/misc.xml +0 -851
- package/.idea/modules.xml +0 -8
- package/.idea/stripe-react-native.iml +0 -9
- package/.idea/vcs.xml +0 -6
- package/.vscode/settings.json +0 -3
- package/CHANGELOG.md +0 -931
- package/CLAUDE.md +0 -148
- package/android/.gradle/8.11.1/checksums/checksums.lock +0 -0
- package/android/.gradle/8.11.1/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/8.11.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.11.1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.11.1/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/8.11.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.11.1/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/file-system.probe +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/AndroidProjectSystem.xml +0 -6
- package/android/.idea/GitLink.xml +0 -6
- package/android/.idea/appInsightsSettings.xml +0 -23
- package/android/src/main/java/com/reactnativestripesdk/FakeOnrampSdkModule.kt +0 -138
- package/android/src/oldarch/java/com/reactnativestripesdk/NativeOnrampSdkModuleSpec.java +0 -110
- package/android/src/onramp/java/com/reactnativestripesdk/OnrampSdkModule.kt +0 -844
- package/ios/StripeOnrampSdk.h +0 -17
- package/ios/StripeOnrampSdk.mm +0 -144
- package/lib/commonjs/hooks/useOnramp.js +0 -2
- package/lib/commonjs/hooks/useOnramp.js.map +0 -1
- package/lib/commonjs/specs/NativeOnrampSdkModule.js +0 -2
- package/lib/commonjs/specs/NativeOnrampSdkModule.js.map +0 -1
- package/lib/commonjs/types/Onramp.js +0 -2
- package/lib/commonjs/types/Onramp.js.map +0 -1
- package/lib/module/hooks/useOnramp.js +0 -2
- package/lib/module/hooks/useOnramp.js.map +0 -1
- package/lib/module/specs/NativeOnrampSdkModule.js +0 -2
- package/lib/module/specs/NativeOnrampSdkModule.js.map +0 -1
- package/lib/module/types/Onramp.js +0 -2
- package/lib/module/types/Onramp.js.map +0 -1
- package/lib/typescript/src/hooks/useOnramp.d.ts +0 -139
- package/lib/typescript/src/hooks/useOnramp.d.ts.map +0 -1
- package/lib/typescript/src/specs/NativeOnrampSdkModule.d.ts +0 -26
- package/lib/typescript/src/specs/NativeOnrampSdkModule.d.ts.map +0 -1
- package/lib/typescript/src/types/Onramp.d.ts +0 -259
- package/lib/typescript/src/types/Onramp.d.ts.map +0 -1
- package/package-lock.json +0 -14114
- package/patches/README.md +0 -55
- package/patches/old-arch-codegen-fix.patch +0 -91
- package/src/hooks/useOnramp.tsx +0 -297
- package/src/specs/NativeOnrampSdkModule.ts +0 -41
- package/src/types/Onramp.ts +0 -297
package/lib/module/events.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.addListener=addListener;
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.addListener=addListener;var _reactNative=require("react-native");var _NativeStripeSdkModule=_interopRequireDefault(require("./specs/NativeStripeSdkModule"));var compatEventEmitter=_reactNative.Platform.OS==='ios'?new _reactNative.NativeEventEmitter(_NativeStripeSdkModule.default):_reactNative.DeviceEventEmitter;function addListener(event,handler){return compatEventEmitter.addListener(event,handler);}
|
|
2
2
|
//# sourceMappingURL=events.js.map
|
package/lib/module/events.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_NativeStripeSdkModule","_interopRequireDefault","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_NativeStripeSdkModule","_interopRequireDefault","compatEventEmitter","Platform","OS","NativeEventEmitter","NativeStripeSdkModule","DeviceEventEmitter","addListener","event","handler"],"sourceRoot":"../../src","sources":["events.ts"],"mappings":"4KAQA,IAAAA,YAAA,CAAAC,OAAA,iBAOA,IAAAC,sBAAA,CAAAC,sBAAA,CAAAF,OAAA,mCAKA,GAAM,CAAAG,kBAAkB,CACtBC,qBAAQ,CAACC,EAAE,GAAK,KAAK,CACjB,GAAI,CAAAC,+BAAkB,CAACC,8BAA4B,CAAC,CACpDC,+BAAkB,CAqCjB,QAAS,CAAAC,WAAWA,CACzBC,KAAa,CACbC,OAAsC,CACnB,CACnB,MAAO,CAAAR,kBAAkB,CAACM,WAAW,CAACC,KAAK,CAAEC,OAAO,CAAC,CACvD","ignoreList":[]}
|
package/lib/module/functions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.verifyMicrodepositsForSetup=exports.verifyMicrodepositsForPayment=exports.updatePlatformPaySheet=exports.retrieveSetupIntent=exports.retrievePaymentIntent=exports.resetPaymentSheetCustomer=exports.presentPaymentSheet=exports.openPlatformPaySetup=exports.isPlatformPaySupported=exports.isCardInWallet=exports.initPaymentSheet=exports.handleURLCallback=exports.handleNextActionForSetup=exports.handleNextAction=exports.dismissPlatformPay=exports.createTokenForCVCUpdate=exports.createToken=exports.createPlatformPayToken=exports.createPlatformPayPaymentMethod=exports.createPaymentMethod=exports.confirmSetupIntent=exports.confirmPlatformPaySetupIntent=exports.confirmPlatformPayPayment=exports.confirmPaymentSheetPayment=exports.confirmPayment=exports.collectFinancialConnectionsAccounts=exports.collectBankAccountToken=exports.collectBankAccountForSetup=exports.collectBankAccountForPayment=exports.canAddCardToWallet=exports.Constants=void 0;var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _helpers=require("./helpers");var _Errors=require("./types/Errors");var _NativeStripeSdkModule=_interopRequireDefault(require("./specs/NativeStripeSdkModule"));var _reactNative=require("react-native");var _events=require("./events");var createPaymentMethod=exports.createPaymentMethod=function(){var _ref=(0,_asyncToGenerator2.default)(function*(params){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};try{var _yield$NativeStripeSd=yield _NativeStripeSdkModule.default.createPaymentMethod(params,options),paymentMethod=_yield$NativeStripeSd.paymentMethod,error=_yield$NativeStripeSd.error;if(error){return{error:error};}return{paymentMethod:paymentMethod};}catch(error){return{error:error};}});return function createPaymentMethod(_x){return _ref.apply(this,arguments);};}();var createToken=exports.createToken=function(){var _ref2=(0,_asyncToGenerator2.default)(function*(params){var _params$country;if(params.type==='BankAccount'&&((_params$country=params.country)==null?void 0:_params$country.toLowerCase())==='us'&&!params.routingNumber){return{error:_Errors.MissingRoutingNumber};}try{var _yield$NativeStripeSd2=yield _NativeStripeSdkModule.default.createToken(params),token=_yield$NativeStripeSd2.token,error=_yield$NativeStripeSd2.error;if(error){return{error:error};}return{token:token};}catch(error){return{error:error};}});return function createToken(_x2){return _ref2.apply(this,arguments);};}();var retrievePaymentIntent=exports.retrievePaymentIntent=function(){var _ref3=(0,_asyncToGenerator2.default)(function*(clientSecret){try{var _yield$NativeStripeSd3=yield _NativeStripeSdkModule.default.retrievePaymentIntent(clientSecret),paymentIntent=_yield$NativeStripeSd3.paymentIntent,error=_yield$NativeStripeSd3.error;if(error){return{error:error};}return{paymentIntent:paymentIntent};}catch(error){return{error:error};}});return function retrievePaymentIntent(_x3){return _ref3.apply(this,arguments);};}();var retrieveSetupIntent=exports.retrieveSetupIntent=function(){var _ref4=(0,_asyncToGenerator2.default)(function*(clientSecret){try{var _yield$NativeStripeSd4=yield _NativeStripeSdkModule.default.retrieveSetupIntent(clientSecret),setupIntent=_yield$NativeStripeSd4.setupIntent,error=_yield$NativeStripeSd4.error;if(error){return{error:error};}return{setupIntent:setupIntent};}catch(error){return{error:error};}});return function retrieveSetupIntent(_x4){return _ref4.apply(this,arguments);};}();var confirmPayment=exports.confirmPayment=function(){var _ref5=(0,_asyncToGenerator2.default)(function*(paymentIntentClientSecret,params){var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};try{var _yield$NativeStripeSd5=yield _NativeStripeSdkModule.default.confirmPayment(paymentIntentClientSecret,params,options),paymentIntent=_yield$NativeStripeSd5.paymentIntent,error=_yield$NativeStripeSd5.error;if(error){return{error:error};}return{paymentIntent:paymentIntent};}catch(error){return{error:error};}});return function confirmPayment(_x5,_x6){return _ref5.apply(this,arguments);};}();var handleNextAction=exports.handleNextAction=function(){var _ref6=(0,_asyncToGenerator2.default)(function*(paymentIntentClientSecret,returnURL){try{var _yield$NativeStripeSd6=yield _NativeStripeSdkModule.default.handleNextAction(paymentIntentClientSecret,returnURL!=null?returnURL:null),paymentIntent=_yield$NativeStripeSd6.paymentIntent,error=_yield$NativeStripeSd6.error;if(error){return{error:error};}return{paymentIntent:paymentIntent};}catch(error){return{error:(0,_helpers.createError)(error)};}});return function handleNextAction(_x7,_x8){return _ref6.apply(this,arguments);};}();var handleNextActionForSetup=exports.handleNextActionForSetup=function(){var _ref7=(0,_asyncToGenerator2.default)(function*(setupIntentClientSecret,returnURL){try{var _yield$NativeStripeSd7=yield _NativeStripeSdkModule.default.handleNextActionForSetup(setupIntentClientSecret,returnURL!=null?returnURL:null),setupIntent=_yield$NativeStripeSd7.setupIntent,error=_yield$NativeStripeSd7.error;if(error){return{error:error};}return{setupIntent:setupIntent};}catch(error){return{error:(0,_helpers.createError)(error)};}});return function handleNextActionForSetup(_x9,_x0){return _ref7.apply(this,arguments);};}();var confirmSetupIntent=exports.confirmSetupIntent=function(){var _ref8=(0,_asyncToGenerator2.default)(function*(paymentIntentClientSecret,params){var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};try{var _yield$NativeStripeSd8=yield _NativeStripeSdkModule.default.confirmSetupIntent(paymentIntentClientSecret,params,options),setupIntent=_yield$NativeStripeSd8.setupIntent,error=_yield$NativeStripeSd8.error;if(error){return{error:error};}return{setupIntent:setupIntent};}catch(error){return{error:error};}});return function confirmSetupIntent(_x1,_x10){return _ref8.apply(this,arguments);};}();var createTokenForCVCUpdate=exports.createTokenForCVCUpdate=function(){var _ref9=(0,_asyncToGenerator2.default)(function*(cvc){try{var _yield$NativeStripeSd9=yield _NativeStripeSdkModule.default.createTokenForCVCUpdate(cvc),tokenId=_yield$NativeStripeSd9.tokenId,error=_yield$NativeStripeSd9.error;if(error){return{error:error};}return{tokenId:tokenId};}catch(error){return{error:error};}});return function createTokenForCVCUpdate(_x11){return _ref9.apply(this,arguments);};}();var handleURLCallback=exports.handleURLCallback=function(){var _ref0=(0,_asyncToGenerator2.default)(function*(url){var stripeHandled=_reactNative.Platform.OS==='ios'?yield _NativeStripeSdkModule.default.handleURLCallback(url):false;return stripeHandled;});return function handleURLCallback(_x12){return _ref0.apply(this,arguments);};}();var verifyMicrodepositsForPayment=exports.verifyMicrodepositsForPayment=function(){var _ref1=(0,_asyncToGenerator2.default)(function*(clientSecret,params){try{var _ref10=yield _NativeStripeSdkModule.default.verifyMicrodeposits(true,clientSecret,params),paymentIntent=_ref10.paymentIntent,error=_ref10.error;if(error){return{error:error};}return{paymentIntent:paymentIntent};}catch(error){return{error:(0,_helpers.createError)(error)};}});return function verifyMicrodepositsForPayment(_x13,_x14){return _ref1.apply(this,arguments);};}();var verifyMicrodepositsForSetup=exports.verifyMicrodepositsForSetup=function(){var _ref11=(0,_asyncToGenerator2.default)(function*(clientSecret,params){try{var _ref12=yield _NativeStripeSdkModule.default.verifyMicrodeposits(false,clientSecret,params),setupIntent=_ref12.setupIntent,error=_ref12.error;if(error){return{error:error};}return{setupIntent:setupIntent};}catch(error){return{error:(0,_helpers.createError)(error)};}});return function verifyMicrodepositsForSetup(_x15,_x16){return _ref11.apply(this,arguments);};}();var confirmHandlerCallback=null;var orderTrackingCallbackListener=null;var financialConnectionsEventListener=null;var paymentSheetCustomPaymentMethodConfirmCallback=null;var initPaymentSheet=exports.initPaymentSheet=function(){var _ref13=(0,_asyncToGenerator2.default)(function*(params){var _params$intentConfigu,_params$applePay;var result;var confirmHandler=params==null||(_params$intentConfigu=params.intentConfiguration)==null?void 0:_params$intentConfigu.confirmHandler;if(confirmHandler){var _confirmHandlerCallba;(_confirmHandlerCallba=confirmHandlerCallback)==null||_confirmHandlerCallba.remove();confirmHandlerCallback=(0,_events.addListener)('onConfirmHandlerCallback',function(_ref14){var paymentMethod=_ref14.paymentMethod,shouldSavePaymentMethod=_ref14.shouldSavePaymentMethod;confirmHandler(paymentMethod,shouldSavePaymentMethod,_NativeStripeSdkModule.default.intentCreationCallback);});}if(params.customPaymentMethodConfiguration){var customPaymentMethodHandler=params.customPaymentMethodConfiguration.confirmCustomPaymentMethodCallback;if(customPaymentMethodHandler){var _paymentSheetCustomPa;(_paymentSheetCustomPa=paymentSheetCustomPaymentMethodConfirmCallback)==null||_paymentSheetCustomPa.remove();paymentSheetCustomPaymentMethodConfirmCallback=(0,_events.addListener)('onCustomPaymentMethodConfirmHandlerCallback',function(_ref15){var customPaymentMethod=_ref15.customPaymentMethod,billingDetails=_ref15.billingDetails;customPaymentMethodHandler(customPaymentMethod,billingDetails,function(cpmResult){_NativeStripeSdkModule.default.customPaymentMethodResultCallback(cpmResult);});});}}var orderTrackingCallback=params==null||(_params$applePay=params.applePay)==null?void 0:_params$applePay.setOrderTracking;if(orderTrackingCallback){var _orderTrackingCallbac;(_orderTrackingCallbac=orderTrackingCallbackListener)==null||_orderTrackingCallbac.remove();orderTrackingCallbackListener=(0,_events.addListener)('onOrderTrackingCallback',function(){orderTrackingCallback(_NativeStripeSdkModule.default.configureOrderTracking);});}try{if(_reactNative.Platform.OS==='ios'&&!params.returnURL){console.warn(`[@stripe/stripe-react-native] You have not provided the 'returnURL' field to 'initPaymentSheet', so payment methods that require redirects will not be shown in your iOS Payment Sheet. Visit https://stripe.com/docs/payments/accept-a-payment?platform=react-native&ui=payment-sheet#react-native-set-up-return-url to learn more.`);}result=yield _NativeStripeSdkModule.default.initPaymentSheet(params);if(result.error){return{error:result.error};}return{paymentOption:result.paymentOption};}catch(error){return{error:error};}});return function initPaymentSheet(_x17){return _ref13.apply(this,arguments);};}();var presentPaymentSheet=exports.presentPaymentSheet=function(){var _ref16=(0,_asyncToGenerator2.default)(function*(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};try{var _yield$NativeStripeSd0=yield _NativeStripeSdkModule.default.presentPaymentSheet(options),paymentOption=_yield$NativeStripeSd0.paymentOption,didCancel=_yield$NativeStripeSd0.didCancel,error=_yield$NativeStripeSd0.error;if(error){return{error:error};}return{paymentOption:paymentOption,didCancel:didCancel};}catch(error){return{error:error};}});return function presentPaymentSheet(){return _ref16.apply(this,arguments);};}();var confirmPaymentSheetPayment=exports.confirmPaymentSheetPayment=function(){var _ref17=(0,_asyncToGenerator2.default)(function*(){try{var _yield$NativeStripeSd1=yield _NativeStripeSdkModule.default.confirmPaymentSheetPayment(),error=_yield$NativeStripeSd1.error;if(error){return{error:error};}return{};}catch(error){return{error:error};}});return function confirmPaymentSheetPayment(){return _ref17.apply(this,arguments);};}();var resetPaymentSheetCustomer=exports.resetPaymentSheetCustomer=function(){var _ref18=(0,_asyncToGenerator2.default)(function*(){return yield _NativeStripeSdkModule.default.resetPaymentSheetCustomer();});return function resetPaymentSheetCustomer(){return _ref18.apply(this,arguments);};}();var collectBankAccountForPayment=exports.collectBankAccountForPayment=function(){var _ref19=(0,_asyncToGenerator2.default)(function*(clientSecret,params){var _financialConnections;(_financialConnections=financialConnectionsEventListener)==null||_financialConnections.remove();if(params.onEvent){financialConnectionsEventListener=(0,_events.addListener)('onFinancialConnectionsEvent',params.onEvent);}try{var _financialConnections2;var _ref20=yield _NativeStripeSdkModule.default.collectBankAccount(true,clientSecret,params),paymentIntent=_ref20.paymentIntent,error=_ref20.error;(_financialConnections2=financialConnectionsEventListener)==null||_financialConnections2.remove();if(error){return{error:error};}return{paymentIntent:paymentIntent};}catch(error){var _financialConnections3;(_financialConnections3=financialConnectionsEventListener)==null||_financialConnections3.remove();return{error:(0,_helpers.createError)(error)};}});return function collectBankAccountForPayment(_x18,_x19){return _ref19.apply(this,arguments);};}();var collectBankAccountForSetup=exports.collectBankAccountForSetup=function(){var _ref21=(0,_asyncToGenerator2.default)(function*(clientSecret,params){var _financialConnections4;(_financialConnections4=financialConnectionsEventListener)==null||_financialConnections4.remove();if(params.onEvent){financialConnectionsEventListener=(0,_events.addListener)('onFinancialConnectionsEvent',params.onEvent);}try{var _financialConnections5;var _ref22=yield _NativeStripeSdkModule.default.collectBankAccount(false,clientSecret,params),setupIntent=_ref22.setupIntent,error=_ref22.error;(_financialConnections5=financialConnectionsEventListener)==null||_financialConnections5.remove();if(error){return{error:error};}return{setupIntent:setupIntent};}catch(error){var _financialConnections6;(_financialConnections6=financialConnectionsEventListener)==null||_financialConnections6.remove();return{error:(0,_helpers.createError)(error)};}});return function collectBankAccountForSetup(_x20,_x21){return _ref21.apply(this,arguments);};}();var collectBankAccountToken=exports.collectBankAccountToken=function(){var _ref23=(0,_asyncToGenerator2.default)(function*(clientSecret){var _financialConnections7;var params=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};(_financialConnections7=financialConnectionsEventListener)==null||_financialConnections7.remove();if(params.onEvent){financialConnectionsEventListener=(0,_events.addListener)('onFinancialConnectionsEvent',params.onEvent);}try{var _financialConnections8;var _yield$NativeStripeSd10=yield _NativeStripeSdkModule.default.collectBankAccountToken(clientSecret,params),session=_yield$NativeStripeSd10.session,token=_yield$NativeStripeSd10.token,error=_yield$NativeStripeSd10.error;(_financialConnections8=financialConnectionsEventListener)==null||_financialConnections8.remove();if(error){return{error:error};}return{session:session,token:token};}catch(error){var _financialConnections9;(_financialConnections9=financialConnectionsEventListener)==null||_financialConnections9.remove();return{error:(0,_helpers.createError)(error)};}});return function collectBankAccountToken(_x22){return _ref23.apply(this,arguments);};}();var collectFinancialConnectionsAccounts=exports.collectFinancialConnectionsAccounts=function(){var _ref24=(0,_asyncToGenerator2.default)(function*(clientSecret){var _financialConnections0;var params=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};(_financialConnections0=financialConnectionsEventListener)==null||_financialConnections0.remove();if(params.onEvent){financialConnectionsEventListener=(0,_events.addListener)('onFinancialConnectionsEvent',params.onEvent);}try{var _financialConnections1;var _yield$NativeStripeSd11=yield _NativeStripeSdkModule.default.collectFinancialConnectionsAccounts(clientSecret,params),session=_yield$NativeStripeSd11.session,error=_yield$NativeStripeSd11.error;(_financialConnections1=financialConnectionsEventListener)==null||_financialConnections1.remove();if(error){return{error:error};}return{session:session};}catch(error){var _financialConnections10;(_financialConnections10=financialConnectionsEventListener)==null||_financialConnections10.remove();return{error:(0,_helpers.createError)(error)};}});return function collectFinancialConnectionsAccounts(_x23){return _ref24.apply(this,arguments);};}();var canAddCardToWallet=exports.canAddCardToWallet=function(){var _ref25=(0,_asyncToGenerator2.default)(function*(params){try{var _yield$NativeStripeSd12=yield _NativeStripeSdkModule.default.canAddCardToWallet(params),canAddCard=_yield$NativeStripeSd12.canAddCard,details=_yield$NativeStripeSd12.details,error=_yield$NativeStripeSd12.error;if(error){return{error:error};}return{canAddCard:canAddCard,details:details};}catch(error){return{error:(0,_helpers.createError)(error)};}});return function canAddCardToWallet(_x24){return _ref25.apply(this,arguments);};}();var isCardInWallet=exports.isCardInWallet=function(){var _ref26=(0,_asyncToGenerator2.default)(function*(params){try{var _yield$NativeStripeSd13=yield _NativeStripeSdkModule.default.isCardInWallet(params),isInWallet=_yield$NativeStripeSd13.isInWallet,token=_yield$NativeStripeSd13.token,error=_yield$NativeStripeSd13.error;if(error){return{error:error};}return{isInWallet:isInWallet,token:token};}catch(error){return{error:(0,_helpers.createError)(error)};}});return function isCardInWallet(_x25){return _ref26.apply(this,arguments);};}();var Constants=exports.Constants=_NativeStripeSdkModule.default.getConstants();var isPlatformPaySupported=exports.isPlatformPaySupported=function(){var _ref27=(0,_asyncToGenerator2.default)(function*(params){return yield _NativeStripeSdkModule.default.isPlatformPaySupported(params!=null?params:{});});return function isPlatformPaySupported(_x26){return _ref27.apply(this,arguments);};}();var confirmPlatformPaySetupIntent=exports.confirmPlatformPaySetupIntent=function(){var _ref28=(0,_asyncToGenerator2.default)(function*(clientSecret,params){try{var _ref29=yield _NativeStripeSdkModule.default.confirmPlatformPay(clientSecret,params,false),error=_ref29.error,setupIntent=_ref29.setupIntent;if(error){return{error:error};}return{setupIntent:setupIntent};}catch(error){return{error:error};}});return function confirmPlatformPaySetupIntent(_x27,_x28){return _ref28.apply(this,arguments);};}();var confirmPlatformPayPayment=exports.confirmPlatformPayPayment=function(){var _ref30=(0,_asyncToGenerator2.default)(function*(clientSecret,params){try{var _ref31=yield _NativeStripeSdkModule.default.confirmPlatformPay(clientSecret,params,true),error=_ref31.error,paymentIntent=_ref31.paymentIntent;if(error){return{error:error};}return{paymentIntent:paymentIntent};}catch(error){return{error:error};}});return function confirmPlatformPayPayment(_x29,_x30){return _ref30.apply(this,arguments);};}();var dismissPlatformPay=exports.dismissPlatformPay=function(){var _ref32=(0,_asyncToGenerator2.default)(function*(){if(_reactNative.Platform.OS!=='ios'){return false;}try{var didDismiss=yield _NativeStripeSdkModule.default.dismissPlatformPay();return didDismiss;}catch(error){return false;}});return function dismissPlatformPay(){return _ref32.apply(this,arguments);};}();var createPlatformPayPaymentMethod=exports.createPlatformPayPaymentMethod=function(){var _ref33=(0,_asyncToGenerator2.default)(function*(params){try{var _ref34=yield _NativeStripeSdkModule.default.createPlatformPayPaymentMethod(params,false),error=_ref34.error,paymentMethod=_ref34.paymentMethod,shippingContact=_ref34.shippingContact;if(error){return{error:error};}return{paymentMethod:paymentMethod,shippingContact:shippingContact};}catch(error){return{error:error};}});return function createPlatformPayPaymentMethod(_x31){return _ref33.apply(this,arguments);};}();var createPlatformPayToken=exports.createPlatformPayToken=function(){var _ref35=(0,_asyncToGenerator2.default)(function*(params){try{var _ref36=yield _NativeStripeSdkModule.default.createPlatformPayPaymentMethod(params,true),error=_ref36.error,token=_ref36.token,shippingContact=_ref36.shippingContact;if(error){return{error:error};}return{token:token,shippingContact:shippingContact};}catch(error){return{error:error};}});return function createPlatformPayToken(_x32){return _ref35.apply(this,arguments);};}();var updatePlatformPaySheet=exports.updatePlatformPaySheet=function(){var _ref37=(0,_asyncToGenerator2.default)(function*(params){if(_reactNative.Platform.OS!=='ios'){return{};}try{yield _NativeStripeSdkModule.default.updatePlatformPaySheet(params.applePay.cartItems,params.applePay.shippingMethods,params.applePay.errors);return{};}catch(error){return{error:error};}});return function updatePlatformPaySheet(_x33){return _ref37.apply(this,arguments);};}();var openPlatformPaySetup=exports.openPlatformPaySetup=function(){var _ref38=(0,_asyncToGenerator2.default)(function*(){if(_reactNative.Platform.OS==='ios'){yield _NativeStripeSdkModule.default.openApplePaySetup();}});return function openPlatformPaySetup(){return _ref38.apply(this,arguments);};}();
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.verifyMicrodepositsForSetup=exports.verifyMicrodepositsForPayment=exports.updatePlatformPaySheet=exports.setFinancialConnectionsForceNativeFlow=exports.retrieveSetupIntent=exports.retrievePaymentIntent=exports.resetPaymentSheetCustomer=exports.presentPaymentSheet=exports.openPlatformPaySetup=exports.isPlatformPaySupported=exports.isCardInWallet=exports.initPaymentSheet=exports.handleURLCallback=exports.handleNextActionForSetup=exports.handleNextAction=exports.dismissPlatformPay=exports.createTokenForCVCUpdate=exports.createToken=exports.createPlatformPayToken=exports.createPlatformPayPaymentMethod=exports.createPaymentMethod=exports.confirmSetupIntent=exports.confirmPlatformPaySetupIntent=exports.confirmPlatformPayPayment=exports.confirmPaymentSheetPayment=exports.confirmPayment=exports.collectFinancialConnectionsAccounts=exports.collectBankAccountToken=exports.collectBankAccountForSetup=exports.collectBankAccountForPayment=exports.canAddCardToWallet=exports.Constants=void 0;var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _helpers=require("./helpers");var _Errors=require("./types/Errors");var _NativeStripeSdkModule=_interopRequireDefault(require("./specs/NativeStripeSdkModule"));var _reactNative=require("react-native");var _events=require("./events");var createPaymentMethod=exports.createPaymentMethod=function(){var _ref=(0,_asyncToGenerator2.default)(function*(params){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};try{var _yield$NativeStripeSd=yield _NativeStripeSdkModule.default.createPaymentMethod(params,options),paymentMethod=_yield$NativeStripeSd.paymentMethod,error=_yield$NativeStripeSd.error;if(error){return{error:error};}return{paymentMethod:paymentMethod};}catch(error){return{error:error};}});return function createPaymentMethod(_x){return _ref.apply(this,arguments);};}();var createToken=exports.createToken=function(){var _ref2=(0,_asyncToGenerator2.default)(function*(params){var _params$country;if(params.type==='BankAccount'&&((_params$country=params.country)==null?void 0:_params$country.toLowerCase())==='us'&&!params.routingNumber){return{error:_Errors.MissingRoutingNumber};}try{var _yield$NativeStripeSd2=yield _NativeStripeSdkModule.default.createToken(params),token=_yield$NativeStripeSd2.token,error=_yield$NativeStripeSd2.error;if(error){return{error:error};}return{token:token};}catch(error){return{error:error};}});return function createToken(_x2){return _ref2.apply(this,arguments);};}();var retrievePaymentIntent=exports.retrievePaymentIntent=function(){var _ref3=(0,_asyncToGenerator2.default)(function*(clientSecret){try{var _yield$NativeStripeSd3=yield _NativeStripeSdkModule.default.retrievePaymentIntent(clientSecret),paymentIntent=_yield$NativeStripeSd3.paymentIntent,error=_yield$NativeStripeSd3.error;if(error){return{error:error};}return{paymentIntent:paymentIntent};}catch(error){return{error:error};}});return function retrievePaymentIntent(_x3){return _ref3.apply(this,arguments);};}();var retrieveSetupIntent=exports.retrieveSetupIntent=function(){var _ref4=(0,_asyncToGenerator2.default)(function*(clientSecret){try{var _yield$NativeStripeSd4=yield _NativeStripeSdkModule.default.retrieveSetupIntent(clientSecret),setupIntent=_yield$NativeStripeSd4.setupIntent,error=_yield$NativeStripeSd4.error;if(error){return{error:error};}return{setupIntent:setupIntent};}catch(error){return{error:error};}});return function retrieveSetupIntent(_x4){return _ref4.apply(this,arguments);};}();var confirmPayment=exports.confirmPayment=function(){var _ref5=(0,_asyncToGenerator2.default)(function*(paymentIntentClientSecret,params){var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};try{var _yield$NativeStripeSd5=yield _NativeStripeSdkModule.default.confirmPayment(paymentIntentClientSecret,params,options),paymentIntent=_yield$NativeStripeSd5.paymentIntent,error=_yield$NativeStripeSd5.error;if(error){return{error:error};}return{paymentIntent:paymentIntent};}catch(error){return{error:error};}});return function confirmPayment(_x5,_x6){return _ref5.apply(this,arguments);};}();var handleNextAction=exports.handleNextAction=function(){var _ref6=(0,_asyncToGenerator2.default)(function*(paymentIntentClientSecret,returnURL){try{var _yield$NativeStripeSd6=yield _NativeStripeSdkModule.default.handleNextAction(paymentIntentClientSecret,returnURL!=null?returnURL:null),paymentIntent=_yield$NativeStripeSd6.paymentIntent,error=_yield$NativeStripeSd6.error;if(error){return{error:error};}return{paymentIntent:paymentIntent};}catch(error){return{error:(0,_helpers.createError)(error)};}});return function handleNextAction(_x7,_x8){return _ref6.apply(this,arguments);};}();var handleNextActionForSetup=exports.handleNextActionForSetup=function(){var _ref7=(0,_asyncToGenerator2.default)(function*(setupIntentClientSecret,returnURL){try{var _yield$NativeStripeSd7=yield _NativeStripeSdkModule.default.handleNextActionForSetup(setupIntentClientSecret,returnURL!=null?returnURL:null),setupIntent=_yield$NativeStripeSd7.setupIntent,error=_yield$NativeStripeSd7.error;if(error){return{error:error};}return{setupIntent:setupIntent};}catch(error){return{error:(0,_helpers.createError)(error)};}});return function handleNextActionForSetup(_x9,_x0){return _ref7.apply(this,arguments);};}();var confirmSetupIntent=exports.confirmSetupIntent=function(){var _ref8=(0,_asyncToGenerator2.default)(function*(paymentIntentClientSecret,params){var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};try{var _yield$NativeStripeSd8=yield _NativeStripeSdkModule.default.confirmSetupIntent(paymentIntentClientSecret,params,options),setupIntent=_yield$NativeStripeSd8.setupIntent,error=_yield$NativeStripeSd8.error;if(error){return{error:error};}return{setupIntent:setupIntent};}catch(error){return{error:error};}});return function confirmSetupIntent(_x1,_x10){return _ref8.apply(this,arguments);};}();var createTokenForCVCUpdate=exports.createTokenForCVCUpdate=function(){var _ref9=(0,_asyncToGenerator2.default)(function*(cvc){try{var _yield$NativeStripeSd9=yield _NativeStripeSdkModule.default.createTokenForCVCUpdate(cvc),tokenId=_yield$NativeStripeSd9.tokenId,error=_yield$NativeStripeSd9.error;if(error){return{error:error};}return{tokenId:tokenId};}catch(error){return{error:error};}});return function createTokenForCVCUpdate(_x11){return _ref9.apply(this,arguments);};}();var handleURLCallback=exports.handleURLCallback=function(){var _ref0=(0,_asyncToGenerator2.default)(function*(url){var stripeHandled=_reactNative.Platform.OS==='ios'?yield _NativeStripeSdkModule.default.handleURLCallback(url):false;return stripeHandled;});return function handleURLCallback(_x12){return _ref0.apply(this,arguments);};}();var verifyMicrodepositsForPayment=exports.verifyMicrodepositsForPayment=function(){var _ref1=(0,_asyncToGenerator2.default)(function*(clientSecret,params){try{var _ref10=yield _NativeStripeSdkModule.default.verifyMicrodeposits(true,clientSecret,params),paymentIntent=_ref10.paymentIntent,error=_ref10.error;if(error){return{error:error};}return{paymentIntent:paymentIntent};}catch(error){return{error:(0,_helpers.createError)(error)};}});return function verifyMicrodepositsForPayment(_x13,_x14){return _ref1.apply(this,arguments);};}();var verifyMicrodepositsForSetup=exports.verifyMicrodepositsForSetup=function(){var _ref11=(0,_asyncToGenerator2.default)(function*(clientSecret,params){try{var _ref12=yield _NativeStripeSdkModule.default.verifyMicrodeposits(false,clientSecret,params),setupIntent=_ref12.setupIntent,error=_ref12.error;if(error){return{error:error};}return{setupIntent:setupIntent};}catch(error){return{error:(0,_helpers.createError)(error)};}});return function verifyMicrodepositsForSetup(_x15,_x16){return _ref11.apply(this,arguments);};}();var confirmHandlerCallback=null;var orderTrackingCallbackListener=null;var financialConnectionsEventListener=null;var paymentSheetCustomPaymentMethodConfirmCallback=null;var initPaymentSheet=exports.initPaymentSheet=function(){var _ref13=(0,_asyncToGenerator2.default)(function*(params){var _params$intentConfigu,_params$applePay;var result;var confirmHandler=params==null||(_params$intentConfigu=params.intentConfiguration)==null?void 0:_params$intentConfigu.confirmHandler;if(confirmHandler){var _confirmHandlerCallba;(_confirmHandlerCallba=confirmHandlerCallback)==null||_confirmHandlerCallba.remove();confirmHandlerCallback=(0,_events.addListener)('onConfirmHandlerCallback',function(_ref14){var paymentMethod=_ref14.paymentMethod,shouldSavePaymentMethod=_ref14.shouldSavePaymentMethod;confirmHandler(paymentMethod,shouldSavePaymentMethod,_NativeStripeSdkModule.default.intentCreationCallback);});}if(params.customPaymentMethodConfiguration){var customPaymentMethodHandler=params.customPaymentMethodConfiguration.confirmCustomPaymentMethodCallback;if(customPaymentMethodHandler){var _paymentSheetCustomPa;(_paymentSheetCustomPa=paymentSheetCustomPaymentMethodConfirmCallback)==null||_paymentSheetCustomPa.remove();paymentSheetCustomPaymentMethodConfirmCallback=(0,_events.addListener)('onCustomPaymentMethodConfirmHandlerCallback',function(_ref15){var customPaymentMethod=_ref15.customPaymentMethod,billingDetails=_ref15.billingDetails;customPaymentMethodHandler(customPaymentMethod,billingDetails,function(cpmResult){_NativeStripeSdkModule.default.customPaymentMethodResultCallback(cpmResult);});});}}var orderTrackingCallback=params==null||(_params$applePay=params.applePay)==null?void 0:_params$applePay.setOrderTracking;if(orderTrackingCallback){var _orderTrackingCallbac;(_orderTrackingCallbac=orderTrackingCallbackListener)==null||_orderTrackingCallbac.remove();orderTrackingCallbackListener=(0,_events.addListener)('onOrderTrackingCallback',function(){orderTrackingCallback(_NativeStripeSdkModule.default.configureOrderTracking);});}try{if(_reactNative.Platform.OS==='ios'&&!params.returnURL){console.warn(`[@stripe/stripe-react-native] You have not provided the 'returnURL' field to 'initPaymentSheet', so payment methods that require redirects will not be shown in your iOS Payment Sheet. Visit https://stripe.com/docs/payments/accept-a-payment?platform=react-native&ui=payment-sheet#react-native-set-up-return-url to learn more.`);}result=yield _NativeStripeSdkModule.default.initPaymentSheet(params);if(result.error){return{error:result.error};}return{paymentOption:result.paymentOption};}catch(error){return{error:error};}});return function initPaymentSheet(_x17){return _ref13.apply(this,arguments);};}();var presentPaymentSheet=exports.presentPaymentSheet=function(){var _ref16=(0,_asyncToGenerator2.default)(function*(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};try{var _yield$NativeStripeSd0=yield _NativeStripeSdkModule.default.presentPaymentSheet(options),paymentOption=_yield$NativeStripeSd0.paymentOption,didCancel=_yield$NativeStripeSd0.didCancel,error=_yield$NativeStripeSd0.error;if(error){return{error:error};}return{paymentOption:paymentOption,didCancel:didCancel};}catch(error){return{error:error};}});return function presentPaymentSheet(){return _ref16.apply(this,arguments);};}();var confirmPaymentSheetPayment=exports.confirmPaymentSheetPayment=function(){var _ref17=(0,_asyncToGenerator2.default)(function*(){try{var _yield$NativeStripeSd1=yield _NativeStripeSdkModule.default.confirmPaymentSheetPayment(),error=_yield$NativeStripeSd1.error;if(error){return{error:error};}return{};}catch(error){return{error:error};}});return function confirmPaymentSheetPayment(){return _ref17.apply(this,arguments);};}();var resetPaymentSheetCustomer=exports.resetPaymentSheetCustomer=function(){var _ref18=(0,_asyncToGenerator2.default)(function*(){return yield _NativeStripeSdkModule.default.resetPaymentSheetCustomer();});return function resetPaymentSheetCustomer(){return _ref18.apply(this,arguments);};}();var collectBankAccountForPayment=exports.collectBankAccountForPayment=function(){var _ref19=(0,_asyncToGenerator2.default)(function*(clientSecret,params){var _financialConnections;(_financialConnections=financialConnectionsEventListener)==null||_financialConnections.remove();if(params.onEvent){financialConnectionsEventListener=(0,_events.addListener)('onFinancialConnectionsEvent',params.onEvent);}try{var _financialConnections2;var _ref20=yield _NativeStripeSdkModule.default.collectBankAccount(true,clientSecret,params),paymentIntent=_ref20.paymentIntent,error=_ref20.error;(_financialConnections2=financialConnectionsEventListener)==null||_financialConnections2.remove();if(error){return{error:error};}return{paymentIntent:paymentIntent};}catch(error){var _financialConnections3;(_financialConnections3=financialConnectionsEventListener)==null||_financialConnections3.remove();return{error:(0,_helpers.createError)(error)};}});return function collectBankAccountForPayment(_x18,_x19){return _ref19.apply(this,arguments);};}();var collectBankAccountForSetup=exports.collectBankAccountForSetup=function(){var _ref21=(0,_asyncToGenerator2.default)(function*(clientSecret,params){var _financialConnections4;(_financialConnections4=financialConnectionsEventListener)==null||_financialConnections4.remove();if(params.onEvent){financialConnectionsEventListener=(0,_events.addListener)('onFinancialConnectionsEvent',params.onEvent);}try{var _financialConnections5;var _ref22=yield _NativeStripeSdkModule.default.collectBankAccount(false,clientSecret,params),setupIntent=_ref22.setupIntent,error=_ref22.error;(_financialConnections5=financialConnectionsEventListener)==null||_financialConnections5.remove();if(error){return{error:error};}return{setupIntent:setupIntent};}catch(error){var _financialConnections6;(_financialConnections6=financialConnectionsEventListener)==null||_financialConnections6.remove();return{error:(0,_helpers.createError)(error)};}});return function collectBankAccountForSetup(_x20,_x21){return _ref21.apply(this,arguments);};}();var collectBankAccountToken=exports.collectBankAccountToken=function(){var _ref23=(0,_asyncToGenerator2.default)(function*(clientSecret){var _financialConnections7;var params=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};(_financialConnections7=financialConnectionsEventListener)==null||_financialConnections7.remove();if(params.onEvent){financialConnectionsEventListener=(0,_events.addListener)('onFinancialConnectionsEvent',params.onEvent);}try{var _financialConnections8;var _yield$NativeStripeSd10=yield _NativeStripeSdkModule.default.collectBankAccountToken(clientSecret,params),session=_yield$NativeStripeSd10.session,token=_yield$NativeStripeSd10.token,error=_yield$NativeStripeSd10.error;(_financialConnections8=financialConnectionsEventListener)==null||_financialConnections8.remove();if(error){return{error:error};}return{session:session,token:token};}catch(error){var _financialConnections9;(_financialConnections9=financialConnectionsEventListener)==null||_financialConnections9.remove();return{error:(0,_helpers.createError)(error)};}});return function collectBankAccountToken(_x22){return _ref23.apply(this,arguments);};}();var collectFinancialConnectionsAccounts=exports.collectFinancialConnectionsAccounts=function(){var _ref24=(0,_asyncToGenerator2.default)(function*(clientSecret){var _financialConnections0;var params=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};(_financialConnections0=financialConnectionsEventListener)==null||_financialConnections0.remove();if(params.onEvent){financialConnectionsEventListener=(0,_events.addListener)('onFinancialConnectionsEvent',params.onEvent);}try{var _financialConnections1;var _yield$NativeStripeSd11=yield _NativeStripeSdkModule.default.collectFinancialConnectionsAccounts(clientSecret,params),session=_yield$NativeStripeSd11.session,error=_yield$NativeStripeSd11.error;(_financialConnections1=financialConnectionsEventListener)==null||_financialConnections1.remove();if(error){return{error:error};}return{session:session};}catch(error){var _financialConnections10;(_financialConnections10=financialConnectionsEventListener)==null||_financialConnections10.remove();return{error:(0,_helpers.createError)(error)};}});return function collectFinancialConnectionsAccounts(_x23){return _ref24.apply(this,arguments);};}();var canAddCardToWallet=exports.canAddCardToWallet=function(){var _ref25=(0,_asyncToGenerator2.default)(function*(params){try{var _yield$NativeStripeSd12=yield _NativeStripeSdkModule.default.canAddCardToWallet(params),canAddCard=_yield$NativeStripeSd12.canAddCard,details=_yield$NativeStripeSd12.details,error=_yield$NativeStripeSd12.error;if(error){return{error:error};}return{canAddCard:canAddCard,details:details};}catch(error){return{error:(0,_helpers.createError)(error)};}});return function canAddCardToWallet(_x24){return _ref25.apply(this,arguments);};}();var isCardInWallet=exports.isCardInWallet=function(){var _ref26=(0,_asyncToGenerator2.default)(function*(params){try{var _yield$NativeStripeSd13=yield _NativeStripeSdkModule.default.isCardInWallet(params),isInWallet=_yield$NativeStripeSd13.isInWallet,token=_yield$NativeStripeSd13.token,error=_yield$NativeStripeSd13.error;if(error){return{error:error};}return{isInWallet:isInWallet,token:token};}catch(error){return{error:(0,_helpers.createError)(error)};}});return function isCardInWallet(_x25){return _ref26.apply(this,arguments);};}();var Constants=exports.Constants=_NativeStripeSdkModule.default.getConstants();var isPlatformPaySupported=exports.isPlatformPaySupported=function(){var _ref27=(0,_asyncToGenerator2.default)(function*(params){return yield _NativeStripeSdkModule.default.isPlatformPaySupported(params!=null?params:{});});return function isPlatformPaySupported(_x26){return _ref27.apply(this,arguments);};}();var confirmPlatformPaySetupIntent=exports.confirmPlatformPaySetupIntent=function(){var _ref28=(0,_asyncToGenerator2.default)(function*(clientSecret,params){try{var _ref29=yield _NativeStripeSdkModule.default.confirmPlatformPay(clientSecret,params,false),error=_ref29.error,setupIntent=_ref29.setupIntent;if(error){return{error:error};}return{setupIntent:setupIntent};}catch(error){return{error:error};}});return function confirmPlatformPaySetupIntent(_x27,_x28){return _ref28.apply(this,arguments);};}();var confirmPlatformPayPayment=exports.confirmPlatformPayPayment=function(){var _ref30=(0,_asyncToGenerator2.default)(function*(clientSecret,params){try{var _ref31=yield _NativeStripeSdkModule.default.confirmPlatformPay(clientSecret,params,true),error=_ref31.error,paymentIntent=_ref31.paymentIntent;if(error){return{error:error};}return{paymentIntent:paymentIntent};}catch(error){return{error:error};}});return function confirmPlatformPayPayment(_x29,_x30){return _ref30.apply(this,arguments);};}();var dismissPlatformPay=exports.dismissPlatformPay=function(){var _ref32=(0,_asyncToGenerator2.default)(function*(){if(_reactNative.Platform.OS!=='ios'){return false;}try{var didDismiss=yield _NativeStripeSdkModule.default.dismissPlatformPay();return didDismiss;}catch(error){return false;}});return function dismissPlatformPay(){return _ref32.apply(this,arguments);};}();var createPlatformPayPaymentMethod=exports.createPlatformPayPaymentMethod=function(){var _ref33=(0,_asyncToGenerator2.default)(function*(params){try{var _ref34=yield _NativeStripeSdkModule.default.createPlatformPayPaymentMethod(params,false),error=_ref34.error,paymentMethod=_ref34.paymentMethod,shippingContact=_ref34.shippingContact;if(error){return{error:error};}return{paymentMethod:paymentMethod,shippingContact:shippingContact};}catch(error){return{error:error};}});return function createPlatformPayPaymentMethod(_x31){return _ref33.apply(this,arguments);};}();var createPlatformPayToken=exports.createPlatformPayToken=function(){var _ref35=(0,_asyncToGenerator2.default)(function*(params){try{var _ref36=yield _NativeStripeSdkModule.default.createPlatformPayPaymentMethod(params,true),error=_ref36.error,token=_ref36.token,shippingContact=_ref36.shippingContact;if(error){return{error:error};}return{token:token,shippingContact:shippingContact};}catch(error){return{error:error};}});return function createPlatformPayToken(_x32){return _ref35.apply(this,arguments);};}();var updatePlatformPaySheet=exports.updatePlatformPaySheet=function(){var _ref37=(0,_asyncToGenerator2.default)(function*(params){if(_reactNative.Platform.OS!=='ios'){return{};}try{yield _NativeStripeSdkModule.default.updatePlatformPaySheet(params.applePay.cartItems,params.applePay.shippingMethods,params.applePay.errors);return{};}catch(error){return{error:error};}});return function updatePlatformPaySheet(_x33){return _ref37.apply(this,arguments);};}();var openPlatformPaySetup=exports.openPlatformPaySetup=function(){var _ref38=(0,_asyncToGenerator2.default)(function*(){if(_reactNative.Platform.OS==='ios'){yield _NativeStripeSdkModule.default.openApplePaySetup();}});return function openPlatformPaySetup(){return _ref38.apply(this,arguments);};}();var setFinancialConnectionsForceNativeFlow=exports.setFinancialConnectionsForceNativeFlow=function(){var _ref39=(0,_asyncToGenerator2.default)(function*(enabled){if(_reactNative.Platform.OS!=='ios')return;try{yield _NativeStripeSdkModule.default.setFinancialConnectionsForceNativeFlow(enabled);}catch(_){}});return function setFinancialConnectionsForceNativeFlow(_x34){return _ref39.apply(this,arguments);};}();
|
|
2
2
|
//# sourceMappingURL=functions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_helpers","require","_Errors","_NativeStripeSdkModule","_interopRequireDefault","_reactNative","_events","createPaymentMethod","exports","_ref","_asyncToGenerator2","default","params","options","arguments","length","undefined","_yield$NativeStripeSd","NativeStripeSdk","paymentMethod","error","_x","apply","createToken","_ref2","_params$country","type","country","toLowerCase","routingNumber","MissingRoutingNumber","_yield$NativeStripeSd2","token","_x2","retrievePaymentIntent","_ref3","clientSecret","_yield$NativeStripeSd3","paymentIntent","_x3","retrieveSetupIntent","_ref4","_yield$NativeStripeSd4","setupIntent","_x4","confirmPayment","_ref5","paymentIntentClientSecret","_yield$NativeStripeSd5","_x5","_x6","handleNextAction","_ref6","returnURL","_yield$NativeStripeSd6","createError","_x7","_x8","handleNextActionForSetup","_ref7","setupIntentClientSecret","_yield$NativeStripeSd7","_x9","_x0","confirmSetupIntent","_ref8","_yield$NativeStripeSd8","_x1","_x10","createTokenForCVCUpdate","_ref9","cvc","_yield$NativeStripeSd9","tokenId","_x11","handleURLCallback","_ref0","url","stripeHandled","Platform","OS","_x12","verifyMicrodepositsForPayment","_ref1","_ref10","verifyMicrodeposits","_x13","_x14","verifyMicrodepositsForSetup","_ref11","_ref12","_x15","_x16","confirmHandlerCallback","orderTrackingCallbackListener","financialConnectionsEventListener","paymentSheetCustomPaymentMethodConfirmCallback","initPaymentSheet","_ref13","_params$intentConfigu","_params$applePay","result","confirmHandler","intentConfiguration","_confirmHandlerCallba","remove","addListener","_ref14","shouldSavePaymentMethod","intentCreationCallback","customPaymentMethodConfiguration","customPaymentMethodHandler","confirmCustomPaymentMethodCallback","_paymentSheetCustomPa","_ref15","customPaymentMethod","billingDetails","cpmResult","customPaymentMethodResultCallback","orderTrackingCallback","applePay","setOrderTracking","_orderTrackingCallbac","configureOrderTracking","console","warn","paymentOption","_x17","presentPaymentSheet","_ref16","_yield$NativeStripeSd0","didCancel","confirmPaymentSheetPayment","_ref17","_yield$NativeStripeSd1","resetPaymentSheetCustomer","_ref18","collectBankAccountForPayment","_ref19","_financialConnections","onEvent","_financialConnections2","_ref20","collectBankAccount","_financialConnections3","_x18","_x19","collectBankAccountForSetup","_ref21","_financialConnections4","_financialConnections5","_ref22","_financialConnections6","_x20","_x21","collectBankAccountToken","_ref23","_financialConnections7","_financialConnections8","_yield$NativeStripeSd10","session","_financialConnections9","_x22","collectFinancialConnectionsAccounts","_ref24","_financialConnections0","_financialConnections1","_yield$NativeStripeSd11","_financialConnections10","_x23","canAddCardToWallet","_ref25","_yield$NativeStripeSd12","canAddCard","details","_x24","isCardInWallet","_ref26","_yield$NativeStripeSd13","isInWallet","_x25","Constants","getConstants","isPlatformPaySupported","_ref27","_x26","confirmPlatformPaySetupIntent","_ref28","_ref29","confirmPlatformPay","_x27","_x28","confirmPlatformPayPayment","_ref30","_ref31","_x29","_x30","dismissPlatformPay","_ref32","didDismiss","createPlatformPayPaymentMethod","_ref33","_ref34","shippingContact","_x31","createPlatformPayToken","_ref35","_ref36","_x32","updatePlatformPaySheet","_ref37","cartItems","shippingMethods","errors","_x33","openPlatformPaySetup","_ref38","openApplePaySetup"],"sourceRoot":"../../src","sources":["functions.ts"],"mappings":"qqCAAA,IAAAA,QAAA,CAAAC,OAAA,cACA,IAAAC,OAAA,CAAAD,OAAA,mBACA,IAAAE,sBAAA,CAAAC,sBAAA,CAAAH,OAAA,mCAgCA,IAAAI,YAAA,CAAAJ,OAAA,iBAGA,IAAAK,OAAA,CAAAL,OAAA,aAEO,GAAM,CAAAM,mBAAmB,CAAAC,OAAA,CAAAD,mBAAA,gBAAAE,IAAA,IAAAC,kBAAA,CAAAC,OAAA,EAAG,UACjCC,MAAkC,CAEK,IADvC,CAAAC,OAAoC,CAAAC,SAAA,CAAAC,MAAA,IAAAD,SAAA,MAAAE,SAAA,CAAAF,SAAA,IAAG,CAAC,CAAC,CAEzC,GAAI,CACF,IAAAG,qBAAA,MAAuC,CAAAC,8BAAe,CAACX,mBAAmB,CACxEK,MAAM,CACNC,OACF,CAAC,CAHOM,aAAa,CAAAF,qBAAA,CAAbE,aAAa,CAAEC,KAAK,CAAAH,qBAAA,CAALG,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,MAAAR,SAAA,OAuBlC,CAWM,GAAM,CAAAmM,sBAAsB,CAAAzM,OAAA,CAAAyM,sBAAA,gBAAAC,MAAA,IAAAxM,kBAAA,CAAAC,OAAA,EAAG,UAAOC,MAM5C,CAEK,CACJ,GAAImE,qBAAQ,CAACC,EAAE,GAAK,KAAK,CAAE,CACzB,MAAO,CAAC,CAAC,CACX,CAEA,GAAI,CACF,KAAM,CAAA9D,8BAAe,CAAC+L,sBAAsB,CAC1CrM,MAAM,CAAC4G,QAAQ,CAAC2F,SAAS,CACzBvM,MAAM,CAAC4G,QAAQ,CAAC4F,eAAe,CAC/BxM,MAAM,CAAC4G,QAAQ,CAAC6F,MAClB,CAAC,CAED,MAAO,CAAC,CAAC,CACX,CAAE,MAAOjM,KAAU,CAAE,CACnB,MAAO,CACLA,KAAK,CAALA,KACF,CAAC,CACH,CACF,CAAC,iBA1BY,CAAA6L,sBAAsBA,CAAAK,IAAA,SAAAJ,MAAA,CAAA5L,KAAA,MAAAR,SAAA,OA0BlC,CAOM,GAAM,CAAAyM,oBAAoB,CAAA/M,OAAA,CAAA+M,oBAAA,gBAAAC,MAAA,IAAA9M,kBAAA,CAAAC,OAAA,EAAG,WAA2B,CAC7D,GAAIoE,qBAAQ,CAACC,EAAE,GAAK,KAAK,CAAE,CACzB,KAAM,CAAA9D,8BAAe,CAACuM,iBAAiB,CAAC,CAAC,CAC3C,CACF,CAAC,iBAJY,CAAAF,oBAAoBA,CAAA,SAAAC,MAAA,CAAAlM,KAAA,MAAAR,SAAA,OAIhC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_helpers","require","_Errors","_NativeStripeSdkModule","_interopRequireDefault","_reactNative","_events","createPaymentMethod","exports","_ref","_asyncToGenerator2","default","params","options","arguments","length","undefined","_yield$NativeStripeSd","NativeStripeSdk","paymentMethod","error","_x","apply","createToken","_ref2","_params$country","type","country","toLowerCase","routingNumber","MissingRoutingNumber","_yield$NativeStripeSd2","token","_x2","retrievePaymentIntent","_ref3","clientSecret","_yield$NativeStripeSd3","paymentIntent","_x3","retrieveSetupIntent","_ref4","_yield$NativeStripeSd4","setupIntent","_x4","confirmPayment","_ref5","paymentIntentClientSecret","_yield$NativeStripeSd5","_x5","_x6","handleNextAction","_ref6","returnURL","_yield$NativeStripeSd6","createError","_x7","_x8","handleNextActionForSetup","_ref7","setupIntentClientSecret","_yield$NativeStripeSd7","_x9","_x0","confirmSetupIntent","_ref8","_yield$NativeStripeSd8","_x1","_x10","createTokenForCVCUpdate","_ref9","cvc","_yield$NativeStripeSd9","tokenId","_x11","handleURLCallback","_ref0","url","stripeHandled","Platform","OS","_x12","verifyMicrodepositsForPayment","_ref1","_ref10","verifyMicrodeposits","_x13","_x14","verifyMicrodepositsForSetup","_ref11","_ref12","_x15","_x16","confirmHandlerCallback","orderTrackingCallbackListener","financialConnectionsEventListener","paymentSheetCustomPaymentMethodConfirmCallback","initPaymentSheet","_ref13","_params$intentConfigu","_params$applePay","result","confirmHandler","intentConfiguration","_confirmHandlerCallba","remove","addListener","_ref14","shouldSavePaymentMethod","intentCreationCallback","customPaymentMethodConfiguration","customPaymentMethodHandler","confirmCustomPaymentMethodCallback","_paymentSheetCustomPa","_ref15","customPaymentMethod","billingDetails","cpmResult","customPaymentMethodResultCallback","orderTrackingCallback","applePay","setOrderTracking","_orderTrackingCallbac","configureOrderTracking","console","warn","paymentOption","_x17","presentPaymentSheet","_ref16","_yield$NativeStripeSd0","didCancel","confirmPaymentSheetPayment","_ref17","_yield$NativeStripeSd1","resetPaymentSheetCustomer","_ref18","collectBankAccountForPayment","_ref19","_financialConnections","onEvent","_financialConnections2","_ref20","collectBankAccount","_financialConnections3","_x18","_x19","collectBankAccountForSetup","_ref21","_financialConnections4","_financialConnections5","_ref22","_financialConnections6","_x20","_x21","collectBankAccountToken","_ref23","_financialConnections7","_financialConnections8","_yield$NativeStripeSd10","session","_financialConnections9","_x22","collectFinancialConnectionsAccounts","_ref24","_financialConnections0","_financialConnections1","_yield$NativeStripeSd11","_financialConnections10","_x23","canAddCardToWallet","_ref25","_yield$NativeStripeSd12","canAddCard","details","_x24","isCardInWallet","_ref26","_yield$NativeStripeSd13","isInWallet","_x25","Constants","getConstants","isPlatformPaySupported","_ref27","_x26","confirmPlatformPaySetupIntent","_ref28","_ref29","confirmPlatformPay","_x27","_x28","confirmPlatformPayPayment","_ref30","_ref31","_x29","_x30","dismissPlatformPay","_ref32","didDismiss","createPlatformPayPaymentMethod","_ref33","_ref34","shippingContact","_x31","createPlatformPayToken","_ref35","_ref36","_x32","updatePlatformPaySheet","_ref37","cartItems","shippingMethods","errors","_x33","openPlatformPaySetup","_ref38","openApplePaySetup","setFinancialConnectionsForceNativeFlow","_ref39","enabled","_","_x34"],"sourceRoot":"../../src","sources":["functions.ts"],"mappings":"otCAAA,IAAAA,QAAA,CAAAC,OAAA,cACA,IAAAC,OAAA,CAAAD,OAAA,mBACA,IAAAE,sBAAA,CAAAC,sBAAA,CAAAH,OAAA,mCAgCA,IAAAI,YAAA,CAAAJ,OAAA,iBAGA,IAAAK,OAAA,CAAAL,OAAA,aAEO,GAAM,CAAAM,mBAAmB,CAAAC,OAAA,CAAAD,mBAAA,gBAAAE,IAAA,IAAAC,kBAAA,CAAAC,OAAA,EAAG,UACjCC,MAAkC,CAEK,IADvC,CAAAC,OAAoC,CAAAC,SAAA,CAAAC,MAAA,IAAAD,SAAA,MAAAE,SAAA,CAAAF,SAAA,IAAG,CAAC,CAAC,CAEzC,GAAI,CACF,IAAAG,qBAAA,MAAuC,CAAAC,8BAAe,CAACX,mBAAmB,CACxEK,MAAM,CACNC,OACF,CAAC,CAHOM,aAAa,CAAAF,qBAAA,CAAbE,aAAa,CAAEC,KAAK,CAAAH,qBAAA,CAALG,KAAK,CAI5B,GAAIA,KAAK,CAAE,CACT,MAAO,CACLA,KAAK,CAALA,KACF,CAAC,CACH,CACA,MAAO,CACLD,aAAa,CAAEA,aACjB,CAAC,CACH,CAAE,MAAOC,KAAU,CAAE,CACnB,MAAO,CACLA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
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:true});var _exportNames={useConfirmPayment:true,useConfirmSetupIntent:true,useStripe:true,usePlatformPay:true,usePaymentSheet:true,useFinancialConnectionsSheet:true,
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:true});var _exportNames={useConfirmPayment:true,useConfirmSetupIntent:true,useStripe:true,usePlatformPay:true,usePaymentSheet:true,useFinancialConnectionsSheet:true,initStripe:true,StripeProvider:true,CardField:true,CardForm:true,AuBECSDebitForm:true,StripeContainer:true,AddToWalletButton:true,AddressSheet:true,PlatformPayButton:true};Object.defineProperty(exports,"AddToWalletButton",{enumerable:true,get:function get(){return _AddToWalletButton.AddToWalletButton;}});Object.defineProperty(exports,"AddressSheet",{enumerable:true,get:function get(){return _AddressSheet.AddressSheet;}});Object.defineProperty(exports,"AuBECSDebitForm",{enumerable:true,get:function get(){return _AuBECSDebitForm.AuBECSDebitForm;}});Object.defineProperty(exports,"CardField",{enumerable:true,get:function get(){return _CardField.CardField;}});Object.defineProperty(exports,"CardForm",{enumerable:true,get:function get(){return _CardForm.CardForm;}});Object.defineProperty(exports,"PlatformPayButton",{enumerable:true,get:function get(){return _PlatformPayButton.PlatformPayButton;}});Object.defineProperty(exports,"StripeContainer",{enumerable:true,get:function get(){return _StripeContainer.StripeContainer;}});Object.defineProperty(exports,"StripeProvider",{enumerable:true,get:function get(){return _StripeProvider.StripeProvider;}});Object.defineProperty(exports,"initStripe",{enumerable:true,get:function get(){return _StripeProvider.initStripe;}});Object.defineProperty(exports,"useConfirmPayment",{enumerable:true,get:function get(){return _useConfirmPayment.useConfirmPayment;}});Object.defineProperty(exports,"useConfirmSetupIntent",{enumerable:true,get:function get(){return _useConfirmSetupIntent.useConfirmSetupIntent;}});Object.defineProperty(exports,"useFinancialConnectionsSheet",{enumerable:true,get:function get(){return _useFinancialConnectionsSheet.useFinancialConnectionsSheet;}});Object.defineProperty(exports,"usePaymentSheet",{enumerable:true,get:function get(){return _usePaymentSheet.usePaymentSheet;}});Object.defineProperty(exports,"usePlatformPay",{enumerable:true,get:function get(){return _usePlatformPay.usePlatformPay;}});Object.defineProperty(exports,"useStripe",{enumerable:true,get:function get(){return _useStripe.useStripe;}});var _useConfirmPayment=require("./hooks/useConfirmPayment");var _useConfirmSetupIntent=require("./hooks/useConfirmSetupIntent");var _useStripe=require("./hooks/useStripe");var _usePlatformPay=require("./hooks/usePlatformPay");var _usePaymentSheet=require("./hooks/usePaymentSheet");var _useFinancialConnectionsSheet=require("./hooks/useFinancialConnectionsSheet");var _StripeProvider=require("./components/StripeProvider");var _CardField=require("./components/CardField");var _CardForm=require("./components/CardForm");var _AuBECSDebitForm=require("./components/AuBECSDebitForm");var _StripeContainer=require("./components/StripeContainer");var _AddToWalletButton=require("./components/AddToWalletButton");var _AddressSheet=require("./components/AddressSheet");var _PlatformPayButton=require("./components/PlatformPayButton");var _functions=require("./functions");Object.keys(_functions).forEach(function(key){if(key==="default"||key==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,key))return;if(key in exports&&exports[key]===_functions[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _functions[key];}});});var _index=require("./types/index");Object.keys(_index).forEach(function(key){if(key==="default"||key==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,key))return;if(key in exports&&exports[key]===_index[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _index[key];}});});var _CustomerSheet=require("./components/CustomerSheet");Object.keys(_CustomerSheet).forEach(function(key){if(key==="default"||key==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,key))return;if(key in exports&&exports[key]===_CustomerSheet[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _CustomerSheet[key];}});});var _EmbeddedPaymentElement=require("./types/EmbeddedPaymentElement");Object.keys(_EmbeddedPaymentElement).forEach(function(key){if(key==="default"||key==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,key))return;if(key in exports&&exports[key]===_EmbeddedPaymentElement[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _EmbeddedPaymentElement[key];}});});var _PaymentSheet=require("./types/PaymentSheet");Object.keys(_PaymentSheet).forEach(function(key){if(key==="default"||key==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,key))return;if(key in exports&&exports[key]===_PaymentSheet[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _PaymentSheet[key];}});});
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_useConfirmPayment","require","_useConfirmSetupIntent","_useStripe","_usePlatformPay","_usePaymentSheet","_useFinancialConnectionsSheet","
|
|
1
|
+
{"version":3,"names":["_useConfirmPayment","require","_useConfirmSetupIntent","_useStripe","_usePlatformPay","_usePaymentSheet","_useFinancialConnectionsSheet","_StripeProvider","_CardField","_CardForm","_AuBECSDebitForm","_StripeContainer","_AddToWalletButton","_AddressSheet","_PlatformPayButton","_functions","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_index","_CustomerSheet","_EmbeddedPaymentElement","_PaymentSheet"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"2vEACA,IAAAA,kBAAA,CAAAC,OAAA,8BACA,IAAAC,sBAAA,CAAAD,OAAA,kCACA,IAAAE,UAAA,CAAAF,OAAA,sBACA,IAAAG,eAAA,CAAAH,OAAA,2BACA,IAAAI,gBAAA,CAAAJ,OAAA,4BACA,IAAAK,6BAAA,CAAAL,OAAA,yCAGA,IAAAM,eAAA,CAAAN,OAAA,gCAEA,IAAAO,UAAA,CAAAP,OAAA,2BAEA,IAAAQ,SAAA,CAAAR,OAAA,0BAEA,IAAAS,gBAAA,CAAAT,OAAA,iCAEA,IAAAU,gBAAA,CAAAV,OAAA,iCAEA,IAAAW,kBAAA,CAAAX,OAAA,mCAEA,IAAAY,aAAA,CAAAZ,OAAA,8BAEA,IAAAa,kBAAA,CAA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AA,SAGA,IAAAW,uBAAA,CAAA7B,OAAA,mCAAAe,MAAA,CAAAC,IAAA,CAAAa,uBAAA,EAAAZ,OAAA,UAAAC,GAAA,KAAAA,GAAA,cAAAA,GAAA,0BAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,CAAAJ,GAAA,YAAAA,GAAA,IAAAK,OAAA,EAAAA,OAAA,CAAAL,GAAA,IAAAW,uBAAA,CAAAX,GAAA,SAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,CAAAL,GAAA,EAAAO,UAAA,MAAAC,GAAA,UAAAA,IAAA,SAAAG,uBAAA,CAAAX,GAAA,SACA,IAAAY,aAAA,CAAA9B,OAAA,yBAAAe,MAAA,CAAAC,IAAA,CAAAc,aAAA,EAAAb,OAAA,UAAAC,GAAA,KAAAA,GAAA,cAAAA,GAAA,0BAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,CAAAJ,GAAA,YAAAA,GAAA,IAAAK,OAAA,EAAAA,OAAA,CAAAL,GAAA,IAAAY,aAAA,CAAAZ,GAAA,SAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,CAAAL,GAAA,EAAAO,UAAA,MAAAC,GAAA,UAAAA,IAAA,SAAAI,aAAA,CAAAZ,GAAA","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;exports.setApplePayEntitlement=setApplePayEntitlement;exports.setGooglePayMetaData=setGooglePayMetaData;exports.withNoopSwiftFile=void 0;var _configPlugins=require("@expo/config-plugins");var _AndroidConfig$Manife=_configPlugins.AndroidConfig.Manifest,addMetaDataItemToMainApplication=_AndroidConfig$Manife.addMetaDataItemToMainApplication,getMainApplicationOrThrow=_AndroidConfig$Manife.getMainApplicationOrThrow,removeMetaDataItemFromMainApplication=_AndroidConfig$Manife.removeMetaDataItemFromMainApplication;var pkg=require('@stripe/stripe-react-native/package.json');var withStripe=function withStripe(config,props){config=withStripeIos(config,props);config=withNoopSwiftFile(config);config=withStripeAndroid(config,props);return config;};var withStripeIos=function withStripeIos(expoConfig,_ref){var merchantIdentifier=_ref.merchantIdentifier;return(0,_configPlugins.withEntitlementsPlist)(expoConfig,function(config){config.modResults=setApplePayEntitlement(merchantIdentifier,config.modResults);return config;});};function setApplePayEntitlement(merchantIdentifiers,entitlements){var _entitlements$key;var key='com.apple.developer.in-app-payments';var merchants=(_entitlements$key=entitlements[key])!=null?_entitlements$key:[];if(!Array.isArray(merchantIdentifiers)){merchantIdentifiers=[merchantIdentifiers];}for(var id of merchantIdentifiers){if(id&&!merchants.includes(id)){merchants.push(id);}}if(merchants.length){entitlements[key]=merchants;}return entitlements;}var withNoopSwiftFile=exports.withNoopSwiftFile=function withNoopSwiftFile(config){return _configPlugins.IOSConfig.XcodeProjectFile.withBuildSourceFile(config,{filePath:'noop-file.swift',contents:['//','// @generated','// A blank Swift file must be created for native modules with Swift files to work correctly.','//',''].join('\n')});};var withStripeAndroid=function withStripeAndroid(expoConfig,_ref2){var _ref2$enableGooglePay=_ref2.enableGooglePay,enableGooglePay=_ref2$enableGooglePay===void 0?false:_ref2$enableGooglePay;return(0,_configPlugins.withAndroidManifest)(expoConfig,function(config){config.modResults=setGooglePayMetaData(enableGooglePay,config.modResults);return config;});};function setGooglePayMetaData(enabled,modResults){var GOOGLE_PAY_META_NAME='com.google.android.gms.wallet.api.enabled';var mainApplication=getMainApplicationOrThrow(modResults);if(enabled){addMetaDataItemToMainApplication(mainApplication,GOOGLE_PAY_META_NAME,'true');}else{removeMetaDataItemFromMainApplication(mainApplication,GOOGLE_PAY_META_NAME);}return modResults;}var _default=exports.default=(0,_configPlugins.createRunOncePlugin)(withStripe,pkg.name,pkg.version);
|
|
2
2
|
//# sourceMappingURL=withStripe.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_configPlugins","require","
|
|
1
|
+
{"version":3,"names":["_configPlugins","require","_AndroidConfig$Manife","AndroidConfig","Manifest","addMetaDataItemToMainApplication","getMainApplicationOrThrow","removeMetaDataItemFromMainApplication","pkg","withStripe","config","props","withStripeIos","withNoopSwiftFile","withStripeAndroid","expoConfig","_ref","merchantIdentifier","withEntitlementsPlist","modResults","setApplePayEntitlement","merchantIdentifiers","entitlements","_entitlements$key","key","merchants","Array","isArray","id","includes","push","length","exports","IOSConfig","XcodeProjectFile","withBuildSourceFile","filePath","contents","join","_ref2","_ref2$enableGooglePay","enableGooglePay","withAndroidManifest","setGooglePayMetaData","enabled","GOOGLE_PAY_META_NAME","mainApplication","_default","default","createRunOncePlugin","name","version"],"sourceRoot":"../../../src","sources":["plugin/withStripe.ts"],"mappings":"yNAAA,IAAAA,cAAA,CAAAC,OAAA,yBASA,IAAAC,qBAAA,CAIIC,4BAAa,CAACC,QAAQ,CAHxBC,gCAAgC,CAAAH,qBAAA,CAAhCG,gCAAgC,CAChCC,yBAAyB,CAAAJ,qBAAA,CAAzBI,yBAAyB,CACzBC,qCAAqC,CAAAL,qBAAA,CAArCK,qCAAqC,CAGvC,GAAM,CAAAC,GAAG,CAAGP,OAAO,CAAC,0CAA0C,CAAC,CAW/D,GAAM,CAAAQ,UAA2C,CAAG,QAA9C,CAAAA,UAA2CA,CAAIC,MAAM,CAAEC,KAAK,CAAK,CACrED,MAAM,CAAGE,aAAa,CAACF,MAAM,CAAEC,KAAK,CAAC,CACrCD,MAAM,CAAGG,iBAAiB,CAACH,MAAM,CAAC,CAClCA,MAAM,CAAGI,iBAAiB,CAACJ,MAAM,CAAEC,KAAK,CAAC,CACzC,MAAO,CAAAD,MAAM,CACf,CAAC,CAED,GAAM,CAAAE,aAA8C,CAAG,QAAjD,CAAAA,aAA8CA,CAClDG,UAAU,CAAAC,IAAA,CAEP,IADD,CAAAC,kBAAkB,CAAAD,IAAA,CAAlBC,kBAAkB,CAEpB,MAAO,GAAAC,oCAAqB,EAACH,UAAU,CAAE,SAACL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AEP,KAAAC,qBAAA,CAAAD,KAAA,CADDE,eAAe,CAAfA,eAAe,CAAAD,qBAAA,UAAG,KAAK,CAAAA,qBAAA,CAEzB,MAAO,GAAAE,kCAAmB,EAAC3B,UAAU,CAAE,SAACL,MAAM,CAAK,CACjDA,MAAM,CAACS,UAAU,CAAGwB,oBAAoB,CACtCF,eAAe,CACf/B,MAAM,CAACS,UACT,CAAC,CAED,MAAO,CAAAT,MAAM,CACf,CAAC,CAAC,CACJ,CAAC,CAYM,QAAS,CAAAiC,oBAAoBA,CAClCC,OAAgB,CAChBzB,UAAkD,CACV,CACxC,GAAM,CAAA0B,oBAAoB,CAAG,2CAA2C,CACxE,GAAM,CAAAC,eAAe,CAAGxC,yBAAyB,CAACa,UAAU,CAAC,CAC7D,GAAIyB,OAAO,CAAE,CACXvC,gCAAgC,CAC9ByC,eAAe,CACfD,oBAAoB,CACpB,MACF,CAAC,CACH,CAAC,IAAM,CACLtC,qCAAqC,CACnCuC,eAAe,CACfD,oBACF,CAAC,CACH,CAEA,MAAO,CAAA1B,UAAU,CACnB,CAAC,IAAA4B,QAAA,CAAAf,OAAA,CAAAgB,OAAA,CAEc,GAAAC,kCAAmB,EAACxC,UAAU,CAAED,GAAG,CAAC0C,IAAI,CAAE1C,GAAG,CAAC2C,OAAO,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["specs/NativeStripeSdkModule.ts"],"mappings":"gFAAA,IAAAA,YAAA,CAAAC,OAAA,iBAAmD,IAAAC,QAAA,CAAAC,OAAA,CAAAC,OAAA,
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["specs/NativeStripeSdkModule.ts"],"mappings":"gFAAA,IAAAA,YAAA,CAAAC,OAAA,iBAAmD,IAAAC,QAAA,CAAAC,OAAA,CAAAC,OAAA,CAiMpCC,gCAAmB,CAACC,YAAY,CAAO,WAAW,CAAC","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.useEmbeddedPaymentElement=useEmbeddedPaymentElement;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _reactNative=require("react-native");var _NativeStripeSdkModule=_interopRequireDefault(require("../specs/NativeStripeSdkModule"));var _react=_interopRequireWildcard(require("react"));var _events=require("../events");var _NativeEmbeddedPaymentElement=_interopRequireWildcard(require("../specs/NativeEmbeddedPaymentElement"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.useEmbeddedPaymentElement=useEmbeddedPaymentElement;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _reactNative=require("react-native");var _NativeStripeSdkModule=_interopRequireDefault(require("../specs/NativeStripeSdkModule"));var _react=_interopRequireWildcard(require("react"));var _events=require("../events");var _NativeEmbeddedPaymentElement=_interopRequireWildcard(require("../specs/NativeEmbeddedPaymentElement"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/tianzhao/stripe/stripe-react-native/src/types/EmbeddedPaymentElement.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}var EmbeddedPaymentElement=function(){function EmbeddedPaymentElement(){(0,_classCallCheck2.default)(this,EmbeddedPaymentElement);}return(0,_createClass2.default)(EmbeddedPaymentElement,[{key:"update",value:(function(){var _update=(0,_asyncToGenerator2.default)(function*(intentConfig){var result=yield _NativeStripeSdkModule.default.updateEmbeddedPaymentElement(intentConfig);return result;});function update(_x){return _update.apply(this,arguments);}return update;}())},{key:"confirm",value:(function(){var _confirm=(0,_asyncToGenerator2.default)(function*(){var result=yield _NativeStripeSdkModule.default.confirmEmbeddedPaymentElement(-1);return result;});function confirm(){return _confirm.apply(this,arguments);}return confirm;}())},{key:"clearPaymentOption",value:function clearPaymentOption(){_NativeStripeSdkModule.default.clearEmbeddedPaymentOption(-1);}}]);}();var confirmHandlerCallback=null;var formSheetActionConfirmCallback=null;var customPaymentMethodConfirmCallback=null;var rowSelectionCallback=null;function createEmbeddedPaymentElement(_x2,_x3){return _createEmbeddedPaymentElement.apply(this,arguments);}function _createEmbeddedPaymentElement(){_createEmbeddedPaymentElement=(0,_asyncToGenerator2.default)(function*(intentConfig,configuration){setupConfirmAndSelectionHandlers(intentConfig,configuration);yield _NativeStripeSdkModule.default.createEmbeddedPaymentElement(intentConfig,configuration);return new EmbeddedPaymentElement();});return _createEmbeddedPaymentElement.apply(this,arguments);}function setupConfirmAndSelectionHandlers(intentConfig,configuration){var _configuration$formSh,_configuration$rowSel;var confirmHandler=intentConfig.confirmHandler;if(confirmHandler){var _confirmHandlerCallba;(_confirmHandlerCallba=confirmHandlerCallback)==null||_confirmHandlerCallba.remove();confirmHandlerCallback=(0,_events.addListener)('onConfirmHandlerCallback',function(_ref){var paymentMethod=_ref.paymentMethod,shouldSavePaymentMethod=_ref.shouldSavePaymentMethod;confirmHandler(paymentMethod,shouldSavePaymentMethod,_NativeStripeSdkModule.default.intentCreationCallback);});}if(((_configuration$formSh=configuration.formSheetAction)==null?void 0:_configuration$formSh.type)==='confirm'){var confirmFormSheetHandler=configuration.formSheetAction.onFormSheetConfirmComplete;if(confirmFormSheetHandler){var _formSheetActionConfi;(_formSheetActionConfi=formSheetActionConfirmCallback)==null||_formSheetActionConfi.remove();formSheetActionConfirmCallback=(0,_events.addListener)('embeddedPaymentElementFormSheetConfirmComplete',function(result){confirmFormSheetHandler(result);});}}if(configuration.customPaymentMethodConfiguration){var customPaymentMethodHandler=configuration.customPaymentMethodConfiguration.confirmCustomPaymentMethodCallback;if(customPaymentMethodHandler){var _customPaymentMethodC;(_customPaymentMethodC=customPaymentMethodConfirmCallback)==null||_customPaymentMethodC.remove();customPaymentMethodConfirmCallback=(0,_events.addListener)('onCustomPaymentMethodConfirmHandlerCallback',function(_ref2){var customPaymentMethod=_ref2.customPaymentMethod,billingDetails=_ref2.billingDetails;customPaymentMethodHandler(customPaymentMethod,billingDetails,function(result){_NativeStripeSdkModule.default.customPaymentMethodResultCallback(result);});});}}if(((_configuration$rowSel=configuration.rowSelectionBehavior)==null?void 0:_configuration$rowSel.type)==='immediateAction'){var rowSelectionHandler=configuration.rowSelectionBehavior.onSelectPaymentOption;if(rowSelectionHandler){var _rowSelectionCallback;(_rowSelectionCallback=rowSelectionCallback)==null||_rowSelectionCallback.remove();rowSelectionCallback=(0,_events.addListener)('embeddedPaymentElementRowSelectionImmediateAction',function(){rowSelectionHandler();});}}}function useEmbeddedPaymentElement(intentConfig,configuration){var _this=this;var isAndroid=_reactNative.Platform.OS==='android';var elementRef=(0,_react.useRef)(null);var _useState=(0,_react.useState)(null),_useState2=(0,_slicedToArray2.default)(_useState,2),element=_useState2[0],setElement=_useState2[1];var _useState3=(0,_react.useState)(null),_useState4=(0,_slicedToArray2.default)(_useState3,2),paymentOption=_useState4[0],setPaymentOption=_useState4[1];var _useState5=(0,_react.useState)(),_useState6=(0,_slicedToArray2.default)(_useState5,2),height=_useState6[0],setHeight=_useState6[1];var viewRef=(0,_react.useRef)(null);var _useState7=(0,_react.useState)(null),_useState8=(0,_slicedToArray2.default)(_useState7,2),loadingError=_useState8[0],setLoadingError=_useState8[1];var isLoaded=(0,_react.useMemo)(function(){return height!==undefined&&height>1;},[height]);function getElementOrThrow(ref){if(!ref.current){throw new Error('EmbeddedPaymentElement is not ready yet – wait until it finishes loading before calling this API.');}return ref.current;}(0,_react.useEffect)(function(){var active=true;(0,_asyncToGenerator2.default)(function*(){var el=yield createEmbeddedPaymentElement(intentConfig,configuration);if(!active)return;elementRef.current=el;setElement(el);})();return function(){active=false;elementRef.current=null;setElement(null);};},[intentConfig,configuration,viewRef,isAndroid]);(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('embeddedPaymentElementDidUpdatePaymentOption',function(_ref4){var opt=_ref4.paymentOption;return setPaymentOption(opt!=null?opt:null);});return function(){return sub.remove();};});(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('embeddedPaymentElementDidUpdateHeight',function(_ref5){var h=_ref5.height;if(h>0||isAndroid&&h===0){_reactNative.LayoutAnimation.configureNext(_reactNative.LayoutAnimation.Presets.easeInEaseOut);setHeight(h);}});return function(){return sub.remove();};},[isAndroid]);(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('embeddedPaymentElementLoadingFailed',function(nativeError){setLoadingError(new Error(nativeError.message));});return function(){return sub.remove();};},[]);var embeddedPaymentElementView=(0,_react.useMemo)(function(){if(isAndroid&&configuration&&intentConfig){return(0,_jsxRuntime.jsx)(_NativeEmbeddedPaymentElement.default,{ref:viewRef,style:[{width:'100%',height:height}],configuration:configuration,intentConfiguration:intentConfig});}if(!element)return null;return(0,_jsxRuntime.jsx)(_NativeEmbeddedPaymentElement.default,{ref:viewRef,style:{width:'100%',height:height},configuration:configuration,intentConfiguration:intentConfig});},[configuration,element,height,intentConfig,isAndroid]);var confirm=(0,_react.useCallback)(function(){var currentRef=viewRef.current;if(isAndroid){if(currentRef){var promise=new Promise(function(resolve){var sub=(0,_events.addListener)('embeddedPaymentElementFormSheetConfirmComplete',function(result){sub.remove();resolve(result);});});_NativeEmbeddedPaymentElement.Commands.confirm(currentRef);return promise;}else{return Promise.reject(new Error('Unable to find Android embedded payment element view!'));}}return getElementOrThrow(elementRef).confirm();},[isAndroid]);var update=(0,_react.useCallback)(function(cfg){return getElementOrThrow(elementRef).update(cfg);},[]);var clearPaymentOption=(0,_react.useCallback)(function(){if(isAndroid){var tag=(0,_reactNative.findNodeHandle)(viewRef.current);if(tag==null){return Promise.reject(new Error('Unable to find Android view handle'));}return _NativeStripeSdkModule.default.clearEmbeddedPaymentOption(tag);}getElementOrThrow(elementRef).clearPaymentOption();return Promise.resolve();},[isAndroid]);return{embeddedPaymentElementView:embeddedPaymentElementView,paymentOption:paymentOption,confirm:confirm,update:update,clearPaymentOption:clearPaymentOption,loadingError:loadingError,isLoaded:isLoaded};}
|
|
2
2
|
//# sourceMappingURL=EmbeddedPaymentElement.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_NativeStripeSdkModule","_interopRequireDefault","_react","_interopRequireWildcard","_events","_NativeEmbeddedPaymentElement","_jsxRuntime","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","EmbeddedPaymentElement","_classCallCheck2","_createClass2","key","value","_update","_asyncToGenerator2","intentConfig","result","NativeStripeSdkModule","updateEmbeddedPaymentElement","update","_x","apply","arguments","_confirm","confirmEmbeddedPaymentElement","confirm","clearPaymentOption","clearEmbeddedPaymentOption","confirmHandlerCallback","formSheetActionConfirmCallback","customPaymentMethodConfirmCallback","rowSelectionCallback","createEmbeddedPaymentElement","_x2","_x3","_createEmbeddedPaymentElement","configuration","setupConfirmAndSelectionHandlers","_configuration$formSh","_configuration$rowSel","confirmHandler","_confirmHandlerCallba","remove","addListener","_ref","paymentMethod","shouldSavePaymentMethod","intentCreationCallback","formSheetAction","type","confirmFormSheetHandler","onFormSheetConfirmComplete","_formSheetActionConfi","customPaymentMethodConfiguration","customPaymentMethodHandler","confirmCustomPaymentMethodCallback","_customPaymentMethodC","_ref2","customPaymentMethod","billingDetails","customPaymentMethodResultCallback","rowSelectionBehavior","rowSelectionHandler","onSelectPaymentOption","_rowSelectionCallback","useEmbeddedPaymentElement","_this","isAndroid","Platform","OS","elementRef","useRef","_useState","useState","_useState2","_slicedToArray2","element","setElement","_useState3","_useState4","paymentOption","setPaymentOption","_useState5","_useState6","height","setHeight","viewRef","_useState7","_useState8","loadingError","setLoadingError","getElementOrThrow","ref","current","Error","useEffect","active","el","sub","_ref4","opt","_ref5","h","LayoutAnimation","configureNext","Presets","easeInEaseOut","nativeError","message","embeddedPaymentElementView","useMemo","jsx","style","width","intentConfiguration","useCallback","currentRef","promise","Promise","resolve","Commands","reject","cfg","tag","findNodeHandle"],"sourceRoot":"../../../src","sources":["types/EmbeddedPaymentElement.tsx"],"mappings":"4jBACA,IAAAA,YAAA,CAAAC,OAAA,iBAeA,IAAAC,sBAAA,CAAAC,sBAAA,CAAAF,OAAA,oCACA,IAAAG,MAAA,CAAAC,uBAAA,CAAAJ,OAAA,WAUA,IAAAK,OAAA,CAAAL,OAAA,cACA,IAAAM,6BAAA,CAAAF,uBAAA,CAAAJ,OAAA,2CAG+C,IAAAO,WAAA,CAAAP,OAAA,0BAAAQ,YAAA,uFAAAC,yBAAAC,CAAA,wBAAAC,OAAA,iBAAAC,CAAA,KAAAD,OAAA,GAAAE,CAA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AC7C,OAAO,CAAC,CAAC,CAChD,CAAC,CAAE,CAAC0C,SAAS,CAAC,CAAC,CACf,GAAM,CAAAhD,MAAM,CAAG,GAAAgG,kBAAW,EACxB,SAACO,GAA0C,QACzC,CAAA/B,iBAAiB,CAACrB,UAAU,CAAC,CAACnD,MAAM,CAACuG,GAAG,CAAC,GAC3C,EACF,CAAC,CACD,GAAM,CAAAhG,kBAAkB,CAAG,GAAAyF,kBAAW,EAAC,UAAqB,CAC1D,GAAIhD,SAAS,CAAE,CACb,GAAM,CAAAwD,GAAG,CAAG,GAAAC,2BAAc,EAACtC,OAAO,CAACO,OAAO,CAAC,CAC3C,GAAI8B,GAAG,EAAI,IAAI,CAAE,CACf,MAAO,CAAAL,OAAO,CAACG,MAAM,CAAC,GAAI,CAAA3B,KAAK,CAAC,oCAAoC,CAAC,CAAC,CACxE,CACA,MAAO,CAAA7E,8BAAqB,CAACU,0BAA0B,CAACgG,GAAG,CAAC,CAC9D,CAGAhC,iBAAiB,CAACrB,UAAU,CAAC,CAAC5C,kBAAkB,CAAC,CAAC,CAClD,MAAO,CAAA4F,OAAO,CAACC,OAAO,CAAC,CAAC,CAC1B,CAAC,CAAE,CAACpD,SAAS,CAAC,CAAC,CAEf,MAAO,CACL0C,0BAA0B,CAA1BA,0BAA0B,CAC1B7B,aAAa,CAAbA,aAAa,CACbvD,OAAO,CAAPA,OAAO,CACPN,MAAM,CAANA,MAAM,CACNO,kBAAkB,CAAlBA,kBAAkB,CAClB+D,YAAY,CAAZA,YACF,CAAC,CACH","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_NativeStripeSdkModule","_interopRequireDefault","_react","_interopRequireWildcard","_events","_NativeEmbeddedPaymentElement","_jsxRuntime","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","EmbeddedPaymentElement","_classCallCheck2","_createClass2","key","value","_update","_asyncToGenerator2","intentConfig","result","NativeStripeSdkModule","updateEmbeddedPaymentElement","update","_x","apply","arguments","_confirm","confirmEmbeddedPaymentElement","confirm","clearPaymentOption","clearEmbeddedPaymentOption","confirmHandlerCallback","formSheetActionConfirmCallback","customPaymentMethodConfirmCallback","rowSelectionCallback","createEmbeddedPaymentElement","_x2","_x3","_createEmbeddedPaymentElement","configuration","setupConfirmAndSelectionHandlers","_configuration$formSh","_configuration$rowSel","confirmHandler","_confirmHandlerCallba","remove","addListener","_ref","paymentMethod","shouldSavePaymentMethod","intentCreationCallback","formSheetAction","type","confirmFormSheetHandler","onFormSheetConfirmComplete","_formSheetActionConfi","customPaymentMethodConfiguration","customPaymentMethodHandler","confirmCustomPaymentMethodCallback","_customPaymentMethodC","_ref2","customPaymentMethod","billingDetails","customPaymentMethodResultCallback","rowSelectionBehavior","rowSelectionHandler","onSelectPaymentOption","_rowSelectionCallback","useEmbeddedPaymentElement","_this","isAndroid","Platform","OS","elementRef","useRef","_useState","useState","_useState2","_slicedToArray2","element","setElement","_useState3","_useState4","paymentOption","setPaymentOption","_useState5","_useState6","height","setHeight","viewRef","_useState7","_useState8","loadingError","setLoadingError","isLoaded","useMemo","undefined","getElementOrThrow","ref","current","Error","useEffect","active","el","sub","_ref4","opt","_ref5","h","LayoutAnimation","configureNext","Presets","easeInEaseOut","nativeError","message","embeddedPaymentElementView","jsx","style","width","intentConfiguration","useCallback","currentRef","promise","Promise","resolve","Commands","reject","cfg","tag","findNodeHandle"],"sourceRoot":"../../../src","sources":["types/EmbeddedPaymentElement.tsx"],"mappings":"4jBACA,IAAAA,YAAA,CAAAC,OAAA,iBAeA,IAAAC,sBAAA,CAAAC,sBAAA,CAAAF,OAAA,oCACA,IAAAG,MAAA,CAAAC,uBAAA,CAAAJ,OAAA,WAUA,IAAAK,OAAA,CAAAL,OAAA,cACA,IAAAM,6BAAA,CAAAF,uBAAA,CAAAJ,OAAA,2CAG+C,IAAAO,WAAA,CAAAP,OAAA,0BAAAQ,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
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:true});exports.VerifyMicrodepositsError=exports.RetrieveSetupIntentError=exports.RetrievePaymentIntentError=exports.PlatformPayError=exports.PaymentSheetError=exports.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:true});exports.VerifyMicrodepositsError=exports.RetrieveSetupIntentError=exports.RetrievePaymentIntentError=exports.PlatformPayError=exports.PaymentSheetError=exports.MissingRoutingNumber=exports.GooglePayError=exports.CustomerSheetError=exports.CreateTokenError=exports.CreatePaymentMethodError=exports.ConfirmSetupIntentError=exports.ConfirmPaymentError=exports.CollectBankAccountError=exports.CardActionError=exports.ApplePayError=exports.AddressSheetError=void 0;var ConfirmPaymentError=exports.ConfirmPaymentError=function(ConfirmPaymentError){ConfirmPaymentError["Canceled"]="Canceled";ConfirmPaymentError["Failed"]="Failed";ConfirmPaymentError["Unknown"]="Unknown";return ConfirmPaymentError;}({});var CardActionError=exports.CardActionError=function(CardActionError){CardActionError["Canceled"]="Canceled";CardActionError["Failed"]="Failed";CardActionError["Unknown"]="Unknown";return CardActionError;}({});var ConfirmSetupIntentError=exports.ConfirmSetupIntentError=function(ConfirmSetupIntentError){ConfirmSetupIntentError["Canceled"]="Canceled";ConfirmSetupIntentError["Failed"]="Failed";ConfirmSetupIntentError["Unknown"]="Unknown";return ConfirmSetupIntentError;}({});var CreatePaymentMethodError=exports.CreatePaymentMethodError=function(CreatePaymentMethodError){CreatePaymentMethodError["Failed"]="Failed";return CreatePaymentMethodError;}({});var CreateTokenError=exports.CreateTokenError=function(CreateTokenError){CreateTokenError["Failed"]="Failed";return CreateTokenError;}({});var RetrievePaymentIntentError=exports.RetrievePaymentIntentError=function(RetrievePaymentIntentError){RetrievePaymentIntentError["Unknown"]="Unknown";return RetrievePaymentIntentError;}({});var RetrieveSetupIntentError=exports.RetrieveSetupIntentError=function(RetrieveSetupIntentError){RetrieveSetupIntentError["Unknown"]="Unknown";return RetrieveSetupIntentError;}({});var ApplePayError=exports.ApplePayError=function(ApplePayError){ApplePayError["Canceled"]="Canceled";ApplePayError["Failed"]="Failed";ApplePayError["Unknown"]="Unknown";return ApplePayError;}({});var PaymentSheetError=exports.PaymentSheetError=function(PaymentSheetError){PaymentSheetError["Failed"]="Failed";PaymentSheetError["Canceled"]="Canceled";PaymentSheetError["Timeout"]="Timeout";return PaymentSheetError;}({});var GooglePayError=exports.GooglePayError=function(GooglePayError){GooglePayError["Failed"]="Failed";GooglePayError["Canceled"]="Canceled";GooglePayError["Unknown"]="Unknown";return GooglePayError;}({});var MissingRoutingNumber=exports.MissingRoutingNumber={code:CreateTokenError.Failed,message:'You must provide a routing number for US bank accounts. This should be the ACH routing number.'};var VerifyMicrodepositsError=exports.VerifyMicrodepositsError=function(VerifyMicrodepositsError){VerifyMicrodepositsError["Canceled"]="Canceled";VerifyMicrodepositsError["Failed"]="Failed";VerifyMicrodepositsError["Unknown"]="Unknown";return VerifyMicrodepositsError;}({});var CollectBankAccountError=exports.CollectBankAccountError=function(CollectBankAccountError){CollectBankAccountError["Canceled"]="Canceled";CollectBankAccountError["Failed"]="Failed";CollectBankAccountError["Unknown"]="Unknown";return CollectBankAccountError;}({});var AddressSheetError=exports.AddressSheetError=function(AddressSheetError){AddressSheetError["Failed"]="Failed";AddressSheetError["Canceled"]="Canceled";return AddressSheetError;}({});var CustomerSheetError=exports.CustomerSheetError=function(CustomerSheetError){CustomerSheetError["Failed"]="Failed";CustomerSheetError["Canceled"]="Canceled";return CustomerSheetError;}({});var PlatformPayError=exports.PlatformPayError=function(PlatformPayError){PlatformPayError["Canceled"]="Canceled";PlatformPayError["Failed"]="Failed";PlatformPayError["Unknown"]="Unknown";return PlatformPayError;}({});
|
|
2
2
|
//# sourceMappingURL=Errors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ConfirmPaymentError","exports","CardActionError","ConfirmSetupIntentError","CreatePaymentMethodError","CreateTokenError","RetrievePaymentIntentError","RetrieveSetupIntentError","ApplePayError","PaymentSheetError","
|
|
1
|
+
{"version":3,"names":["ConfirmPaymentError","exports","CardActionError","ConfirmSetupIntentError","CreatePaymentMethodError","CreateTokenError","RetrievePaymentIntentError","RetrieveSetupIntentError","ApplePayError","PaymentSheetError","GooglePayError","MissingRoutingNumber","code","Failed","message","VerifyMicrodepositsError","CollectBankAccountError","AddressSheetError","CustomerSheetError","PlatformPayError"],"sourceRoot":"../../../src","sources":["types/Errors.ts"],"mappings":"wgBAAY,CAAAA,mBAAmB,CAAAC,OAAA,CAAAD,mBAAA,UAAnBA,mBAAmB,EAAnBA,mBAAmB,wBAAnBA,mBAAmB,oBAAnBA,mBAAmB,4BAAnB,CAAAA,mBAAmB,UAMnB,CAAAE,eAAe,CAAAD,OAAA,CAAAC,eAAA,UAAfA,eAAe,EAAfA,eAAe,wBAAfA,eAAe,oBAAfA,eAAe,4BAAf,CAAAA,eAAe,UAMf,CAAAC,uBAAuB,CAAAF,OAAA,CAAAE,uBAAA,UAAvBA,uBAAuB,EAAvBA,uBAAuB,wBAAvBA,uBAAuB,oBAAvBA,uBAAuB,4BAAvB,CAAAA,uBAAuB,UAMvB,CAAAC,wBAAwB,CAAAH,OAAA,CAAAG,wBAAA,UAAxBA,wBAAwB,EAAxBA,wBAAwB,0BAAxB,CAAAA,wBAAwB,UAIxB,CAAAC,gBAAgB,CAAAJ,OAAA,CAAAI,gBAAA,UAAhBA,gBAAgB,EAAhBA,gBAAgB,0BAAhB,CAAAA,gBAAgB,UAIhB,CAAAC,0BAA0B,CAAAL,OAAA,CAAAK,0BAAA,UAA1BA,0BAA0B,EAA1BA,0BAA0B,4BAA1B,CAAAA,0BAA0B,UAI1B,CAAAC,wBAAwB,CAAAN,OAAA,CAAAM,wBAAA,UAAxBA,wBAAwB,EAAxBA,wBAAwB,4BAAxB,CAAAA,wBAAwB,UAIxB,CAAAC,aAAa,CAAAP,OAAA,CAAAO,aAAA,UAAbA,aAAa,EAAbA,aAAa,wBAAbA,aAA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Field","PaymentRequestType","ApplePayMerchantCapability","ApplePayShippingType","BillingAddressFormat","ButtonType","ButtonStyle","PaymentType","IntervalUnit"],"sourceRoot":"../../../src","sources":["types/PlatformPay.ts"],"mappings":"4VAoBY,CAAAA,sBAAsB,CAAAC,OAAA,CAAAD,sBAAA,UAAtBA,sBAAsB,EAAtBA,sBAAsB,oDAAtBA,sBAAsB,gEAAtBA,sBAAsB,0CAAtBA,sBAAsB,gDAAtB,CAAAA,sBAAsB,UAOtB,CAAAE,YAAY,CAAAD,OAAA,CAAAC,YAAA,UAAZA,YAAY,EAAZA,YAAY,gCAAZA,YAAY,gBAAZA,YAAY,8BAAZA,YAAY,gCAAZA,YAAY,wCAAZ,CAAAA,YAAY,UAQZ,CAAAC,oBAAoB,CAAAF,OAAA,CAAAE,oBAAA,UAApBA,oBAAoB,EAApBA,oBAAoB,oBAApBA,oBAAoB,gBAApBA,oBAAoB,kDAApBA,oBAAoB,kBAApBA,oBAAoB,4BAApBA,oBAAoB,sBAApBA,oBAAoB,8BAApBA,oBAAoB,oCAApB,CAAAA,oBAAoB,UA0CpB,CAAAC,kBAAkB,CAAAH,OAAA,CAAAG,kBAAA,UAAlBA,kBAAkB,EAAlBA,kBAAkB,0BAAlBA,kBAAkB,sCAAlBA,kBAAkB,wCAAlB,CAAAA,kBAAkB,UAsElB,CAAAC,0BAA0B,CAAAJ,OAAA,CAAAI,0BAAA,UAA1BA,0BAA0B,EAA1BA,0BAA0B,8BAA1BA,0BAA0B,oCAA1BA,0BAA0B,wCAA1B,CAAAA,0BAA0B,UAU1B,CAAAC,oBAAoB,CAAAL,OAAA,CAAAK,oBAAA,UAApBA,oBAAoB,EAApBA,oBAAoB,wBAApBA,oBAAoB,wBAApBA,oBAAoB,8BAApBA,oBAAoB,wCAApB,CAAAA,oBAAoB,UAwDpB,CAAAC,oBAAoB,CAAAN,OAAA,CAAAM,oBAAA,UAApBA,oBAAoB,EAApBA,oBAAoB,gBAApBA,oBAAoB,oBAApB,CAAAA,oBAAoB,UAqBpB,CAAAC,UAAU,CAAAP,OAAA,CAAAO,UAAA,UAAVA,UAAU,EAAVA,UAAU,CAAVA,UAAU,yBAAVA,UAAU,CAAVA,UAAU,iBAAVA,UAAU,CAAVA,UAAU,mBAAVA,UAAU,CAAVA,UAAU,2BAAVA,UAAU,CAAVA,UAAU,uBAAVA,UAAU,CAAVA,UAAU,sBAAVA,UAAU,CAAVA,UAAU,6BAAVA,UAAU,CAAVA,UAAU,qBAAVA,UAAU,CAAVA,UAAU,yBAAVA,UAAU,CAAVA,UAAU,uBAAVA,UAAU,CAAVA,UAAU,2BAAVA,UAAU,CAAVA,UAAU,sBAAVA,UAAU,CAAVA,UAAU,oBAAVA,UAAU,CAAVA,UAAU,0BAAVA,UAAU,CAAVA,UAAU,gCAAVA,UAAU,CAAVA,UAAU,kBAAVA,UAAU,CAAVA,UAAU,4BAAVA,UAAU,CAAVA,UAAU,oBAAVA,UAAU,CAAVA,UAAU,8CAAV,CAAAA,UAAU,UA0CV,CAAAC,WAAW,CAAAR,OAAA,CAAAQ,WAAA,UAAXA,WAAW,EAAXA,WAAW,CAAXA,WAAW,qBAAXA,WAAW,CAAXA,WAAW,mCAAXA,WAAW,CAAXA,WAAW,qBAAXA,WAAW,CAAXA,WAAW,mCAAX,CAAAA,WAAW,UAkBX,CAAAC,WAAW,CAAAT,OAAA,CAAAS,WAAA,UAAXA,WAAW,EAAXA,WAAW,wBAAXA,WAAW,0BAAXA,WAAW,gCAAX,CAAAA,WAAW,
|
|
1
|
+
{"version":3,"names":["ApplePaySheetErrorType","exports","ContactField","InvalidShippingField","PaymentRequestType","ApplePayMerchantCapability","ApplePayShippingType","BillingAddressFormat","ButtonType","ButtonStyle","PaymentType","IntervalUnit"],"sourceRoot":"../../../src","sources":["types/PlatformPay.ts"],"mappings":"4VAoBY,CAAAA,sBAAsB,CAAAC,OAAA,CAAAD,sBAAA,UAAtBA,sBAAsB,EAAtBA,sBAAsB,oDAAtBA,sBAAsB,gEAAtBA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AAU,CAAVA,UAAU,6BAAVA,UAAU,CAAVA,UAAU,qBAAVA,UAAU,CAAVA,UAAU,yBAAVA,UAAU,CAAVA,UAAU,uBAAVA,UAAU,CAAVA,UAAU,2BAAVA,UAAU,CAAVA,UAAU,sBAAVA,UAAU,CAAVA,UAAU,oBAAVA,UAAU,CAAVA,UAAU,0BAAVA,UAAU,CAAVA,UAAU,gCAAVA,UAAU,CAAVA,UAAU,kBAAVA,UAAU,CAAVA,UAAU,4BAAVA,UAAU,CAAVA,UAAU,oBAAVA,UAAU,CAAVA,UAAU,8CAAV,CAAAA,UAAU,UA0CV,CAAAC,WAAW,CAAAR,OAAA,CAAAQ,WAAA,UAAXA,WAAW,EAAXA,WAAW,CAAXA,WAAW,qBAAXA,WAAW,CAAXA,WAAW,mCAAXA,WAAW,CAAXA,WAAW,qBAAXA,WAAW,CAAXA,WAAW,mCAAX,CAAAA,WAAW,UAkBX,CAAAC,WAAW,CAAAT,OAAA,CAAAS,WAAA,UAAXA,WAAW,EAAXA,WAAW,wBAAXA,WAAW,0BAAXA,WAAW,gCAAX,CAAAA,WAAW,UA8CX,CAAAC,YAAY,CAAAV,OAAA,CAAAU,YAAA,UAAZA,YAAY,EAAZA,YAAY,oBAAZA,YAAY,gBAAZA,YAAY,cAAZA,YAAY,kBAAZA,YAAY,sBAAZ,CAAAA,YAAY","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:true});var _exportNames={ApplePay:true,PaymentIntent:true,PaymentMethod:true,PaymentMethodLayout:true,PaymentSheet:true,SetupIntent:true,ThreeDSecure:true,AuBECSDebitFormComponent:true,CardFieldInput:true,CardFormView:true,Token:true,FinancialConnections:true,PlatformPay:true,
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:true});var _exportNames={ApplePay:true,PaymentIntent:true,PaymentMethod:true,PaymentMethodLayout:true,PaymentSheet:true,SetupIntent:true,ThreeDSecure:true,AuBECSDebitFormComponent:true,CardFieldInput:true,CardFormView:true,Token:true,FinancialConnections:true,PlatformPay:true,CardBrand:true};exports.AuBECSDebitFormComponent=exports.ApplePay=void 0;Object.defineProperty(exports,"CardBrand",{enumerable:true,get:function get(){return _Common.CardBrand;}});exports.PaymentMethod=exports.PaymentIntent=exports.FinancialConnections=exports.CardFormView=exports.CardFieldInput=void 0;Object.defineProperty(exports,"PaymentMethodLayout",{enumerable:true,get:function get(){return PaymentSheet.PaymentMethodLayout;}});exports.Token=exports.ThreeDSecure=exports.SetupIntent=exports.PlatformPay=exports.PaymentSheet=void 0;var ApplePay=_interopRequireWildcard(require("./ApplePay"));exports.ApplePay=ApplePay;var PaymentIntent=_interopRequireWildcard(require("./PaymentIntent"));exports.PaymentIntent=PaymentIntent;var PaymentMethod=_interopRequireWildcard(require("./PaymentMethod"));exports.PaymentMethod=PaymentMethod;var PaymentSheet=_interopRequireWildcard(require("./PaymentSheet"));exports.PaymentSheet=PaymentSheet;var SetupIntent=_interopRequireWildcard(require("./SetupIntent"));exports.SetupIntent=SetupIntent;var ThreeDSecure=_interopRequireWildcard(require("./ThreeDSecure"));exports.ThreeDSecure=ThreeDSecure;var AuBECSDebitFormComponent=_interopRequireWildcard(require("./components/AuBECSDebitFormComponent"));exports.AuBECSDebitFormComponent=AuBECSDebitFormComponent;var CardFieldInput=_interopRequireWildcard(require("./components/CardFieldInput"));exports.CardFieldInput=CardFieldInput;var CardFormView=_interopRequireWildcard(require("./components/CardFormView"));exports.CardFormView=CardFormView;var Token=_interopRequireWildcard(require("./Token"));exports.Token=Token;var FinancialConnections=_interopRequireWildcard(require("./FinancialConnections"));exports.FinancialConnections=FinancialConnections;var PlatformPay=_interopRequireWildcard(require("./PlatformPay"));exports.PlatformPay=PlatformPay;var _PushProvisioning=require("./PushProvisioning");Object.keys(_PushProvisioning).forEach(function(key){if(key==="default"||key==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,key))return;if(key in exports&&exports[key]===_PushProvisioning[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _PushProvisioning[key];}});});var _Errors=require("./Errors");Object.keys(_Errors).forEach(function(key){if(key==="default"||key==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,key))return;if(key in exports&&exports[key]===_Errors[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _Errors[key];}});});var _CustomerSheet=require("./CustomerSheet");Object.keys(_CustomerSheet).forEach(function(key){if(key==="default"||key==="__esModule")return;if(Object.prototype.hasOwnProperty.call(_exportNames,key))return;if(key in exports&&exports[key]===_CustomerSheet[key])return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _CustomerSheet[key];}});});var _Common=require("./Common");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ApplePay","_interopRequireWildcard","require","exports","PaymentIntent","PaymentMethod","PaymentSheet","SetupIntent","ThreeDSecure","AuBECSDebitFormComponent","CardFieldInput","CardFormView","Token","FinancialConnections","PlatformPay","
|
|
1
|
+
{"version":3,"names":["ApplePay","_interopRequireWildcard","require","exports","PaymentIntent","PaymentMethod","PaymentSheet","SetupIntent","ThreeDSecure","AuBECSDebitFormComponent","CardFieldInput","CardFormView","Token","FinancialConnections","PlatformPay","_PushProvisioning","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","defineProperty","enumerable","get","_Errors","_CustomerSheet","_Common","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","n","__proto__","a","getOwnPropertyDescriptor","u","i","set"],"sourceRoot":"../../../src","sources":["types/index.ts"],"mappings":"k2BAeA,IAAAA,QAAA,CAAAC,uBAAA,CAAAC,OAAA,gBAAuCC,OAAA,CAAAH,QAAA,CAAAA,QAAA,CACvC,IAAAI,aAAA,CAAAH,uBAAA,CAAAC,OAAA,qBAAiDC,OAAA,CAAAC,aAAA,CAAAA,aAAA,CACjD,IAAAC,aAAA,CAAAJ,uBAAA,CAAAC,OAAA,qBAAiDC,OAAA,CAAAE,aAAA,CAAAA,aAAA,CACjD,IAAAC,YAAA,CAAAL,uBAAA,CAAAC,OAAA,oBAA+CC,OAAA,CAAAG,YAAA,CAAAA,YAAA,CAC/C,IAAAC,WAAA,CAAAN,uBAAA,CAAAC,OAAA,mBAA6CC,OAAA,CAAAI,WAAA,CAAAA,WAAA,CAC7C,IAAAC,YAAA,CAAAP,uBAAA,CAAAC,OAAA,oBAA+CC,OAAA,CAAAK,YAAA,CAAAA,YAAA,CAC/C,IAAAC,wBAAA,CAAAR,uBAAA,CAAAC,OAAA,2CAAkFC,OAAA,CAAAM,wBAAA,CAAAA,wBAAA,CAClF,IAAAC,cAAA,CAAAT,uBAAA,CAAAC,OAAA,iCAA8DC,OAAA,CAAAO,cAAA,CAAAA,cAAA,CAC9D,IAAAC,YAAA,CAAAV,uBAAA,CAAAC,OAAA,+BAA0DC,OAAA,CAAAQ,YAAA,CAAAA,YAAA,CAC1D,IAAAC,KAAA,CAAAX,uBAAA,CAAAC,OAAA,aAAiCC,OAAA,CAAAS,KAAA,CAAAA,KAAA,CACjC,IAAAC,oBAAA,CAAAZ,uBAAA,CAAAC,OAAA,4BAA+DC,OAAA,CAAAU,oBAAA,CAAAA,oBAAA,CAC/D,IAAAC,WAAA,CAAAb,uBAAA,CAAAC,OAAA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vider.d.ts","sourceRoot":"","sources":["../../../../src/components/StripeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"StripeProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/StripeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAIzC,OAAO,KAAK,EAAW,gBAAgB,EAAoB,MAAM,UAAU,CAAC;AAM5E;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG,gBAAgB,GAAG;IACrC,QAAQ,EAAE,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;CACrD,CAAC;AAcF,eAAO,MAAM,UAAU,WAAkB,gBAAgB,KAAG,OAAO,CAAC,IAAI,CAmBvE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,SAAS,EACT,2BAA2B,GAC5B,EAAE,KAAK,qBAsCP"}
|