├── .gitignore
├── .travis.yml
├── README.md
├── lerna.json
├── package.json
├── packages
├── react-native-payments-addon-braintree
│ ├── .gitignore
│ ├── .npmignore
│ ├── Cartfile
│ ├── Cartfile.resolved
│ ├── README.md
│ └── package.json
├── react-native-payments-addon-stripe
│ ├── .gitignore
│ ├── Cartfile
│ ├── Cartfile.resolved
│ ├── README.md
│ └── package.json
├── react-native-payments-cli
│ ├── .npmignore
│ ├── README.md
│ ├── index.js
│ ├── ios
│ │ ├── RNPCLIProject.xcodeproj
│ │ │ ├── project.pbxproj
│ │ │ ├── project.xcworkspace
│ │ │ │ ├── contents.xcworkspacedata
│ │ │ │ └── xcuserdata
│ │ │ │ │ └── naoufal.xcuserdatad
│ │ │ │ │ └── UserInterfaceState.xcuserstate
│ │ │ └── xcuserdata
│ │ │ │ └── naoufal.xcuserdatad
│ │ │ │ └── xcschemes
│ │ │ │ ├── RNPCLIProject.xcscheme
│ │ │ │ └── xcschememanagement.plist
│ │ └── RNPCLIProject
│ │ │ ├── AppDelegate.h
│ │ │ ├── AppDelegate.m
│ │ │ ├── Assets.xcassets
│ │ │ └── AppIcon.appiconset
│ │ │ │ └── Contents.json
│ │ │ ├── Base.lproj
│ │ │ ├── LaunchScreen.storyboard
│ │ │ └── Main.storyboard
│ │ │ ├── Info.plist
│ │ │ ├── ViewController.h
│ │ │ ├── ViewController.m
│ │ │ └── main.m
│ ├── lib
│ │ ├── commands.js
│ │ └── helpers.js
│ ├── package.json
│ └── yarn.lock
└── react-native-payments
│ ├── .babelrc
│ ├── .flowconfig
│ ├── .gitignore
│ ├── .npmignore
│ ├── android
│ ├── build.gradle
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ └── java
│ │ └── com
│ │ └── reactnativepayments
│ │ ├── ReactNativePaymentsModule.java
│ │ └── ReactNativePaymentsPackage.java
│ ├── docs
│ ├── ApplePayButton.md
│ ├── NativePayments.md
│ ├── PaymentRequest.md
│ ├── PaymentRequestUpdateEvent.md
│ └── PaymentResponse.md
│ ├── examples
│ ├── braintree
│ │ ├── .babelrc
│ │ ├── .buckconfig
│ │ ├── .flowconfig
│ │ ├── .gitattributes
│ │ ├── .gitignore
│ │ ├── .watchmanconfig
│ │ ├── __tests__
│ │ │ ├── index.android.js
│ │ │ └── index.ios.js
│ │ ├── android
│ │ │ ├── app
│ │ │ │ ├── BUCK
│ │ │ │ ├── build.gradle
│ │ │ │ ├── proguard-rules.pro
│ │ │ │ └── src
│ │ │ │ │ └── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ └── com
│ │ │ │ │ │ └── braintreeexample
│ │ │ │ │ │ ├── MainActivity.java
│ │ │ │ │ │ └── MainApplication.java
│ │ │ │ │ └── res
│ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ └── values
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ └── styles.xml
│ │ │ ├── build.gradle
│ │ │ ├── gradle.properties
│ │ │ ├── gradle
│ │ │ │ └── wrapper
│ │ │ │ │ ├── gradle-wrapper.jar
│ │ │ │ │ └── gradle-wrapper.properties
│ │ │ ├── gradlew
│ │ │ ├── gradlew.bat
│ │ │ ├── keystores
│ │ │ │ ├── BUCK
│ │ │ │ └── debug.keystore.properties
│ │ │ └── settings.gradle
│ │ ├── index.android.js
│ │ ├── index.ios.js
│ │ ├── ios
│ │ │ ├── BraintreeExample-tvOS
│ │ │ │ └── Info.plist
│ │ │ ├── BraintreeExample-tvOSTests
│ │ │ │ └── Info.plist
│ │ │ ├── BraintreeExample.xcodeproj
│ │ │ │ ├── project.pbxproj
│ │ │ │ └── xcshareddata
│ │ │ │ │ └── xcschemes
│ │ │ │ │ ├── BraintreeExample-tvOS.xcscheme
│ │ │ │ │ └── BraintreeExample.xcscheme
│ │ │ ├── BraintreeExample
│ │ │ │ ├── AppDelegate.h
│ │ │ │ ├── AppDelegate.m
│ │ │ │ ├── Base.lproj
│ │ │ │ │ └── LaunchScreen.xib
│ │ │ │ ├── BraintreeExample.entitlements
│ │ │ │ ├── Images.xcassets
│ │ │ │ │ └── AppIcon.appiconset
│ │ │ │ │ │ └── Contents.json
│ │ │ │ ├── Info.plist
│ │ │ │ └── main.m
│ │ │ └── BraintreeExampleTests
│ │ │ │ ├── BraintreeExampleTests.m
│ │ │ │ └── Info.plist
│ │ ├── package.json
│ │ ├── webpack.haul.js
│ │ └── yarn.lock
│ ├── common
│ │ ├── App.js
│ │ ├── components
│ │ │ └── Header.js
│ │ ├── config
│ │ │ └── index.js
│ │ ├── handlers
│ │ │ └── index.js
│ │ ├── services
│ │ │ └── shipping.js
│ │ └── styles
│ │ │ └── index.js
│ ├── native-next
│ │ ├── .babelrc
│ │ ├── .buckconfig
│ │ ├── .flowconfig
│ │ ├── .gitattributes
│ │ ├── .gitignore
│ │ ├── .watchmanconfig
│ │ ├── App.js
│ │ ├── android
│ │ │ ├── app
│ │ │ │ ├── BUCK
│ │ │ │ ├── build.gradle
│ │ │ │ ├── proguard-rules.pro
│ │ │ │ └── src
│ │ │ │ │ └── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ └── com
│ │ │ │ │ │ └── example
│ │ │ │ │ │ ├── MainActivity.java
│ │ │ │ │ │ └── MainApplication.java
│ │ │ │ │ └── res
│ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ └── values
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ └── styles.xml
│ │ │ ├── build.gradle
│ │ │ ├── gradle.properties
│ │ │ ├── gradle
│ │ │ │ └── wrapper
│ │ │ │ │ ├── gradle-wrapper.jar
│ │ │ │ │ └── gradle-wrapper.properties
│ │ │ ├── gradlew
│ │ │ ├── gradlew.bat
│ │ │ ├── keystores
│ │ │ │ ├── BUCK
│ │ │ │ └── debug.keystore.properties
│ │ │ └── settings.gradle
│ │ ├── app.json
│ │ ├── index.js
│ │ ├── ios
│ │ │ ├── example-tvOS
│ │ │ │ └── Info.plist
│ │ │ ├── example-tvOSTests
│ │ │ │ └── Info.plist
│ │ │ ├── example.xcodeproj
│ │ │ │ ├── project.pbxproj
│ │ │ │ └── xcshareddata
│ │ │ │ │ └── xcschemes
│ │ │ │ │ ├── example-tvOS.xcscheme
│ │ │ │ │ └── example.xcscheme
│ │ │ ├── example
│ │ │ │ ├── AppDelegate.h
│ │ │ │ ├── AppDelegate.m
│ │ │ │ ├── Base.lproj
│ │ │ │ │ └── LaunchScreen.xib
│ │ │ │ ├── Images.xcassets
│ │ │ │ │ ├── AppIcon.appiconset
│ │ │ │ │ │ └── Contents.json
│ │ │ │ │ └── Contents.json
│ │ │ │ ├── Info.plist
│ │ │ │ └── main.m
│ │ │ └── exampleTests
│ │ │ │ ├── Info.plist
│ │ │ │ └── exampleTests.m
│ │ ├── package.json
│ │ └── yarn.lock
│ ├── native
│ │ ├── .babelrc
│ │ ├── .buckconfig
│ │ ├── .flowconfig
│ │ ├── .gitattributes
│ │ ├── .gitignore
│ │ ├── .vscode
│ │ │ └── settings.json
│ │ ├── .watchmanconfig
│ │ ├── App.js
│ │ ├── __tests__
│ │ │ ├── index.android.js
│ │ │ └── index.ios.js
│ │ ├── android
│ │ │ ├── app
│ │ │ │ ├── BUCK
│ │ │ │ ├── build.gradle
│ │ │ │ ├── proguard-rules.pro
│ │ │ │ └── src
│ │ │ │ │ └── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ └── com
│ │ │ │ │ │ └── reactnativepaymentsexample
│ │ │ │ │ │ ├── MainActivity.java
│ │ │ │ │ │ └── MainApplication.java
│ │ │ │ │ └── res
│ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ └── values
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ └── styles.xml
│ │ │ ├── build.gradle
│ │ │ ├── gradle.properties
│ │ │ ├── gradle
│ │ │ │ └── wrapper
│ │ │ │ │ ├── gradle-wrapper.jar
│ │ │ │ │ └── gradle-wrapper.properties
│ │ │ ├── gradlew
│ │ │ ├── gradlew.bat
│ │ │ ├── keystores
│ │ │ │ ├── BUCK
│ │ │ │ └── debug.keystore.properties
│ │ │ └── settings.gradle
│ │ ├── index.android.js
│ │ ├── index.ios.js
│ │ ├── ios
│ │ │ ├── ReactNativePaymentsExample-tvOS
│ │ │ │ └── Info.plist
│ │ │ ├── ReactNativePaymentsExample-tvOSTests
│ │ │ │ └── Info.plist
│ │ │ ├── ReactNativePaymentsExample.xcodeproj
│ │ │ │ ├── project.pbxproj
│ │ │ │ └── xcshareddata
│ │ │ │ │ └── xcschemes
│ │ │ │ │ ├── ReactNativePaymentsExample-tvOS.xcscheme
│ │ │ │ │ └── ReactNativePaymentsExample.xcscheme
│ │ │ ├── ReactNativePaymentsExample
│ │ │ │ ├── AppDelegate.h
│ │ │ │ ├── AppDelegate.m
│ │ │ │ ├── Base.lproj
│ │ │ │ │ └── LaunchScreen.xib
│ │ │ │ ├── Images.xcassets
│ │ │ │ │ └── AppIcon.appiconset
│ │ │ │ │ │ └── Contents.json
│ │ │ │ ├── Info.plist
│ │ │ │ ├── ReactNativePaymentsExample.entitlements
│ │ │ │ └── main.m
│ │ │ ├── ReactNativePaymentsExampleTests
│ │ │ │ ├── Info.plist
│ │ │ │ └── ReactNativePaymentsExampleTests.m
│ │ │ └── main.jsbundle
│ │ ├── package.json
│ │ ├── webpack.haul.js
│ │ └── yarn.lock
│ ├── stripe
│ │ ├── .babelrc
│ │ ├── .buckconfig
│ │ ├── .flowconfig
│ │ ├── .gitattributes
│ │ ├── .gitignore
│ │ ├── .watchmanconfig
│ │ ├── __tests__
│ │ │ ├── index.android.js
│ │ │ └── index.ios.js
│ │ ├── android
│ │ │ ├── app
│ │ │ │ ├── BUCK
│ │ │ │ ├── build.gradle
│ │ │ │ ├── proguard-rules.pro
│ │ │ │ └── src
│ │ │ │ │ └── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── java
│ │ │ │ │ └── com
│ │ │ │ │ │ └── stripeexample
│ │ │ │ │ │ ├── MainActivity.java
│ │ │ │ │ │ └── MainApplication.java
│ │ │ │ │ └── res
│ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ └── values
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ └── styles.xml
│ │ │ ├── build.gradle
│ │ │ ├── gradle.properties
│ │ │ ├── gradle
│ │ │ │ └── wrapper
│ │ │ │ │ ├── gradle-wrapper.jar
│ │ │ │ │ └── gradle-wrapper.properties
│ │ │ ├── gradlew
│ │ │ ├── gradlew.bat
│ │ │ ├── keystores
│ │ │ │ ├── BUCK
│ │ │ │ └── debug.keystore.properties
│ │ │ └── settings.gradle
│ │ ├── icon.png
│ │ ├── index.android.js
│ │ ├── index.ios.js
│ │ ├── ios
│ │ │ ├── Frameworks
│ │ │ │ └── Stripe.framework
│ │ │ │ │ ├── Headers
│ │ │ │ │ ├── Info.plist
│ │ │ │ │ ├── Modules
│ │ │ │ │ ├── Stripe
│ │ │ │ │ ├── Stripe.bundle
│ │ │ │ │ ├── Info.plist
│ │ │ │ │ ├── _CodeSignature
│ │ │ │ │ │ ├── CodeDirectory
│ │ │ │ │ │ ├── CodeRequirements
│ │ │ │ │ │ ├── CodeRequirements-1
│ │ │ │ │ │ ├── CodeResources
│ │ │ │ │ │ └── CodeSignature
│ │ │ │ │ ├── de.lproj
│ │ │ │ │ │ └── Localizable.strings
│ │ │ │ │ ├── en.lproj
│ │ │ │ │ │ └── Localizable.strings
│ │ │ │ │ ├── es.lproj
│ │ │ │ │ │ └── Localizable.strings
│ │ │ │ │ ├── fr.lproj
│ │ │ │ │ │ └── Localizable.strings
│ │ │ │ │ ├── it.lproj
│ │ │ │ │ │ └── Localizable.strings
│ │ │ │ │ ├── ja.lproj
│ │ │ │ │ │ └── Localizable.strings
│ │ │ │ │ ├── nl.lproj
│ │ │ │ │ │ └── Localizable.strings
│ │ │ │ │ ├── stp_card_amex.png
│ │ │ │ │ ├── stp_card_amex@2x.png
│ │ │ │ │ ├── stp_card_amex@3x.png
│ │ │ │ │ ├── stp_card_amex_template.png
│ │ │ │ │ ├── stp_card_amex_template@2x.png
│ │ │ │ │ ├── stp_card_amex_template@3x.png
│ │ │ │ │ ├── stp_card_applepay.png
│ │ │ │ │ ├── stp_card_applepay@2x.png
│ │ │ │ │ ├── stp_card_applepay@3x.png
│ │ │ │ │ ├── stp_card_cvc.png
│ │ │ │ │ ├── stp_card_cvc@2x.png
│ │ │ │ │ ├── stp_card_cvc@3x.png
│ │ │ │ │ ├── stp_card_cvc_amex.png
│ │ │ │ │ ├── stp_card_cvc_amex@2x.png
│ │ │ │ │ ├── stp_card_cvc_amex@3x.png
│ │ │ │ │ ├── stp_card_diners.png
│ │ │ │ │ ├── stp_card_diners@2x.png
│ │ │ │ │ ├── stp_card_diners@3x.png
│ │ │ │ │ ├── stp_card_diners_template.png
│ │ │ │ │ ├── stp_card_diners_template@2x.png
│ │ │ │ │ ├── stp_card_diners_template@3x.png
│ │ │ │ │ ├── stp_card_discover.png
│ │ │ │ │ ├── stp_card_discover@2x.png
│ │ │ │ │ ├── stp_card_discover@3x.png
│ │ │ │ │ ├── stp_card_discover_template.png
│ │ │ │ │ ├── stp_card_discover_template@2x.png
│ │ │ │ │ ├── stp_card_discover_template@3x.png
│ │ │ │ │ ├── stp_card_error.png
│ │ │ │ │ ├── stp_card_error@2x.png
│ │ │ │ │ ├── stp_card_error@3x.png
│ │ │ │ │ ├── stp_card_error_amex.png
│ │ │ │ │ ├── stp_card_error_amex@2x.png
│ │ │ │ │ ├── stp_card_error_amex@3x.png
│ │ │ │ │ ├── stp_card_form_back.png
│ │ │ │ │ ├── stp_card_form_back@2x.png
│ │ │ │ │ ├── stp_card_form_back@3x.png
│ │ │ │ │ ├── stp_card_form_front.png
│ │ │ │ │ ├── stp_card_form_front@2x.png
│ │ │ │ │ ├── stp_card_form_front@3x.png
│ │ │ │ │ ├── stp_card_jcb.png
│ │ │ │ │ ├── stp_card_jcb@2x.png
│ │ │ │ │ ├── stp_card_jcb@3x.png
│ │ │ │ │ ├── stp_card_jcb_template.png
│ │ │ │ │ ├── stp_card_jcb_template@2x.png
│ │ │ │ │ ├── stp_card_jcb_template@3x.png
│ │ │ │ │ ├── stp_card_mastercard.png
│ │ │ │ │ ├── stp_card_mastercard@2x.png
│ │ │ │ │ ├── stp_card_mastercard@3x.png
│ │ │ │ │ ├── stp_card_mastercard_template.png
│ │ │ │ │ ├── stp_card_mastercard_template@2x.png
│ │ │ │ │ ├── stp_card_mastercard_template@3x.png
│ │ │ │ │ ├── stp_card_unknown.png
│ │ │ │ │ ├── stp_card_unknown@2x.png
│ │ │ │ │ ├── stp_card_unknown@3x.png
│ │ │ │ │ ├── stp_card_visa.png
│ │ │ │ │ ├── stp_card_visa@2x.png
│ │ │ │ │ ├── stp_card_visa@3x.png
│ │ │ │ │ ├── stp_card_visa_template.png
│ │ │ │ │ ├── stp_card_visa_template@2x.png
│ │ │ │ │ ├── stp_card_visa_template@3x.png
│ │ │ │ │ ├── stp_icon_add.png
│ │ │ │ │ ├── stp_icon_add@2x.png
│ │ │ │ │ ├── stp_icon_add@3x.png
│ │ │ │ │ ├── stp_icon_checkmark.png
│ │ │ │ │ ├── stp_icon_checkmark@2x.png
│ │ │ │ │ ├── stp_icon_checkmark@3x.png
│ │ │ │ │ ├── stp_icon_chevron_left.png
│ │ │ │ │ ├── stp_icon_chevron_left@2x.png
│ │ │ │ │ ├── stp_icon_chevron_left@3x.png
│ │ │ │ │ ├── stp_shipping_form.png
│ │ │ │ │ ├── stp_shipping_form@2x.png
│ │ │ │ │ ├── stp_shipping_form@3x.png
│ │ │ │ │ └── zh-Hans.lproj
│ │ │ │ │ │ └── Localizable.strings
│ │ │ │ │ └── Versions
│ │ │ │ │ ├── A
│ │ │ │ │ ├── Headers
│ │ │ │ │ │ ├── STPAPIClient+ApplePay.h
│ │ │ │ │ │ ├── STPAPIClient.h
│ │ │ │ │ │ ├── STPAPIResponseDecodable.h
│ │ │ │ │ │ ├── STPAddCardViewController.h
│ │ │ │ │ │ ├── STPAddress.h
│ │ │ │ │ │ ├── STPApplePayPaymentMethod.h
│ │ │ │ │ │ ├── STPBackendAPIAdapter.h
│ │ │ │ │ │ ├── STPBankAccount.h
│ │ │ │ │ │ ├── STPBankAccountParams.h
│ │ │ │ │ │ ├── STPBlocks.h
│ │ │ │ │ │ ├── STPCard.h
│ │ │ │ │ │ ├── STPCardBrand.h
│ │ │ │ │ │ ├── STPCardParams.h
│ │ │ │ │ │ ├── STPCardValidationState.h
│ │ │ │ │ │ ├── STPCardValidator.h
│ │ │ │ │ │ ├── STPCoreScrollViewController.h
│ │ │ │ │ │ ├── STPCoreTableViewController.h
│ │ │ │ │ │ ├── STPCoreViewController.h
│ │ │ │ │ │ ├── STPCustomer.h
│ │ │ │ │ │ ├── STPCustomerContext.h
│ │ │ │ │ │ ├── STPEphemeralKeyProvider.h
│ │ │ │ │ │ ├── STPFile.h
│ │ │ │ │ │ ├── STPFormEncodable.h
│ │ │ │ │ │ ├── STPImageLibrary.h
│ │ │ │ │ │ ├── STPPaymentActivityIndicatorView.h
│ │ │ │ │ │ ├── STPPaymentCardTextField.h
│ │ │ │ │ │ ├── STPPaymentConfiguration.h
│ │ │ │ │ │ ├── STPPaymentContext.h
│ │ │ │ │ │ ├── STPPaymentMethod.h
│ │ │ │ │ │ ├── STPPaymentMethodsViewController.h
│ │ │ │ │ │ ├── STPPaymentResult.h
│ │ │ │ │ │ ├── STPRedirectContext.h
│ │ │ │ │ │ ├── STPShippingAddressViewController.h
│ │ │ │ │ │ ├── STPSource.h
│ │ │ │ │ │ ├── STPSourceCardDetails.h
│ │ │ │ │ │ ├── STPSourceOwner.h
│ │ │ │ │ │ ├── STPSourceParams.h
│ │ │ │ │ │ ├── STPSourceProtocol.h
│ │ │ │ │ │ ├── STPSourceReceiver.h
│ │ │ │ │ │ ├── STPSourceRedirect.h
│ │ │ │ │ │ ├── STPSourceSEPADebitDetails.h
│ │ │ │ │ │ ├── STPSourceVerification.h
│ │ │ │ │ │ ├── STPTheme.h
│ │ │ │ │ │ ├── STPToken.h
│ │ │ │ │ │ ├── STPUserInformation.h
│ │ │ │ │ │ ├── Stripe.h
│ │ │ │ │ │ ├── StripeError.h
│ │ │ │ │ │ └── UINavigationBar+Stripe_Theme.h
│ │ │ │ │ ├── Modules
│ │ │ │ │ │ └── module.modulemap
│ │ │ │ │ └── Stripe
│ │ │ │ │ └── Current
│ │ │ ├── StripeExample-tvOS
│ │ │ │ └── Info.plist
│ │ │ ├── StripeExample-tvOSTests
│ │ │ │ └── Info.plist
│ │ │ ├── StripeExample.xcodeproj
│ │ │ │ ├── project.pbxproj
│ │ │ │ └── xcshareddata
│ │ │ │ │ └── xcschemes
│ │ │ │ │ ├── StripeExample-tvOS.xcscheme
│ │ │ │ │ └── StripeExample.xcscheme
│ │ │ ├── StripeExample
│ │ │ │ ├── AppDelegate.h
│ │ │ │ ├── AppDelegate.m
│ │ │ │ ├── Base.lproj
│ │ │ │ │ └── LaunchScreen.xib
│ │ │ │ ├── Images.xcassets
│ │ │ │ │ └── AppIcon.appiconset
│ │ │ │ │ │ └── Contents.json
│ │ │ │ ├── Info.plist
│ │ │ │ ├── StripeExample.entitlements
│ │ │ │ └── main.m
│ │ │ └── StripeExampleTests
│ │ │ │ ├── Info.plist
│ │ │ │ └── StripeExampleTests.m
│ │ ├── package.json
│ │ ├── webpack.haul.js
│ │ └── yarn.lock
│ └── web
│ │ ├── .gitignore
│ │ ├── index.web.js
│ │ ├── package.json
│ │ ├── public
│ │ └── index.html
│ │ ├── webpack.base.config.js
│ │ ├── webpack.development.config.js
│ │ ├── webpack.production.config.js
│ │ └── yarn.lock
│ ├── lib
│ ├── ios
│ │ ├── GatewayManager.h
│ │ ├── GatewayManager.m
│ │ ├── ReactNativePayments.h
│ │ ├── ReactNativePayments.m
│ │ ├── ReactNativePayments.podspec
│ │ ├── ReactNativePayments.xcodeproj
│ │ │ ├── project.pbxproj
│ │ │ └── project.xcworkspace
│ │ │ │ └── contents.xcworkspacedata
│ │ └── Views
│ │ │ ├── PKPaymentButtonManager.h
│ │ │ ├── PKPaymentButtonManager.m
│ │ │ ├── PKPaymentButtonView.h
│ │ │ └── PKPaymentButtonView.m
│ └── js
│ │ ├── NativePayments.js
│ │ ├── PKPaymentButton.js
│ │ ├── PaymentRequest.js
│ │ ├── PaymentRequestUpdateEvent.js
│ │ ├── PaymentResponse.js
│ │ ├── __mocks__
│ │ └── index.js
│ │ ├── __tests__
│ │ ├── PaymentRequest-test.js
│ │ ├── PaymentRequestUpdateEvent-test.js
│ │ ├── PaymentResponse-test.js
│ │ └── constants-test.js
│ │ ├── constants.js
│ │ ├── errors
│ │ ├── __tests__
│ │ │ └── index-test.js
│ │ └── index.js
│ │ ├── helpers
│ │ ├── __tests__
│ │ │ └── index-test.js
│ │ └── index.js
│ │ ├── index.js
│ │ └── types.js
│ ├── package.json
│ └── yarn.lock
└── yarn.lock
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | npm-debug.log
3 | lerna-debug.log
4 |
5 | # Intellij IDEA
6 | .idea
7 | *.iml
8 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "node"
4 | env:
5 | - TEST_DIR=packages/react-native-payments
6 | script: cd $TEST_DIR && yarn && yarn test -- --verbose --coverage
--------------------------------------------------------------------------------
/lerna.json:
--------------------------------------------------------------------------------
1 | {
2 | "lerna": "2.0.0",
3 | "packages": [
4 | "packages/*",
5 | "packages/react-native-payments/examples/*"
6 | ],
7 | "version": "0.0.0"
8 | }
9 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "scripts": {
3 | "precommit": "lint-staged"
4 | },
5 | "devDependencies": {
6 | "lerna": "^2.0.0",
7 | "lint-staged": "^4.0.0",
8 | "prettier": "^1.4.4"
9 | },
10 | "lint-staged": {
11 | "*.js": [
12 | "prettier --single-quote --write",
13 | "git add"
14 | ]
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/packages/react-native-payments-addon-braintree/.gitignore:
--------------------------------------------------------------------------------
1 | /Carthage
2 |
--------------------------------------------------------------------------------
/packages/react-native-payments-addon-braintree/.npmignore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments-addon-braintree/.npmignore
--------------------------------------------------------------------------------
/packages/react-native-payments-addon-braintree/Cartfile:
--------------------------------------------------------------------------------
1 | github "braintree/braintree_ios" == 4.9.6
2 |
--------------------------------------------------------------------------------
/packages/react-native-payments-addon-braintree/Cartfile.resolved:
--------------------------------------------------------------------------------
1 | github "braintree/braintree_ios" "4.9.6"
2 |
--------------------------------------------------------------------------------
/packages/react-native-payments-addon-braintree/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@react-native-payments/braintree",
3 | "version": "0.4.0",
4 | "description": "React Native Payments add-on for processing payments with Braintree.",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1",
8 | "prepublish": "carthage update --platform ios"
9 | },
10 | "repository": "https://github.com/naoufal/react-native-payments/tree/master/packages/react-native-payments-addon-braintree",
11 | "keywords": [
12 | "react",
13 | "react-native",
14 | "react-native-payments",
15 | "payments",
16 | "braintree"
17 | ],
18 | "author": "Naoufal Kadhom",
19 | "license": "MIT",
20 | "reactNativePaymentsAddonConfig": {
21 | "frameworks": ["BraintreeCore", "BraintreeApplePay"]
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/packages/react-native-payments-addon-stripe/.gitignore:
--------------------------------------------------------------------------------
1 | /Carthage
2 |
--------------------------------------------------------------------------------
/packages/react-native-payments-addon-stripe/Cartfile:
--------------------------------------------------------------------------------
1 | github "stripe/stripe-ios" == 11.1.0
2 |
--------------------------------------------------------------------------------
/packages/react-native-payments-addon-stripe/Cartfile.resolved:
--------------------------------------------------------------------------------
1 | github "stripe/stripe-ios" "v11.1.0"
2 |
--------------------------------------------------------------------------------
/packages/react-native-payments-addon-stripe/README.md:
--------------------------------------------------------------------------------
1 | # react-native-payments-addon-stripe
2 | React Native Payments add-on for processing payments with Stripe.
3 |
4 | ## Installation
5 | First, download the package:
6 |
7 | ```bash
8 | $ yarn add react-native-payments-addon-stripe
9 | ```
10 |
11 | Second, install the [React Native Payments CLI](https://www.npmjs.com/package/react-native-payments-cli):
12 | ```bash
13 | $ yarn add react-native-payments-cli
14 | ```
15 |
16 | Lastly, link the native dependencies with the React Native Payments CLI:
17 | ```bash
18 | $ yarn react-native-payments-cli -- link stripe
19 | ```
20 |
21 | _NOTE: `react-native-payments-cli` adds a Build Phase Script to your Xcode project that depends on Carthage._
22 |
23 | ## Usage
24 | In order to receive chargeable Stripe tokens as part of your `PaymentResponse`, you'll need to add some Stripe specific parameters to your `PaymentMethodData`.
25 |
26 | Here's an example of a Stripe enabled Payment Method Data:
27 |
28 | ```diff
29 | const METHOD_DATA = [{
30 | supportedMethods: ['apple-pay'],
31 | data: {
32 | merchantIdentifier: 'merchant.com.your-app.namespace',
33 | supportedNetworks: ['visa', 'mastercard', 'amex'],
34 | countryCode: 'US',
35 | currencyCode: 'USD',
36 | + paymentMethodTokenizationParameters: {
37 | + parameters: {
38 | + gateway: 'stripe',
39 | + 'stripe:publishableKey': 'your_publishable_key',
40 | + 'stripe:version': '5.0.0' // Only required on Android
41 | + }
42 | + }
43 | }
44 | }];
45 | ```
46 |
47 | ## Resources
48 | - [Creating an Apple Pay Certificate](https://stripe.com/docs/apple-pay/apps#csr)
49 | - [About Publishable Keys](https://stripe.com/docs/dashboard#api-keys)
--------------------------------------------------------------------------------
/packages/react-native-payments-addon-stripe/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@react-native-payments/stripe",
3 | "version": "0.4.0",
4 | "description": "React Native Payments add-on for processing payments with Stripe.",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1",
8 | "prepublish": "carthage update --platform ios"
9 | },
10 | "repository": "https://github.com/naoufal/react-native-payments/tree/master/packages/react-native-payments-addon-stripe",
11 | "keywords": [
12 | "react",
13 | "react-native",
14 | "react-native-payments",
15 | "payments",
16 | "stripe"
17 | ],
18 | "author": "Naoufal Kadhom",
19 | "license": "MIT",
20 | "reactNativePaymentsAddonConfig": {
21 | "frameworks": ["Stripe"]
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/packages/react-native-payments-cli/.npmignore:
--------------------------------------------------------------------------------
1 | ios/
2 |
--------------------------------------------------------------------------------
/packages/react-native-payments-cli/README.md:
--------------------------------------------------------------------------------
1 | # react-native-payments-cli
2 |
3 | ## Installation
4 | First, install [Carthage](https://github.com/Carthage/Carthage) (if you don't already have it installed):
5 |
6 | ```bash
7 | $ brew install carthage
8 | ```
9 |
10 | Second, install the package:
11 |
12 | ```bash
13 | $ yarn add react-native-payments-cli
14 | ```
15 |
16 | ## Commands
17 | ### list
18 | Outputs a list of installed add-ons that can be linked.
19 |
20 | #### Example
21 | ```bash
22 | $ react-native-payments-cli list
23 | ```
24 | ---
25 |
26 | ### link
27 | Links an add-ons native dependencies to your project.
28 |
29 | #### Example
30 | ```bash
31 | $ react-native-payments-cli link stripe
32 | ```
33 |
--------------------------------------------------------------------------------
/packages/react-native-payments-cli/ios/RNPCLIProject.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/packages/react-native-payments-cli/ios/RNPCLIProject.xcodeproj/project.xcworkspace/xcuserdata/naoufal.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments-cli/ios/RNPCLIProject.xcodeproj/project.xcworkspace/xcuserdata/naoufal.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/packages/react-native-payments-cli/ios/RNPCLIProject.xcodeproj/xcuserdata/naoufal.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | RNPCLIProject.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | AD19803A1F210B7E0070AFE8
16 |
17 | primary
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/packages/react-native-payments-cli/ios/RNPCLIProject/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // RNPCLIProject
4 | //
5 | // Created by Naoufal Kadhom on 7/20/17.
6 | // Copyright © 2017 Naoufal Kadhom. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/packages/react-native-payments-cli/ios/RNPCLIProject/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "ipad",
35 | "size" : "29x29",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "29x29",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "40x40",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "40x40",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "76x76",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "76x76",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
--------------------------------------------------------------------------------
/packages/react-native-payments-cli/ios/RNPCLIProject/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/packages/react-native-payments-cli/ios/RNPCLIProject/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/packages/react-native-payments-cli/ios/RNPCLIProject/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UILaunchStoryboardName
24 | LaunchScreen
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/packages/react-native-payments-cli/ios/RNPCLIProject/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // RNPCLIProject
4 | //
5 | // Created by Naoufal Kadhom on 7/20/17.
6 | // Copyright © 2017 Naoufal Kadhom. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/packages/react-native-payments-cli/ios/RNPCLIProject/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // RNPCLIProject
4 | //
5 | // Created by Naoufal Kadhom on 7/20/17.
6 | // Copyright © 2017 Naoufal Kadhom. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 |
11 | @interface ViewController ()
12 |
13 | @end
14 |
15 | @implementation ViewController
16 |
17 | - (void)viewDidLoad {
18 | [super viewDidLoad];
19 | // Do any additional setup after loading the view, typically from a nib.
20 | }
21 |
22 |
23 | - (void)didReceiveMemoryWarning {
24 | [super didReceiveMemoryWarning];
25 | // Dispose of any resources that can be recreated.
26 | }
27 |
28 |
29 | @end
30 |
--------------------------------------------------------------------------------
/packages/react-native-payments-cli/ios/RNPCLIProject/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // RNPCLIProject
4 | //
5 | // Created by Naoufal Kadhom on 7/20/17.
6 | // Copyright © 2017 Naoufal Kadhom. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/packages/react-native-payments-cli/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@react-native-payments/cli",
3 | "version": "0.4.0",
4 | "bin": "index.js",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "repository": "https://github.com/naoufal/react-native-payments/tree/master/packages/react-native-payments-cli",
10 | "keywords": [
11 | "react-native-payments",
12 | "cli"
13 | ],
14 | "author": "Naoufal Kadhom",
15 | "license": "MIT",
16 | "dependencies": {
17 | "bluebird": "^3.5.0",
18 | "chalk": "^2.0.1",
19 | "cli-table": "^0.3.1",
20 | "inquirer": "^3.2.0",
21 | "meow": "^3.7.0",
22 | "xcode": "^0.9.3"
23 | },
24 | "devDependencies": {
25 | "react-native-payments": "^0.1.2",
26 | "react-native-payments-addon-braintree": "4.8.4",
27 | "react-native-payments-addon-stripe": "11.1.0"
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/packages/react-native-payments/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": [
3 | "transform-class-properties"
4 | ],
5 | "presets": ["react-native"]
6 | }
7 |
--------------------------------------------------------------------------------
/packages/react-native-payments/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 |
3 | [include]
4 |
5 | [libs]
6 |
7 | [options]
8 | unsafe.enable_getters_and_setters=true
--------------------------------------------------------------------------------
/packages/react-native-payments/.gitignore:
--------------------------------------------------------------------------------
1 | # System
2 | #
3 | .DS_Store
4 |
5 | # Xcode
6 | #
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata
17 | *.xccheckout
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 | *.xcuserstate
23 |
24 | # npm
25 | #
26 | node_modules/
27 |
28 | # editors
29 | #
30 | jsconfig.json
31 | .vscode/*
32 |
33 | # project
34 | #
35 | coverage
36 |
--------------------------------------------------------------------------------
/packages/react-native-payments/.npmignore:
--------------------------------------------------------------------------------
1 | examples
2 | .babelrc
3 | .flowconfig
4 | docs/
5 | lib/js/__mocks__/
6 | lib/js/__tests__/
7 | lib/js/errors/__tests__/
8 | lib/js/helpers/__tests__/
9 |
--------------------------------------------------------------------------------
/packages/react-native-payments/android/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 |
3 | android {
4 | compileSdkVersion 23
5 | buildToolsVersion "23.0.1"
6 |
7 | defaultConfig {
8 | minSdkVersion 16
9 | targetSdkVersion 22
10 | versionCode 1
11 | versionName "1.0"
12 | ndk {
13 | abiFilters "armeabi-v7a", "x86"
14 | }
15 | }
16 | lintOptions {
17 | warning 'InvalidPackage'
18 | }
19 | }
20 |
21 | dependencies {
22 | compile 'com.facebook.react:react-native:+'
23 | compile 'com.google.android.gms:play-services-wallet:11.0.4'
24 | compile 'com.android.support:support-v4:23.0.1'
25 | }
26 |
--------------------------------------------------------------------------------
/packages/react-native-payments/android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/packages/react-native-payments/android/src/main/java/com/reactnativepayments/ReactNativePaymentsPackage.java:
--------------------------------------------------------------------------------
1 |
2 | package com.reactnativepayments;
3 |
4 | import java.util.Arrays;
5 | import java.util.Collections;
6 | import java.util.List;
7 |
8 | import com.facebook.react.ReactPackage;
9 | import com.facebook.react.bridge.NativeModule;
10 | import com.facebook.react.bridge.ReactApplicationContext;
11 | import com.facebook.react.uimanager.ViewManager;
12 | import com.facebook.react.bridge.JavaScriptModule;
13 | public class ReactNativePaymentsPackage implements ReactPackage {
14 | @Override
15 | public List createNativeModules(ReactApplicationContext reactContext) {
16 | return Arrays.asList(new ReactNativePaymentsModule(reactContext));
17 | }
18 |
19 | // Deprecated RN 0.47
20 | public List> createJSModules() {
21 | return Collections.emptyList();
22 | }
23 |
24 | @Override
25 | public List createViewManagers(ReactApplicationContext reactContext) {
26 | return Collections.emptyList();
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/packages/react-native-payments/docs/PaymentRequestUpdateEvent.md:
--------------------------------------------------------------------------------
1 | # PaymentRequestUpdateEvent
2 | ### constructor(name, paymentRequest)
3 | Initializes the payment request update event.
4 |
5 | __Arguments__
6 | - name - `onshippingaddresschange | onshippingoptionchange`
7 | - paymentRequest - `PaymentRequest`
8 |
9 |
10 | Example
11 |
12 | ```es6
13 | const event = new PaymentRequestUpdateEvent('onshippingaddresschange', paymentRequest);
14 | ```
15 |
16 |
17 |
18 | ---
19 |
20 | ### updateWith(details)
21 | Updates the payment request with the details provided.
22 |
23 | __Arguments__
24 | - details - `PaymentDetailsUpdate`
25 |
26 |
27 | Example
28 |
29 | ```es6
30 | event.updateWith({
31 | displayItems: [
32 | {
33 | label: 'Movie Ticket',
34 | amount: { currency: 'USD', value: '15.00' }
35 | },
36 | {
37 | label: 'Shipping',
38 | amount: { currency: 'USD', value: '5.00' }
39 | }
40 | ],
41 | total: {
42 | label: 'Merchant Name',
43 | amount: { currency: 'USD', value: '20.00' }
44 | },
45 | shippingOptions: [
46 | {
47 | id: 'economy',
48 | label: 'Economy Shipping',
49 | amount: { currency: 'USD', value: '0.00' },
50 | detail: 'Arrives in 3-5 days'
51 | },
52 | {
53 | id: 'express',
54 | label: 'Express Shipping',
55 | amount: { currency: 'USD', value: '5.00' },
56 | detail: 'Arrives tomorrow',
57 | selected
58 | }
59 | ]
60 | });
61 | ```
62 |
63 |
64 |
65 | ---
66 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["react-native"]
3 | }
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/.buckconfig:
--------------------------------------------------------------------------------
1 |
2 | [android]
3 | target = Google Inc.:Google APIs:23
4 |
5 | [maven_repositories]
6 | central = https://repo1.maven.org/maven2
7 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | [include]
18 |
19 | [libs]
20 | node_modules/react-native/Libraries/react-native/react-native-interface.js
21 | node_modules/react-native/flow
22 | flow/
23 |
24 | [options]
25 | module.system=haste
26 |
27 | experimental.strict_type_args=true
28 |
29 | munge_underscores=true
30 |
31 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
32 |
33 | suppress_type=$FlowIssue
34 | suppress_type=$FlowFixMe
35 | suppress_type=$FixMe
36 |
37 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-7]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
38 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-7]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
39 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
40 |
41 | unsafe.enable_getters_and_setters=true
42 |
43 | [version]
44 | ^0.37.0
45 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/.gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj -text
2 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
5 | # Xcode
6 | #
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata
17 | *.xccheckout
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 | *.xcuserstate
23 | project.xcworkspace
24 |
25 | # Android/IntelliJ
26 | #
27 | build/
28 | .idea
29 | .gradle
30 | local.properties
31 | *.iml
32 |
33 | # node.js
34 | #
35 | node_modules/
36 | npm-debug.log
37 | yarn-error.log
38 |
39 | # BUCK
40 | buck-out/
41 | \.buckd/
42 | android/app/libs
43 | *.keystore
44 |
45 | # fastlane
46 | #
47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
48 | # screenshots whenever they are needed.
49 | # For more information about the recommended setup visit:
50 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
51 |
52 | fastlane/report.xml
53 | fastlane/Preview.html
54 | fastlane/screenshots
55 |
56 | # Haul
57 | #
58 | haul-debug.log
59 | .happypack
60 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/__tests__/index.android.js:
--------------------------------------------------------------------------------
1 | import 'react-native';
2 | import React from 'react';
3 | import Index from '../index.android.js';
4 |
5 | // Note: test renderer must be required after react-native.
6 | import renderer from 'react-test-renderer';
7 |
8 | it('renders correctly', () => {
9 | const tree = renderer.create();
10 | });
11 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/__tests__/index.ios.js:
--------------------------------------------------------------------------------
1 | import 'react-native';
2 | import React from 'react';
3 | import Index from '../index.ios.js';
4 |
5 | // Note: test renderer must be required after react-native.
6 | import renderer from 'react-test-renderer';
7 |
8 | it('renders correctly', () => {
9 | const tree = renderer.create();
10 | });
11 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/android/app/BUCK:
--------------------------------------------------------------------------------
1 | import re
2 |
3 | # To learn about Buck see [Docs](https://buckbuild.com/).
4 | # To run your application with Buck:
5 | # - install Buck
6 | # - `npm start` - to start the packager
7 | # - `cd android`
8 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
9 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
10 | # - `buck install -r android/app` - compile, install and run application
11 | #
12 |
13 | lib_deps = []
14 | for jarfile in glob(['libs/*.jar']):
15 | name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile)
16 | lib_deps.append(':' + name)
17 | prebuilt_jar(
18 | name = name,
19 | binary_jar = jarfile,
20 | )
21 |
22 | for aarfile in glob(['libs/*.aar']):
23 | name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile)
24 | lib_deps.append(':' + name)
25 | android_prebuilt_aar(
26 | name = name,
27 | aar = aarfile,
28 | )
29 |
30 | android_library(
31 | name = 'all-libs',
32 | exported_deps = lib_deps
33 | )
34 |
35 | android_library(
36 | name = 'app-code',
37 | srcs = glob([
38 | 'src/main/java/**/*.java',
39 | ]),
40 | deps = [
41 | ':all-libs',
42 | ':build_config',
43 | ':res',
44 | ],
45 | )
46 |
47 | android_build_config(
48 | name = 'build_config',
49 | package = 'com.braintreeexample',
50 | )
51 |
52 | android_resource(
53 | name = 'res',
54 | res = 'src/main/res',
55 | package = 'com.braintreeexample',
56 | )
57 |
58 | android_binary(
59 | name = 'app',
60 | package_type = 'debug',
61 | manifest = 'src/main/AndroidManifest.xml',
62 | keystore = '//android/keystores:debug',
63 | deps = [
64 | ':app-code',
65 | ],
66 | )
67 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
12 |
13 |
19 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/android/app/src/main/java/com/braintreeexample/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.braintreeexample;
2 |
3 | import com.facebook.react.ReactActivity;
4 |
5 | public class MainActivity extends ReactActivity {
6 |
7 | /**
8 | * Returns the name of the main component registered from JavaScript.
9 | * This is used to schedule rendering of the component.
10 | */
11 | @Override
12 | protected String getMainComponentName() {
13 | return "BraintreeExample";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/android/app/src/main/java/com/braintreeexample/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.braintreeexample;
2 |
3 | import android.app.Application;
4 | import android.util.Log;
5 |
6 | import com.facebook.react.ReactApplication;
7 | import com.facebook.react.ReactInstanceManager;
8 | import com.facebook.react.ReactNativeHost;
9 | import com.facebook.react.ReactPackage;
10 | import com.facebook.react.shell.MainReactPackage;
11 | import com.facebook.soloader.SoLoader;
12 |
13 | import java.util.Arrays;
14 | import java.util.List;
15 |
16 | public class MainApplication extends Application implements ReactApplication {
17 |
18 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
19 | @Override
20 | public boolean getUseDeveloperSupport() {
21 | return BuildConfig.DEBUG;
22 | }
23 |
24 | @Override
25 | protected List getPackages() {
26 | return Arrays.asList(
27 | new MainReactPackage()
28 | );
29 | }
30 | };
31 |
32 | @Override
33 | public ReactNativeHost getReactNativeHost() {
34 | return mReactNativeHost;
35 | }
36 |
37 | @Override
38 | public void onCreate() {
39 | super.onCreate();
40 | SoLoader.init(this, /* native exopackage */ false);
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/braintree/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/braintree/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/braintree/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/braintree/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | BraintreeExample
3 |
4 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:1.3.1'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | mavenLocal()
18 | jcenter()
19 | maven {
20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
21 | url "$rootDir/../node_modules/react-native/android"
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
20 | android.useDeprecatedNdk=true
21 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/braintree/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
6 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/android/keystores/BUCK:
--------------------------------------------------------------------------------
1 | keystore(
2 | name = 'debug',
3 | store = 'debug.keystore',
4 | properties = 'debug.keystore.properties',
5 | visibility = [
6 | 'PUBLIC',
7 | ],
8 | )
9 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/android/keystores/debug.keystore.properties:
--------------------------------------------------------------------------------
1 | key.store=debug.keystore
2 | key.alias=androiddebugkey
3 | key.store.password=android
4 | key.alias.password=android
5 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'BraintreeExample'
2 |
3 | include ':app'
4 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/index.android.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Sample React Native App
3 | * https://github.com/facebook/react-native
4 | * @flow
5 | */
6 |
7 | import React, { Component } from 'react';
8 | import { AppRegistry, StyleSheet, Text, View } from 'react-native';
9 |
10 | export default class BraintreeExample extends Component {
11 | render() {
12 | return (
13 |
14 | Welcome to React Native!
15 |
16 | To get started, edit index.android.js
17 |
18 |
19 | Double tap R on your keyboard to reload,{'\n'}
20 | Shake or press menu button for dev menu
21 |
22 |
23 | );
24 | }
25 | }
26 |
27 | const styles = StyleSheet.create({
28 | container: {
29 | flex: 1,
30 | justifyContent: 'center',
31 | alignItems: 'center',
32 | backgroundColor: '#F5FCFF'
33 | },
34 | welcome: {
35 | fontSize: 20,
36 | textAlign: 'center',
37 | margin: 10
38 | },
39 | instructions: {
40 | textAlign: 'center',
41 | color: '#333333',
42 | marginBottom: 5
43 | }
44 | });
45 |
46 | AppRegistry.registerComponent('BraintreeExample', () => BraintreeExample);
47 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/ios/BraintreeExample-tvOSTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/ios/BraintreeExample/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | @interface AppDelegate : UIResponder
13 |
14 | @property (nonatomic, strong) UIWindow *window;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/ios/BraintreeExample/AppDelegate.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import "AppDelegate.h"
11 |
12 | #import
13 | #import
14 |
15 |
16 | @implementation AppDelegate
17 |
18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
19 | {
20 | NSURL *jsCodeLocation;
21 |
22 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
23 |
24 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
25 | moduleName:@"BraintreeExample"
26 | initialProperties:nil
27 | launchOptions:launchOptions];
28 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
29 |
30 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
31 | UIViewController *rootViewController = [UIViewController new];
32 | rootViewController.view = rootView;
33 | self.window.rootViewController = rootViewController;
34 | [self.window makeKeyAndVisible];
35 | return YES;
36 | }
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/ios/BraintreeExample/BraintreeExample.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.developer.in-app-payments
6 |
7 | merchant.com.react-native-payments.naoufal
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/ios/BraintreeExample/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | }
43 | ],
44 | "info" : {
45 | "version" : 1,
46 | "author" : "xcode"
47 | }
48 | }
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/ios/BraintreeExample/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | RNP Braintree
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1
25 | LSRequiresIPhoneOS
26 |
27 | NSAppTransportSecurity
28 |
29 | NSExceptionDomains
30 |
31 | localhost
32 |
33 | NSExceptionAllowsInsecureHTTPLoads
34 |
35 |
36 |
37 |
38 | NSLocationWhenInUseUsageDescription
39 |
40 | UILaunchStoryboardName
41 | LaunchScreen
42 | UIRequiredDeviceCapabilities
43 |
44 | armv7
45 |
46 | UISupportedInterfaceOrientations
47 |
48 | UIInterfaceOrientationPortrait
49 | UIInterfaceOrientationLandscapeLeft
50 | UIInterfaceOrientationLandscapeRight
51 |
52 | UIViewControllerBasedStatusBarAppearance
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/ios/BraintreeExample/main.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | #import "AppDelegate.h"
13 |
14 | int main(int argc, char * argv[]) {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/ios/BraintreeExampleTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "BraintreeExample",
3 | "version": "0.0.1",
4 | "private": true,
5 | "scripts": {
6 | "start": "node node_modules/react-native/local-cli/cli.js start",
7 | "test": "jest",
8 | "run:packager": "yarn run haul start -- --platform ios",
9 | "run:ios": "react-native run-ios"
10 | },
11 | "dependencies": {
12 | "react": "~15.4.0-rc.4",
13 | "react-native": "0.41.0",
14 | "react-native-payments": "0.1.2",
15 | "react-native-payments-addon-braintree": "4.8.4"
16 | },
17 | "devDependencies": {
18 | "babel-jest": "20.0.3",
19 | "babel-preset-react-native": "2.1.0",
20 | "haul": "^1.0.0-beta.1",
21 | "jest": "20.0.4",
22 | "react-test-renderer": "~15.4.0-rc.4"
23 | },
24 | "jest": {
25 | "preset": "react-native"
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/braintree/webpack.haul.js:
--------------------------------------------------------------------------------
1 | const path = require('path');
2 |
3 | module.exports = ({ platform }, defaults) => ({
4 | entry: `./index.${platform}.js`,
5 | resolve: {
6 | ...defaults.resolve,
7 | modules: [
8 | path.resolve(__dirname, 'node_modules'),
9 | path.resolve(__dirname, '../../node_modules')
10 | ]
11 | }
12 | });
13 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/common/components/Header.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import { StyleSheet, Text, View } from 'react-native';
3 |
4 | import { baseTextStyles } from '../styles';
5 |
6 | const Header = ({ supHeadingText, headingText = 'React Native Payments' }) =>
7 |
8 | {supHeadingText &&
9 |
10 | Version {supHeadingText}
11 | }
12 |
13 | {headingText}
14 |
15 | ;
16 |
17 | const styles = StyleSheet.create({
18 | supHeading: {
19 | ...baseTextStyles,
20 | fontSize: 11,
21 | fontWeight: '700',
22 | letterSpacing: -0.5,
23 | color: '#A8A8A8'
24 | },
25 | heading: {
26 | ...baseTextStyles,
27 | fontSize: 27
28 | }
29 | });
30 |
31 | export default Header;
32 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/common/config/index.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/common/config/index.js
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/common/services/shipping.js:
--------------------------------------------------------------------------------
1 | function createShippingOption(id, label, price, selected = false) {
2 | return {
3 | id,
4 | label,
5 | amount: {
6 | currency: 'USD',
7 | value: price
8 | },
9 | selected
10 | };
11 | }
12 |
13 | function getRandomPrice(min = 0, max = 99) {
14 | const multiplier = 100;
15 | const minVal = min * multiplier;
16 | const maxVal = max * multiplier;
17 | const priceFloat =
18 | (Math.floor(Math.random() * (maxVal - minVal)) + minVal) / multiplier;
19 |
20 | return priceFloat.toString();
21 | }
22 |
23 | export function getShippingOptions() {
24 | return [
25 | createShippingOption('economy', 'Economy Shipping (5-7 Days)', '0.00'),
26 | createShippingOption(
27 | 'express',
28 | 'Express Shipping (2-3 Days)',
29 | getRandomPrice(5, 10)
30 | ),
31 | createShippingOption(
32 | 'next-day',
33 | 'Next Day Delivery',
34 | getRandomPrice(11, 20)
35 | )
36 | ];
37 | }
38 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/common/styles/index.js:
--------------------------------------------------------------------------------
1 | export const baseTextStyles = {
2 | fontWeight: '700',
3 | letterSpacing: -0.5
4 | };
5 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["react-native"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/.buckconfig:
--------------------------------------------------------------------------------
1 |
2 | [android]
3 | target = Google Inc.:Google APIs:23
4 |
5 | [maven_repositories]
6 | central = https://repo1.maven.org/maven2
7 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 |
16 | ; Ignore polyfills
17 | .*/Libraries/polyfills/.*
18 |
19 | ; Ignore metro
20 | .*/node_modules/metro/.*
21 |
22 | [include]
23 |
24 | [libs]
25 | node_modules/react-native/Libraries/react-native/react-native-interface.js
26 | node_modules/react-native/flow/
27 | node_modules/react-native/flow-github/
28 |
29 | [options]
30 | emoji=true
31 |
32 | module.system=haste
33 |
34 | munge_underscores=true
35 |
36 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
37 |
38 | module.file_ext=.js
39 | module.file_ext=.jsx
40 | module.file_ext=.json
41 | module.file_ext=.native.js
42 |
43 | suppress_type=$FlowIssue
44 | suppress_type=$FlowFixMe
45 | suppress_type=$FlowFixMeProps
46 | suppress_type=$FlowFixMeState
47 |
48 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
49 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
50 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
51 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
52 |
53 | [version]
54 | ^0.67.0
55 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/.gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj -text
2 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
5 | # Xcode
6 | #
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata
17 | *.xccheckout
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 | *.xcuserstate
23 | project.xcworkspace
24 |
25 | # Android/IntelliJ
26 | #
27 | build/
28 | .idea
29 | .gradle
30 | local.properties
31 | *.iml
32 |
33 | # node.js
34 | #
35 | node_modules/
36 | npm-debug.log
37 | yarn-error.log
38 |
39 | # BUCK
40 | buck-out/
41 | \.buckd/
42 | *.keystore
43 |
44 | # fastlane
45 | #
46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
47 | # screenshots whenever they are needed.
48 | # For more information about the recommended setup visit:
49 | # https://docs.fastlane.tools/best-practices/source-control/
50 |
51 | */fastlane/report.xml
52 | */fastlane/Preview.html
53 | */fastlane/screenshots
54 |
55 | # Bundle artifact
56 | *.jsbundle
57 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/App.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Sample React Native App
3 | * https://github.com/facebook/react-native
4 | * @flow
5 | */
6 |
7 | import React, { Component } from 'react';
8 | import { View } from 'react-native';
9 | import { ApplePayButton, PaymentRequest } from 'react-native-payments';
10 |
11 | type Props = {};
12 |
13 | export default class App extends Component {
14 | showPaymentSheet = () => {
15 | const paymentRequest = new PaymentRequest(METHOD_DATA, DETAILS);
16 | paymentRequest.show();
17 | };
18 | render() {
19 | return (
20 |
21 |
22 |
27 |
28 |
29 | );
30 | }
31 | }
32 |
33 | const METHOD_DATA = [
34 | {
35 | supportedMethods: ['apple-pay'],
36 | data: {
37 | merchantIdentifier: 'merchant.com.your-app.namespace',
38 | supportedNetworks: ['visa', 'mastercard', 'amex'],
39 | countryCode: 'US',
40 | currencyCode: 'USD',
41 | },
42 | },
43 | ];
44 |
45 | const DETAILS = {
46 | id: 'basic-example',
47 | displayItems: [
48 | {
49 | label: 'Movie Ticket',
50 | amount: { currency: 'USD', value: '15.00' },
51 | },
52 | ],
53 | total: {
54 | label: 'Merchant Name',
55 | amount: { currency: 'USD', value: '15.00' },
56 | },
57 | };
58 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
13 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/android/app/src/main/java/com/example/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | import com.facebook.react.ReactActivity;
4 |
5 | public class MainActivity extends ReactActivity {
6 |
7 | /**
8 | * Returns the name of the main component registered from JavaScript.
9 | * This is used to schedule rendering of the component.
10 | */
11 | @Override
12 | protected String getMainComponentName() {
13 | return "example";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/android/app/src/main/java/com/example/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | import android.app.Application;
4 |
5 | import com.facebook.react.ReactApplication;
6 | import com.facebook.react.ReactNativeHost;
7 | import com.facebook.react.ReactPackage;
8 | import com.facebook.react.shell.MainReactPackage;
9 | import com.facebook.soloader.SoLoader;
10 |
11 | import java.util.Arrays;
12 | import java.util.List;
13 |
14 | public class MainApplication extends Application implements ReactApplication {
15 |
16 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
17 | @Override
18 | public boolean getUseDeveloperSupport() {
19 | return BuildConfig.DEBUG;
20 | }
21 |
22 | @Override
23 | protected List getPackages() {
24 | return Arrays.asList(
25 | new MainReactPackage()
26 | );
27 | }
28 |
29 | @Override
30 | protected String getJSMainModuleName() {
31 | return "index";
32 | }
33 | };
34 |
35 | @Override
36 | public ReactNativeHost getReactNativeHost() {
37 | return mReactNativeHost;
38 | }
39 |
40 | @Override
41 | public void onCreate() {
42 | super.onCreate();
43 | SoLoader.init(this, /* native exopackage */ false);
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/native-next/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/native-next/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/native-next/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/native-next/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | example
3 |
4 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.2.3'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | mavenLocal()
18 | jcenter()
19 | maven {
20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
21 | url "$rootDir/../node_modules/react-native/android"
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
20 | android.useDeprecatedNdk=true
21 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/native-next/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
6 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/android/keystores/BUCK:
--------------------------------------------------------------------------------
1 | keystore(
2 | name = "debug",
3 | properties = "debug.keystore.properties",
4 | store = "debug.keystore",
5 | visibility = [
6 | "PUBLIC",
7 | ],
8 | )
9 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/android/keystores/debug.keystore.properties:
--------------------------------------------------------------------------------
1 | key.store=debug.keystore
2 | key.alias=androiddebugkey
3 | key.store.password=android
4 | key.alias.password=android
5 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'example'
2 |
3 | include ':app'
4 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "example",
3 | "displayName": "example"
4 | }
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/index.js:
--------------------------------------------------------------------------------
1 | import { AppRegistry } from 'react-native';
2 | import App from './App';
3 |
4 | AppRegistry.registerComponent('example', () => App);
5 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/ios/example-tvOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UIViewControllerBasedStatusBarAppearance
38 |
39 | NSLocationWhenInUseUsageDescription
40 |
41 | NSAppTransportSecurity
42 |
43 |
44 | NSExceptionDomains
45 |
46 | localhost
47 |
48 | NSExceptionAllowsInsecureHTTPLoads
49 |
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/ios/example-tvOSTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/ios/example/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import
9 |
10 | @interface AppDelegate : UIResponder
11 |
12 | @property (nonatomic, strong) UIWindow *window;
13 |
14 | @end
15 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/ios/example/AppDelegate.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import "AppDelegate.h"
9 |
10 | #import
11 | #import
12 |
13 | @implementation AppDelegate
14 |
15 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
16 | {
17 | NSURL *jsCodeLocation;
18 |
19 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
20 |
21 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
22 | moduleName:@"example"
23 | initialProperties:nil
24 | launchOptions:launchOptions];
25 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
26 |
27 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
28 | UIViewController *rootViewController = [UIViewController new];
29 | rootViewController.view = rootView;
30 | self.window.rootViewController = rootViewController;
31 | [self.window makeKeyAndVisible];
32 | return YES;
33 | }
34 |
35 | @end
36 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/ios/example/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | }
33 | ],
34 | "info" : {
35 | "version" : 1,
36 | "author" : "xcode"
37 | }
38 | }
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/ios/example/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/ios/example/main.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import
9 |
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/ios/exampleTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native-next/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "example",
3 | "version": "0.0.1",
4 | "private": true,
5 | "scripts": {
6 | "start": "node node_modules/react-native/local-cli/cli.js start",
7 | "test": "jest"
8 | },
9 | "dependencies": {
10 | "react": "16.3.1",
11 | "react-native": "0.55.4",
12 | "react-native-payments": "^0.6.0"
13 | },
14 | "devDependencies": {
15 | "babel-jest": "23.0.1",
16 | "babel-preset-react-native": "4.0.0",
17 | "jest": "23.1.0",
18 | "react-test-renderer": "16.3.1"
19 | },
20 | "jest": {
21 | "preset": "react-native"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["react-native"]
3 | }
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/.buckconfig:
--------------------------------------------------------------------------------
1 |
2 | [android]
3 | target = Google Inc.:Google APIs:23
4 |
5 | [maven_repositories]
6 | central = https://repo1.maven.org/maven2
7 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | [include]
18 |
19 | [libs]
20 | node_modules/react-native/Libraries/react-native/react-native-interface.js
21 | node_modules/react-native/flow
22 | flow/
23 |
24 | [options]
25 | module.system=haste
26 |
27 | experimental.strict_type_args=true
28 |
29 | munge_underscores=true
30 |
31 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
32 |
33 | suppress_type=$FlowIssue
34 | suppress_type=$FlowFixMe
35 | suppress_type=$FixMe
36 |
37 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-7]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
38 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-7]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
39 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
40 |
41 | unsafe.enable_getters_and_setters=true
42 |
43 | [version]
44 | ^0.37.0
45 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/.gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj -text
2 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
5 | # Xcode
6 | #
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata
17 | *.xccheckout
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 | *.xcuserstate
23 | project.xcworkspace
24 |
25 | # Android/IntelliJ
26 | #
27 | build/
28 | .idea
29 | .gradle
30 | local.properties
31 | *.iml
32 |
33 | # node.js
34 | #
35 | node_modules/
36 | npm-debug.log
37 | yarn-error.log
38 |
39 | # BUCK
40 | buck-out/
41 | \.buckd/
42 | android/app/libs
43 | *.keystore
44 |
45 | # fastlane
46 | #
47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
48 | # screenshots whenever they are needed.
49 | # For more information about the recommended setup visit:
50 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
51 |
52 | fastlane/report.xml
53 | fastlane/Preview.html
54 | fastlane/screenshots
55 |
56 | # Haul
57 | #
58 | haul-debug.log
59 | .happypack
60 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.formatOnSave": true
3 | }
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/__tests__/index.android.js:
--------------------------------------------------------------------------------
1 | import 'react-native';
2 | import React from 'react';
3 | import Index from '../index.android.js';
4 |
5 | // Note: test renderer must be required after react-native.
6 | import renderer from 'react-test-renderer';
7 |
8 | it('renders correctly', () => {
9 | const tree = renderer.create();
10 | });
11 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/__tests__/index.ios.js:
--------------------------------------------------------------------------------
1 | import 'react-native';
2 | import React from 'react';
3 | import Index from '../index.ios.js';
4 |
5 | // Note: test renderer must be required after react-native.
6 | import renderer from 'react-test-renderer';
7 |
8 | it('renders correctly', () => {
9 | const tree = renderer.create();
10 | });
11 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/android/app/BUCK:
--------------------------------------------------------------------------------
1 | import re
2 |
3 | # To learn about Buck see [Docs](https://buckbuild.com/).
4 | # To run your application with Buck:
5 | # - install Buck
6 | # - `npm start` - to start the packager
7 | # - `cd android`
8 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
9 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
10 | # - `buck install -r android/app` - compile, install and run application
11 | #
12 |
13 | lib_deps = []
14 | for jarfile in glob(['libs/*.jar']):
15 | name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile)
16 | lib_deps.append(':' + name)
17 | prebuilt_jar(
18 | name = name,
19 | binary_jar = jarfile,
20 | )
21 |
22 | for aarfile in glob(['libs/*.aar']):
23 | name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile)
24 | lib_deps.append(':' + name)
25 | android_prebuilt_aar(
26 | name = name,
27 | aar = aarfile,
28 | )
29 |
30 | android_library(
31 | name = 'all-libs',
32 | exported_deps = lib_deps
33 | )
34 |
35 | android_library(
36 | name = 'app-code',
37 | srcs = glob([
38 | 'src/main/java/**/*.java',
39 | ]),
40 | deps = [
41 | ':all-libs',
42 | ':build_config',
43 | ':res',
44 | ],
45 | )
46 |
47 | android_build_config(
48 | name = 'build_config',
49 | package = 'com.reactnativepaymentsexample',
50 | )
51 |
52 | android_resource(
53 | name = 'res',
54 | res = 'src/main/res',
55 | package = 'com.reactnativepaymentsexample',
56 | )
57 |
58 | android_binary(
59 | name = 'app',
60 | package_type = 'debug',
61 | manifest = 'src/main/AndroidManifest.xml',
62 | keystore = '//android/keystores:debug',
63 | deps = [
64 | ':app-code',
65 | ],
66 | )
67 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
12 |
13 |
19 |
22 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/android/app/src/main/java/com/reactnativepaymentsexample/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.reactnativepaymentsexample;
2 |
3 | import com.facebook.react.ReactActivity;
4 |
5 | public class MainActivity extends ReactActivity {
6 |
7 | /**
8 | * Returns the name of the main component registered from JavaScript.
9 | * This is used to schedule rendering of the component.
10 | */
11 | @Override
12 | protected String getMainComponentName() {
13 | return "ReactNativePaymentsExample";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/android/app/src/main/java/com/reactnativepaymentsexample/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.reactnativepaymentsexample;
2 |
3 | import com.reactnativepayments.ReactNativePaymentsPackage;
4 | import android.app.Application;
5 |
6 | import com.facebook.react.ReactApplication;
7 | import com.facebook.react.ReactNativeHost;
8 | import com.facebook.react.ReactPackage;
9 | import com.facebook.react.shell.MainReactPackage;
10 | import com.facebook.soloader.SoLoader;
11 |
12 | import java.util.Arrays;
13 | import java.util.List;
14 |
15 | public class MainApplication extends Application implements ReactApplication {
16 |
17 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
18 | @Override
19 | public boolean getUseDeveloperSupport() {
20 | return BuildConfig.DEBUG;
21 | }
22 |
23 | @Override
24 | protected List getPackages() {
25 | return Arrays.asList(
26 | new MainReactPackage(),
27 | new ReactNativePaymentsPackage()
28 | );
29 | }
30 | };
31 |
32 | @Override
33 | public ReactNativeHost getReactNativeHost() {
34 | return mReactNativeHost;
35 | }
36 |
37 | @Override
38 | public void onCreate() {
39 | super.onCreate();
40 | SoLoader.init(this, /* native exopackage */ false);
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/native/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/native/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/native/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | ReactNativePaymentsExample
3 |
4 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.3.3'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | mavenLocal()
18 | jcenter()
19 | maven {
20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
21 | url "$rootDir/../node_modules/react-native/android"
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
20 | android.useDeprecatedNdk=true
21 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/native/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Aug 04 18:29:09 PDT 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
7 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/android/keystores/BUCK:
--------------------------------------------------------------------------------
1 | keystore(
2 | name = 'debug',
3 | store = 'debug.keystore',
4 | properties = 'debug.keystore.properties',
5 | visibility = [
6 | 'PUBLIC',
7 | ],
8 | )
9 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/android/keystores/debug.keystore.properties:
--------------------------------------------------------------------------------
1 | key.store=debug.keystore
2 | key.alias=androiddebugkey
3 | key.store.password=android
4 | key.alias.password=android
5 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'ReactNativePaymentsExample'
2 |
3 | include ':react-native-payments'
4 | project(':react-native-payments').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-payments/android')
5 |
6 | include ':app'
7 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/index.android.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import { AppRegistry } from 'react-native';
3 |
4 | global.PaymentRequest = require('react-native-payments').PaymentRequest;
5 | const App = require('../common/App').default;
6 |
7 | AppRegistry.registerComponent('ReactNativePaymentsExample', () => App);
8 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/index.ios.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import { AppRegistry, StyleSheet, Text, View } from 'react-native';
3 | global.PaymentRequest = require('react-native-payments').PaymentRequest;
4 | const App = require('../common/App').default;
5 |
6 | AppRegistry.registerComponent('ReactNativePaymentsExample', () => App);
7 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/ios/ReactNativePaymentsExample-tvOSTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/ios/ReactNativePaymentsExample/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | @interface AppDelegate : UIResponder
13 |
14 | @property (nonatomic, strong) UIWindow *window;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/ios/ReactNativePaymentsExample/AppDelegate.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import "AppDelegate.h"
11 |
12 | #import
13 | #import
14 |
15 | @implementation AppDelegate
16 |
17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
18 | {
19 | NSURL *jsCodeLocation;
20 |
21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
22 |
23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
24 | moduleName:@"ReactNativePaymentsExample"
25 | initialProperties:nil
26 | launchOptions:launchOptions];
27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
28 |
29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
30 | UIViewController *rootViewController = [UIViewController new];
31 | rootViewController.view = rootView;
32 | self.window.rootViewController = rootViewController;
33 | [self.window makeKeyAndVisible];
34 | return YES;
35 | }
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/ios/ReactNativePaymentsExample/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | },
43 | {
44 | "idiom" : "ios-marketing",
45 | "size" : "1024x1024",
46 | "scale" : "1x"
47 | }
48 | ],
49 | "info" : {
50 | "version" : 1,
51 | "author" : "xcode"
52 | }
53 | }
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/ios/ReactNativePaymentsExample/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | Payments
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1
25 | LSRequiresIPhoneOS
26 |
27 | NSAppTransportSecurity
28 |
29 | NSExceptionDomains
30 |
31 | localhost
32 |
33 | NSExceptionAllowsInsecureHTTPLoads
34 |
35 |
36 |
37 |
38 | NSLocationWhenInUseUsageDescription
39 |
40 | UILaunchStoryboardName
41 | LaunchScreen
42 | UIRequiredDeviceCapabilities
43 |
44 | armv7
45 |
46 | UISupportedInterfaceOrientations
47 |
48 | UIInterfaceOrientationPortrait
49 |
50 | UIViewControllerBasedStatusBarAppearance
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/ios/ReactNativePaymentsExample/ReactNativePaymentsExample.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.developer.in-app-payments
6 |
7 | merchant.com.react-native-payments.naoufal
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/ios/ReactNativePaymentsExample/main.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | #import "AppDelegate.h"
13 |
14 | int main(int argc, char * argv[]) {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/ios/ReactNativePaymentsExampleTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-native-payments-native-example",
3 | "version": "0.0.1",
4 | "private": true,
5 | "scripts": {
6 | "start": "node node_modules/react-native/local-cli/cli.js start",
7 | "test": "jest",
8 | "run:packager": "yarn run haul start",
9 | "run:ios": "react-native run-ios",
10 | "run:android": "react-native run-android",
11 | "run:demo": "yarn && react-native run-ios --configuration=Release",
12 | "build:ios": "yarn run haul bundle -- --platform=ios --bundle-output=ios/main.jsbundle --assets-dest=ios/build/assets",
13 | "build:android": "yarn run haul bundle -- --platform=android --bundle-output=android/build/index.bundle --assets-dest=android/build/assets"
14 | },
15 | "dependencies": {
16 | "react": "~15.4.0-rc.4",
17 | "react-native": "0.41.0"
18 | },
19 | "devDependencies": {
20 | "babel-jest": "20.0.3",
21 | "babel-preset-react-native": "2.0.0",
22 | "haul": "^1.0.0-beta.1",
23 | "jest": "20.0.4",
24 | "react-native-payments": "file:../..",
25 | "react-test-renderer": "~15.4.0-rc.4"
26 | },
27 | "jest": {
28 | "preset": "react-native"
29 | },
30 | "gitDir": "../../../../"
31 | }
32 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/native/webpack.haul.js:
--------------------------------------------------------------------------------
1 | const path = require('path');
2 |
3 | module.exports = ({ platform }, defaults) => ({
4 | entry: `./index.${platform}.js`,
5 | resolve: {
6 | ...defaults.resolve,
7 | modules: [
8 | path.resolve(__dirname, 'node_modules'),
9 | path.resolve(__dirname, '../../node_modules')
10 | ],
11 | alias: {
12 | 'react-primitives': 'react-native',
13 | 'react-native-payments': '../..'
14 | }
15 | }
16 | });
17 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["react-native"]
3 | }
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/.buckconfig:
--------------------------------------------------------------------------------
1 |
2 | [android]
3 | target = Google Inc.:Google APIs:23
4 |
5 | [maven_repositories]
6 | central = https://repo1.maven.org/maven2
7 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | [include]
18 |
19 | [libs]
20 | node_modules/react-native/Libraries/react-native/react-native-interface.js
21 | node_modules/react-native/flow
22 | flow/
23 |
24 | [options]
25 | module.system=haste
26 |
27 | experimental.strict_type_args=true
28 |
29 | munge_underscores=true
30 |
31 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
32 |
33 | suppress_type=$FlowIssue
34 | suppress_type=$FlowFixMe
35 | suppress_type=$FixMe
36 |
37 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-7]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
38 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-7]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
39 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
40 |
41 | unsafe.enable_getters_and_setters=true
42 |
43 | [version]
44 | ^0.37.0
45 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/.gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj -text
2 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
5 | # Xcode
6 | #
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata
17 | *.xccheckout
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 | *.xcuserstate
23 | project.xcworkspace
24 |
25 | # Android/IntelliJ
26 | #
27 | build/
28 | .idea
29 | .gradle
30 | local.properties
31 | *.iml
32 |
33 | # node.js
34 | #
35 | node_modules/
36 | npm-debug.log
37 | yarn-error.log
38 |
39 | # BUCK
40 | buck-out/
41 | \.buckd/
42 | android/app/libs
43 | *.keystore
44 |
45 | # fastlane
46 | #
47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
48 | # screenshots whenever they are needed.
49 | # For more information about the recommended setup visit:
50 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
51 |
52 | fastlane/report.xml
53 | fastlane/Preview.html
54 | fastlane/screenshots
55 |
56 | # Haul
57 | #
58 | haul-debug.log
59 | .happypack
60 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/__tests__/index.android.js:
--------------------------------------------------------------------------------
1 | import 'react-native';
2 | import React from 'react';
3 | import Index from '../index.android.js';
4 |
5 | // Note: test renderer must be required after react-native.
6 | import renderer from 'react-test-renderer';
7 |
8 | it('renders correctly', () => {
9 | const tree = renderer.create();
10 | });
11 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/__tests__/index.ios.js:
--------------------------------------------------------------------------------
1 | import 'react-native';
2 | import React from 'react';
3 | import Index from '../index.ios.js';
4 |
5 | // Note: test renderer must be required after react-native.
6 | import renderer from 'react-test-renderer';
7 |
8 | it('renders correctly', () => {
9 | const tree = renderer.create();
10 | });
11 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/android/app/BUCK:
--------------------------------------------------------------------------------
1 | import re
2 |
3 | # To learn about Buck see [Docs](https://buckbuild.com/).
4 | # To run your application with Buck:
5 | # - install Buck
6 | # - `npm start` - to start the packager
7 | # - `cd android`
8 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
9 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
10 | # - `buck install -r android/app` - compile, install and run application
11 | #
12 |
13 | lib_deps = []
14 | for jarfile in glob(['libs/*.jar']):
15 | name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile)
16 | lib_deps.append(':' + name)
17 | prebuilt_jar(
18 | name = name,
19 | binary_jar = jarfile,
20 | )
21 |
22 | for aarfile in glob(['libs/*.aar']):
23 | name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile)
24 | lib_deps.append(':' + name)
25 | android_prebuilt_aar(
26 | name = name,
27 | aar = aarfile,
28 | )
29 |
30 | android_library(
31 | name = 'all-libs',
32 | exported_deps = lib_deps
33 | )
34 |
35 | android_library(
36 | name = 'app-code',
37 | srcs = glob([
38 | 'src/main/java/**/*.java',
39 | ]),
40 | deps = [
41 | ':all-libs',
42 | ':build_config',
43 | ':res',
44 | ],
45 | )
46 |
47 | android_build_config(
48 | name = 'build_config',
49 | package = 'com.stripeexample',
50 | )
51 |
52 | android_resource(
53 | name = 'res',
54 | res = 'src/main/res',
55 | package = 'com.stripeexample',
56 | )
57 |
58 | android_binary(
59 | name = 'app',
60 | package_type = 'debug',
61 | manifest = 'src/main/AndroidManifest.xml',
62 | keystore = '//android/keystores:debug',
63 | deps = [
64 | ':app-code',
65 | ],
66 | )
67 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
12 |
13 |
19 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/android/app/src/main/java/com/stripeexample/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.stripeexample;
2 |
3 | import com.facebook.react.ReactActivity;
4 |
5 | public class MainActivity extends ReactActivity {
6 |
7 | /**
8 | * Returns the name of the main component registered from JavaScript.
9 | * This is used to schedule rendering of the component.
10 | */
11 | @Override
12 | protected String getMainComponentName() {
13 | return "StripeExample";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/android/app/src/main/java/com/stripeexample/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.stripeexample;
2 |
3 | import android.app.Application;
4 | import android.util.Log;
5 |
6 | import com.facebook.react.ReactApplication;
7 | import com.facebook.react.ReactInstanceManager;
8 | import com.facebook.react.ReactNativeHost;
9 | import com.facebook.react.ReactPackage;
10 | import com.facebook.react.shell.MainReactPackage;
11 | import com.facebook.soloader.SoLoader;
12 |
13 | import java.util.Arrays;
14 | import java.util.List;
15 |
16 | public class MainApplication extends Application implements ReactApplication {
17 |
18 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
19 | @Override
20 | public boolean getUseDeveloperSupport() {
21 | return BuildConfig.DEBUG;
22 | }
23 |
24 | @Override
25 | protected List getPackages() {
26 | return Arrays.asList(
27 | new MainReactPackage()
28 | );
29 | }
30 | };
31 |
32 | @Override
33 | public ReactNativeHost getReactNativeHost() {
34 | return mReactNativeHost;
35 | }
36 |
37 | @Override
38 | public void onCreate() {
39 | super.onCreate();
40 | SoLoader.init(this, /* native exopackage */ false);
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | StripeExample
3 |
4 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:1.3.1'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | mavenLocal()
18 | jcenter()
19 | maven {
20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
21 | url "$rootDir/../node_modules/react-native/android"
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
20 | android.useDeprecatedNdk=true
21 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
6 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/android/keystores/BUCK:
--------------------------------------------------------------------------------
1 | keystore(
2 | name = 'debug',
3 | store = 'debug.keystore',
4 | properties = 'debug.keystore.properties',
5 | visibility = [
6 | 'PUBLIC',
7 | ],
8 | )
9 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/android/keystores/debug.keystore.properties:
--------------------------------------------------------------------------------
1 | key.store=debug.keystore
2 | key.alias=androiddebugkey
3 | key.store.password=android
4 | key.alias.password=android
5 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'StripeExample'
2 |
3 | include ':app'
4 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/icon.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/index.android.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Sample React Native App
3 | * https://github.com/facebook/react-native
4 | * @flow
5 | */
6 |
7 | import React, { Component } from 'react';
8 | import { AppRegistry, StyleSheet, Text, View } from 'react-native';
9 |
10 | export default class StripeExample extends Component {
11 | render() {
12 | return (
13 |
14 | Welcome to React Native!
15 |
16 | To get started, edit index.android.js
17 |
18 |
19 | Double tap R on your keyboard to reload,{'\n'}
20 | Shake or press menu button for dev menu
21 |
22 |
23 | );
24 | }
25 | }
26 |
27 | const styles = StyleSheet.create({
28 | container: {
29 | flex: 1,
30 | justifyContent: 'center',
31 | alignItems: 'center',
32 | backgroundColor: '#F5FCFF'
33 | },
34 | welcome: {
35 | fontSize: 20,
36 | textAlign: 'center',
37 | margin: 10
38 | },
39 | instructions: {
40 | textAlign: 'center',
41 | color: '#333333',
42 | marginBottom: 5
43 | }
44 | });
45 |
46 | AppRegistry.registerComponent('StripeExample', () => StripeExample);
47 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Headers:
--------------------------------------------------------------------------------
1 | Versions/Current/Headers
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | Stripe
9 | CFBundleIdentifier
10 | com.stripe.stripe-ios
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundlePackageType
14 | FMWK
15 | CFBundleShortVersionString
16 | 11.1.0
17 | CFBundleSignature
18 | ????
19 | CFBundleVersion
20 | 11.1.0
21 | NSPrincipalClass
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Modules:
--------------------------------------------------------------------------------
1 | Versions/Current/Modules
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe:
--------------------------------------------------------------------------------
1 | Versions/Current/Stripe
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/Info.plist:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/Info.plist
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/_CodeSignature/CodeDirectory:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/_CodeSignature/CodeDirectory
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/_CodeSignature/CodeRequirements:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/_CodeSignature/CodeRequirements
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/_CodeSignature/CodeRequirements-1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/_CodeSignature/CodeRequirements-1
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/_CodeSignature/CodeSignature:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/_CodeSignature/CodeSignature
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/de.lproj/Localizable.strings:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/de.lproj/Localizable.strings
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/en.lproj/Localizable.strings:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/en.lproj/Localizable.strings
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/es.lproj/Localizable.strings:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/es.lproj/Localizable.strings
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/fr.lproj/Localizable.strings:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/fr.lproj/Localizable.strings
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/it.lproj/Localizable.strings:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/it.lproj/Localizable.strings
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/ja.lproj/Localizable.strings:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/ja.lproj/Localizable.strings
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/nl.lproj/Localizable.strings:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/nl.lproj/Localizable.strings
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_amex.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_amex.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_amex@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_amex@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_amex@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_amex@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_amex_template.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_amex_template.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_amex_template@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_amex_template@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_amex_template@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_amex_template@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_applepay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_applepay.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_applepay@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_applepay@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_applepay@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_applepay@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_cvc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_cvc.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_cvc@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_cvc@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_cvc@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_cvc@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_cvc_amex.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_cvc_amex.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_cvc_amex@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_cvc_amex@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_cvc_amex@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_cvc_amex@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_diners.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_diners.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_diners@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_diners@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_diners@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_diners@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_diners_template.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_diners_template.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_diners_template@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_diners_template@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_diners_template@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_diners_template@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_discover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_discover.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_discover@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_discover@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_discover@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_discover@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_discover_template.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_discover_template.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_discover_template@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_discover_template@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_discover_template@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_discover_template@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_error.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_error.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_error@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_error@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_error@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_error@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_error_amex.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_error_amex.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_error_amex@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_error_amex@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_error_amex@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_error_amex@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_form_back.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_form_back.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_form_back@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_form_back@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_form_back@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_form_back@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_form_front.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_form_front.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_form_front@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_form_front@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_form_front@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_form_front@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_jcb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_jcb.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_jcb@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_jcb@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_jcb@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_jcb@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_jcb_template.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_jcb_template.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_jcb_template@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_jcb_template@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_jcb_template@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_jcb_template@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_mastercard.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_mastercard.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_mastercard@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_mastercard@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_mastercard@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_mastercard@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_mastercard_template.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_mastercard_template.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_mastercard_template@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_mastercard_template@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_mastercard_template@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_mastercard_template@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_unknown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_unknown.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_unknown@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_unknown@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_unknown@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_unknown@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_visa.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_visa.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_visa@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_visa@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_visa@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_visa@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_visa_template.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_visa_template.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_visa_template@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_visa_template@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_visa_template@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_card_visa_template@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_icon_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_icon_add.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_icon_add@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_icon_add@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_icon_add@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_icon_add@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_icon_checkmark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_icon_checkmark.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_icon_checkmark@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_icon_checkmark@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_icon_checkmark@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_icon_checkmark@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_icon_chevron_left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_icon_chevron_left.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_icon_chevron_left@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_icon_chevron_left@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_icon_chevron_left@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_icon_chevron_left@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_shipping_form.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_shipping_form.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_shipping_form@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_shipping_form@2x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_shipping_form@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/stp_shipping_form@3x.png
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/zh-Hans.lproj/Localizable.strings:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Stripe.bundle/zh-Hans.lproj/Localizable.strings
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Versions/A/Headers/STPAPIClient+ApplePay.h:
--------------------------------------------------------------------------------
1 | //
2 | // STPAPIClient+ApplePay.h
3 | // Stripe
4 | //
5 | // Created by Jack Flintermann on 12/19/14.
6 | //
7 |
8 | #import
9 | #import
10 |
11 | #import "STPAPIClient.h"
12 |
13 | #define FAUXPAS_IGNORED_IN_FILE(...)
14 | FAUXPAS_IGNORED_IN_FILE(APIAvailability)
15 |
16 | /**
17 | * STPAPIClient extensions to create Stripe tokens from Apple Pay PKPayment objects.
18 | */
19 | @interface STPAPIClient (ApplePay)
20 |
21 | /**
22 | * Converts a PKPayment object into a Stripe token using the Stripe API.
23 | *
24 | * @param payment The user's encrypted payment information as returned from a PKPaymentAuthorizationViewController. Cannot be nil.
25 | * @param completion The callback to run with the returned Stripe token (and any errors that may have occurred).
26 | */
27 | - (void)createTokenWithPayment:(nonnull PKPayment *)payment
28 | completion:(nonnull STPTokenCompletionBlock)completion;
29 |
30 | /**
31 | * Converts a PKPayment object into a Stripe source using the Stripe API.
32 | *
33 | * @param payment The user's encrypted payment information as returned from a PKPaymentAuthorizationViewController. Cannot be nil.
34 | * @param completion The callback to run with the returned Stripe source (and any errors that may have occurred).
35 | */
36 | - (void)createSourceWithPayment:(nonnull PKPayment *)payment
37 | completion:(nonnull STPSourceCompletionBlock)completion;
38 |
39 | @end
40 |
41 | void linkSTPAPIClientApplePayCategory(void);
42 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Versions/A/Headers/STPAPIResponseDecodable.h:
--------------------------------------------------------------------------------
1 | //
2 | // STPAPIResponseDecodable.h
3 | // Stripe
4 | //
5 | // Created by Jack Flintermann on 10/14/15.
6 | // Copyright © 2015 Stripe, Inc. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @protocol STPAPIResponseDecodable
12 |
13 | /**
14 | * These fields are required to be present in the API response. If any of them are nil, `decodedObjectFromAPIResponse` should also return nil.
15 | */
16 | + (nonnull NSArray *)requiredFields;
17 |
18 | /**
19 | * Parses an response from the Stripe API (in JSON format; represented as an `NSDictionary`) into an instance of the class. Returns nil if the object could not be decoded (i.e. if one of its `requiredFields` is nil).
20 | */
21 | + (nullable instancetype)decodedObjectFromAPIResponse:(nullable NSDictionary *)response;
22 |
23 | /**
24 | * The raw JSON response used to create the object. This can be useful for using beta features that haven't yet been made into properties in the SDK.
25 | */
26 | @property(nonatomic, readonly, nonnull, copy)NSDictionary *allResponseFields;
27 |
28 | @end
29 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Versions/A/Headers/STPApplePayPaymentMethod.h:
--------------------------------------------------------------------------------
1 | //
2 | // STPApplePayPaymentMethod.h
3 | // Stripe
4 | //
5 | // Created by Ben Guo on 4/19/16.
6 | // Copyright © 2016 Stripe, Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "STPPaymentMethod.h"
11 |
12 | /**
13 | * An empty class representing that the user wishes to pay via Apple Pay. This can be checked on an `STPPaymentContext`, e.g.
14 | *
15 | * `if ([paymentContext.selectedPaymentMethod isKindOfClass:[STPApplePayPaymentMethod class]]) {
16 | * // don't ask the user for their card number; they want to pay with apple pay.
17 | * }`
18 | *
19 | */
20 | @interface STPApplePayPaymentMethod : NSObject
21 | @end
22 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Versions/A/Headers/STPCardBrand.h:
--------------------------------------------------------------------------------
1 | //
2 | // STPCardBrand.h
3 | // Stripe
4 | //
5 | // Created by Jack Flintermann on 7/24/15.
6 | // Copyright (c) 2015 Stripe, Inc. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | /**
12 | * The various card brands to which a payment card can belong.
13 | */
14 | typedef NS_ENUM(NSInteger, STPCardBrand) {
15 | STPCardBrandVisa,
16 | STPCardBrandAmex,
17 | STPCardBrandMasterCard,
18 | STPCardBrandDiscover,
19 | STPCardBrandJCB,
20 | STPCardBrandDinersClub,
21 | STPCardBrandUnknown,
22 | };
23 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Versions/A/Headers/STPCardValidationState.h:
--------------------------------------------------------------------------------
1 | //
2 | // STPCardValidationState.h
3 | // Stripe
4 | //
5 | // Created by Jack Flintermann on 8/7/15.
6 | // Copyright (c) 2015 Stripe, Inc. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | /**
12 | * These fields indicate whether a card field represents a valid value, invalid value, or incomplete value.
13 | */
14 | typedef NS_ENUM(NSInteger, STPCardValidationState) {
15 | STPCardValidationStateValid, // The field's contents are valid. For example, a valid, 16-digit card number.
16 | STPCardValidationStateInvalid, // The field's contents are invalid. For example, an expiration date of "13/42".
17 | STPCardValidationStateIncomplete, // The field's contents are not yet valid, but could be by typing additional characters. For example, a CVC of "1".
18 | };
19 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Versions/A/Headers/STPCoreScrollViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // STPCoreScrollViewController.h
3 | // Stripe
4 | //
5 | // Created by Brian Dorfman on 1/6/17.
6 | // Copyright © 2017 Stripe, Inc. All rights reserved.
7 | //
8 |
9 | #import "STPCoreViewController.h"
10 |
11 | NS_ASSUME_NONNULL_BEGIN
12 |
13 | /**
14 | This is the base class for all Stripe scroll view controllers. It is intended
15 | for use only by Stripe classes, you should not subclass it yourself in your app.
16 | */
17 | @interface STPCoreScrollViewController : STPCoreViewController
18 |
19 | @end
20 |
21 | NS_ASSUME_NONNULL_END
22 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Versions/A/Headers/STPCoreTableViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // STPCoreTableViewController.h
3 | // Stripe
4 | //
5 | // Created by Brian Dorfman on 1/6/17.
6 | // Copyright © 2017 Stripe, Inc. All rights reserved.
7 | //
8 |
9 | #import "STPCoreScrollViewController.h"
10 |
11 | NS_ASSUME_NONNULL_BEGIN
12 |
13 | /**
14 | This is the base class for all Stripe scroll view controllers. It is intended
15 | for use only by Stripe classes, you should not subclass it yourself in your app.
16 |
17 | It inherits from STPCoreScrollViewController and changes the type of the
18 | created scroll view to UITableView, as well as other shared table view logic.
19 | */
20 | @interface STPCoreTableViewController : STPCoreScrollViewController
21 |
22 | @end
23 |
24 | NS_ASSUME_NONNULL_END
25 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Versions/A/Headers/STPCoreViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // STPCoreViewController.h
3 | // Stripe
4 | //
5 | // Created by Brian Dorfman on 1/6/17.
6 | // Copyright © 2017 Stripe, Inc. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @class STPTheme;
12 |
13 | NS_ASSUME_NONNULL_BEGIN
14 |
15 | /**
16 | This is the base class for all Stripe view controllers. It is intended for use
17 | only by Stripe classes, you should not subclass it yourself in your app.
18 |
19 | It theming, back/cancel button management, and other shared logic for
20 | Stripe view controllers.
21 | */
22 | @interface STPCoreViewController : UIViewController
23 |
24 | /**
25 | A convenience initializer; equivalent to calling `initWithTheme:[STPTheme defaultTheme]`.
26 | */
27 | - (instancetype)init;
28 |
29 |
30 | /**
31 | Initializes a new view controller with the specified theme
32 |
33 | @param theme The theme to use to inform the view controller's visual appearance. @see STPTheme
34 | */
35 | - (instancetype)initWithTheme:(STPTheme *)theme NS_DESIGNATED_INITIALIZER;
36 |
37 |
38 | /**
39 | Passes through to the default UIViewController behavior for this initializer,
40 | and then also sets the default theme as in `init`
41 | */
42 | - (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil
43 | bundle:(nullable NSBundle *)nibBundleOrNil NS_DESIGNATED_INITIALIZER;
44 |
45 | /**
46 | Passes through to the default UIViewController behavior for this initializer,
47 | and then also sets the default theme as in `init`
48 | */
49 | - (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
50 |
51 | @end
52 |
53 | NS_ASSUME_NONNULL_END
54 |
55 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Versions/A/Headers/STPFile.h:
--------------------------------------------------------------------------------
1 | //
2 | // STPFile.h
3 | // Stripe
4 | //
5 | // Created by Charles Scalesse on 11/30/16.
6 | // Copyright © 2016 Stripe, Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "STPAPIResponseDecodable.h"
11 |
12 | NS_ASSUME_NONNULL_BEGIN
13 |
14 | typedef NS_ENUM(NSInteger, STPFilePurpose) {
15 | STPFilePurposeIdentityDocument,
16 | STPFilePurposeDisputeEvidence,
17 | STPFilePurposeUnknown,
18 | };
19 |
20 | @interface STPFile : NSObject
21 |
22 | /**
23 | * The token for this file.
24 | */
25 | @property (nonatomic, readonly) NSString *fileId;
26 |
27 | /**
28 | * The date this file was created.
29 | */
30 | @property (nonatomic, readonly) NSDate *created;
31 |
32 | /**
33 | * The purpose of this file. This can be either an identifing document or an evidence dispute.
34 | * @see https://stripe.com/docs/file-upload
35 | */
36 | @property (nonatomic, readonly) STPFilePurpose purpose;
37 |
38 | /**
39 | * The file size in bytes.
40 | */
41 | @property (nonatomic, readonly) NSNumber *size;
42 |
43 | /**
44 | * The file type. This can be "jpg", "png", or "pdf".
45 | */
46 | @property (nonatomic, readonly) NSString *type;
47 |
48 | /**
49 | * Returns the string value for a purpose.
50 | */
51 | + (nullable NSString *)stringFromPurpose:(STPFilePurpose)purpose;
52 |
53 | @end
54 |
55 | NS_ASSUME_NONNULL_END
56 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Versions/A/Headers/STPPaymentActivityIndicatorView.h:
--------------------------------------------------------------------------------
1 | //
2 | // STPPaymentActivityIndicatorView.h
3 | // Stripe
4 | //
5 | // Created by Jack Flintermann on 5/12/16.
6 | // Copyright © 2016 Stripe, Inc. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | /**
12 | * This class can be used wherever you'd use a `UIActivityIndicatorView` and is intended to have a similar API. It renders as a spinning circle with a gap in it, similar to what you see in the App Store app or in the Apple Pay dialog when making a purchase. To change its color, set the `tintColor` property.
13 | */
14 | @interface STPPaymentActivityIndicatorView : UIView
15 |
16 | /**
17 | * Tell the view to start or stop spinning. If `hidesWhenStopped` is true, it will fade in/out if animated is true.
18 | */
19 | - (void)setAnimating:(BOOL)animating
20 | animated:(BOOL)animated;
21 |
22 | /**
23 | * Whether or not the view is animating.
24 | */
25 | @property(nonatomic)BOOL animating;
26 |
27 | /**
28 | * If true, the view will hide when it is not spinning. Default is true.
29 | */
30 | @property(nonatomic)BOOL hidesWhenStopped;
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Versions/A/Headers/STPPaymentResult.h:
--------------------------------------------------------------------------------
1 | //
2 | // STPPaymentResult.h
3 | // Stripe
4 | //
5 | // Created by Jack Flintermann on 1/15/16.
6 | // Copyright © 2016 Stripe, Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "STPSourceProtocol.h"
11 |
12 | NS_ASSUME_NONNULL_BEGIN
13 |
14 | @class STPAddress;
15 |
16 | /**
17 | * When you're using `STPPaymentContext` to request your user's payment details, this is the object that will be returned to your application when they've successfully made a payment. It currently just contains a `source`, but in the future will include any relevant metadata as well. You should pass `source.stripeID` to your server, and call the charge creation endpoint. This assumes you are charging a Customer, so you should specify the `customer` parameter to be that customer's ID and the `source` parameter to the value returned here. For more information, see https://stripe.com/docs/api#create_charge
18 | */
19 | @interface STPPaymentResult : NSObject
20 |
21 | /**
22 | * The returned source that the user has selected. This may come from a variety of different payment methods, such as an Apple Pay payment or a stored credit card. @see STPSource.h
23 | */
24 | @property(nonatomic, readonly)id source;
25 |
26 | /**
27 | * Initializes the payment result with a given source. This is invoked by `STPPaymentContext` internally; you shouldn't have to call it directly.
28 | */
29 | - (nonnull instancetype)initWithSource:(id)source;
30 |
31 | @end
32 |
33 | NS_ASSUME_NONNULL_END
34 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Versions/A/Headers/STPSourceOwner.h:
--------------------------------------------------------------------------------
1 | //
2 | // STPSourceOwner.h
3 | // Stripe
4 | //
5 | // Created by Ben Guo on 1/25/17.
6 | // Copyright © 2017 Stripe, Inc. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import "STPAPIResponseDecodable.h"
12 |
13 | @class STPAddress;
14 |
15 | /**
16 | * Information about a source's owner.
17 | */
18 | @interface STPSourceOwner : NSObject
19 |
20 | /**
21 | * You cannot directly instantiate an `STPSourceOwner`. You should only use one that is part of an existing `STPSource` object.
22 | */
23 | - (nonnull instancetype) init __attribute__((unavailable("You cannot directly instantiate an STPSourceOwner. You should only use one that is part of an existing STPSource object.")));
24 |
25 | /**
26 | * Owner's address.
27 | */
28 | @property (nonatomic, readonly, nullable) STPAddress *address;
29 |
30 | /**
31 | * Owner's email address.
32 | */
33 | @property (nonatomic, readonly, nullable) NSString *email;
34 |
35 | /**
36 | * Owner's full name.
37 | */
38 | @property (nonatomic, readonly, nullable) NSString *name;
39 |
40 | /**
41 | * Owner's phone number.
42 | */
43 | @property (nonatomic, readonly, nullable) NSString *phone;
44 |
45 | /**
46 | * Verified owner's address.
47 | */
48 | @property (nonatomic, readonly, nullable) STPAddress *verifiedAddress;
49 |
50 | /**
51 | * Verified owner's email address.
52 | */
53 | @property (nonatomic, readonly, nullable) NSString *verifiedEmail;
54 |
55 | /**
56 | * Verified owner's full name.
57 | */
58 | @property (nonatomic, readonly, nullable) NSString *verifiedName;
59 |
60 | /**
61 | * Verified owner's phone number.
62 | */
63 | @property (nonatomic, readonly, nullable) NSString *verifiedPhone;
64 |
65 | @end
66 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Versions/A/Headers/STPSourceProtocol.h:
--------------------------------------------------------------------------------
1 | //
2 | // STPSourceProtocol.h
3 | // Stripe
4 | //
5 | // Created by Jack Flintermann on 1/15/16.
6 | // Copyright © 2016 Stripe, Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | /**
13 | * Objects conforming to this protocol can be attached to a Stripe Customer object as a payment source.
14 | * @see https://stripe.com/docs/api#customer_object-sources
15 | */
16 | @protocol STPSourceProtocol
17 |
18 | /**
19 | * The stripe ID of the source.
20 | */
21 | @property(nonatomic, readonly, copy, nonnull)NSString *stripeID;
22 |
23 | @end
24 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Versions/A/Headers/STPSourceReceiver.h:
--------------------------------------------------------------------------------
1 | //
2 | // STPSourceReceiver.h
3 | // Stripe
4 | //
5 | // Created by Ben Guo on 1/25/17.
6 | // Copyright © 2017 Stripe, Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "STPAPIResponseDecodable.h"
11 |
12 | /**
13 | * Information related to a source's receiver flow.
14 | */
15 | @interface STPSourceReceiver : NSObject
16 |
17 | /**
18 | * You cannot directly instantiate an `STPSourceReceiver`. You should only use one that is part of an existing `STPSource` object.
19 | */
20 | - (nonnull instancetype) init __attribute__((unavailable("You cannot directly instantiate an STPSourceReceiver. You should only use one that is part of an existing STPSource object.")));
21 |
22 | /**
23 | * The address of the receiver source. This is the value that should be communicated to the customer to send their funds to.
24 | */
25 | @property (nonatomic, readonly, nullable) NSString *address;
26 |
27 | /**
28 | * The total amount charged by you.
29 | */
30 | @property (nonatomic, readonly, nullable) NSNumber *amountCharged;
31 |
32 | /**
33 | * The total amount received by the receiver source.
34 | */
35 | @property (nonatomic, readonly, nullable) NSNumber *amountReceived;
36 |
37 | /**
38 | * The total amount that was returned to the customer.
39 | */
40 | @property (nonatomic, readonly, nullable) NSNumber *amountReturned;
41 |
42 | @end
43 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Versions/A/Headers/STPSourceRedirect.h:
--------------------------------------------------------------------------------
1 | //
2 | // STPSourceRedirect.h
3 | // Stripe
4 | //
5 | // Created by Ben Guo on 1/25/17.
6 | // Copyright © 2017 Stripe, Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "STPAPIResponseDecodable.h"
11 |
12 | /**
13 | * Redirect status types for a Source
14 | */
15 | typedef NS_ENUM(NSInteger, STPSourceRedirectStatus) {
16 | STPSourceRedirectStatusPending,
17 | STPSourceRedirectStatusSucceeded,
18 | STPSourceRedirectStatusFailed,
19 | STPSourceRedirectStatusUnknown
20 | };
21 |
22 | /**
23 | * Information related to a source's redirect flow.
24 | */
25 | @interface STPSourceRedirect : NSObject
26 |
27 | /**
28 | * You cannot directly instantiate an `STPSourceRedirect`. You should only use one that is part of an existing `STPSource` object.
29 | */
30 | - (nonnull instancetype) init __attribute__((unavailable("You cannot directly instantiate an STPSourceRedirect. You should only use one that is part of an existing STPSource object.")));
31 |
32 | /**
33 | * The URL you provide to redirect the customer to after they authenticated their payment.
34 | */
35 | @property (nonatomic, readonly, nullable) NSURL *returnURL;
36 |
37 | /**
38 | * The status of the redirect.
39 | */
40 | @property (nonatomic, readonly) STPSourceRedirectStatus status;
41 |
42 | /**
43 | * The URL provided to you to redirect a customer to as part of a redirect authentication flow.
44 | */
45 | @property (nonatomic, readonly, nullable) NSURL *url;
46 |
47 | @end
48 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Versions/A/Headers/STPSourceVerification.h:
--------------------------------------------------------------------------------
1 | //
2 | // STPSourceVerification.h
3 | // Stripe
4 | //
5 | // Created by Ben Guo on 1/25/17.
6 | // Copyright © 2017 Stripe, Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "STPAPIResponseDecodable.h"
11 |
12 | /**
13 | * Verification status types for a Source
14 | */
15 | typedef NS_ENUM(NSInteger, STPSourceVerificationStatus) {
16 | STPSourceVerificationStatusPending,
17 | STPSourceVerificationStatusSucceeded,
18 | STPSourceVerificationStatusFailed,
19 | STPSourceVerificationStatusUnknown
20 | };
21 |
22 | /**
23 | * Information related to a source's verification flow.
24 | */
25 | @interface STPSourceVerification : NSObject
26 |
27 | /**
28 | * You cannot directly instantiate an `STPSourceVerification`. You should only use one that is part of an existing `STPSource` object.
29 | */
30 | - (nonnull instancetype) init __attribute__((unavailable("You cannot directly instantiate an STPSourceVerification. You should only use one that is part of an existing STPSource object.")));
31 |
32 | /**
33 | * The number of attempts remaining to authenticate the source object with a verification code.
34 | */
35 | @property (nonatomic, readonly, nullable) NSNumber *attemptsRemaining;
36 |
37 | /**
38 | * The status of the verification.
39 | */
40 | @property (nonatomic, readonly) STPSourceVerificationStatus status;
41 |
42 | @end
43 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Versions/A/Headers/STPUserInformation.h:
--------------------------------------------------------------------------------
1 | //
2 | // STPUserInformation.h
3 | // Stripe
4 | //
5 | // Created by Jack Flintermann on 6/15/16.
6 | // Copyright © 2016 Stripe, Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "STPAddress.h"
11 |
12 | NS_ASSUME_NONNULL_BEGIN
13 |
14 | /**
15 | * You can use this class to specify information that you've already collected
16 | * from your user. You can then set the `prefilledInformation` property on
17 | * `STPPaymentContext`, `STPAddCardViewController`, etc and it will pre-fill
18 | * this information whenever possible.
19 | */
20 | @interface STPUserInformation : NSObject
21 |
22 | /**
23 | * The user's billing address. When set, the add card form will be filled with
24 | * this address. The user will also have the option to fill their shipping address
25 | * using this address.
26 | */
27 | @property(nonatomic, strong, nullable)STPAddress *billingAddress;
28 |
29 | /**
30 | * The user's shipping address. When set, the shipping address form will be filled
31 | * with this address. The user will also have the option to fill their billing
32 | * address using this address.
33 | */
34 | @property(nonatomic, strong, nullable)STPAddress *shippingAddress;
35 |
36 | @end
37 |
38 | NS_ASSUME_NONNULL_END
39 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Versions/A/Headers/UINavigationBar+Stripe_Theme.h:
--------------------------------------------------------------------------------
1 | //
2 | // UINavigationBar+Stripe_Theme.h
3 | // Stripe
4 | //
5 | // Created by Jack Flintermann on 5/17/16.
6 | // Copyright © 2016 Stripe, Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "STPTheme.h"
11 |
12 | NS_ASSUME_NONNULL_BEGIN
13 |
14 | /**
15 | * This allows quickly setting the appearance of a `UINavigationBar` to match your application. This is useful if you're presenting an `STPAddCardViewController` or `STPPaymentMethodsViewController` inside a `UINavigationController`.
16 | */
17 | @interface UINavigationBar (Stripe_Theme)
18 |
19 | /**
20 | * Sets the navigation bar's appearance to the desired theme. This will affect the bar's `tintColor` and `barTintColor` properties, as well as the color of the single-pixel line at the bottom of the navbar.
21 | *
22 | * @param theme the theme to use to style the navigation bar. @see STPTheme.h
23 | * @deprecated Use the `stp_theme` property instead
24 | */
25 | - (void)stp_setTheme:(STPTheme *)theme __attribute__((deprecated));
26 |
27 | /**
28 | * Sets the navigation bar's appearance to the desired theme. This will affect the bar's `tintColor` and `barTintColor` properties, as well as the color of the single-pixel line at the bottom of the navbar.
29 | * Stripe view controllers will use their navigation bar's theme for their UIBarButtonItems instead of their own theme if it is not nil.
30 | *
31 | * @see STPTheme.h
32 | */
33 | @property (nonatomic, nullable, strong) STPTheme *stp_theme;
34 |
35 | @end
36 |
37 | NS_ASSUME_NONNULL_END
38 |
39 | void linkUINavigationBarThemeCategory(void);
40 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Versions/A/Modules/module.modulemap:
--------------------------------------------------------------------------------
1 | framework module Stripe { umbrella header "Stripe.h" export * module * { export * } }
2 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Versions/A/Stripe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExodusMovement/react-native-payments/a39ea297402a068c4b8929c80c4792a0571c9d38/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Versions/A/Stripe
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/Frameworks/Stripe.framework/Versions/Current:
--------------------------------------------------------------------------------
1 | A
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/StripeExample-tvOSTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/StripeExample/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | @interface AppDelegate : UIResponder
13 |
14 | @property (nonatomic, strong) UIWindow *window;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/StripeExample/AppDelegate.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import "AppDelegate.h"
11 |
12 | #import
13 | #import
14 |
15 | @implementation AppDelegate
16 |
17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
18 | {
19 | NSURL *jsCodeLocation;
20 |
21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
22 |
23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
24 | moduleName:@"StripeExample"
25 | initialProperties:nil
26 | launchOptions:launchOptions];
27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
28 |
29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
30 | UIViewController *rootViewController = [UIViewController new];
31 | rootViewController.view = rootView;
32 | self.window.rootViewController = rootViewController;
33 | [self.window makeKeyAndVisible];
34 | return YES;
35 | }
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/StripeExample/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | }
33 | ],
34 | "info" : {
35 | "version" : 1,
36 | "author" : "xcode"
37 | }
38 | }
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/StripeExample/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | RNP Stripe
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1
25 | LSRequiresIPhoneOS
26 |
27 | NSAppTransportSecurity
28 |
29 | NSExceptionDomains
30 |
31 | localhost
32 |
33 | NSExceptionAllowsInsecureHTTPLoads
34 |
35 |
36 |
37 |
38 | NSLocationWhenInUseUsageDescription
39 |
40 | UILaunchStoryboardName
41 | LaunchScreen
42 | UIRequiredDeviceCapabilities
43 |
44 | armv7
45 |
46 | UISupportedInterfaceOrientations
47 |
48 | UIInterfaceOrientationPortrait
49 | UIInterfaceOrientationLandscapeLeft
50 | UIInterfaceOrientationLandscapeRight
51 |
52 | UIViewControllerBasedStatusBarAppearance
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/StripeExample/StripeExample.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.developer.in-app-payments
6 |
7 | merchant.com.react-native-payments.naoufal
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/StripeExample/main.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | #import "AppDelegate.h"
13 |
14 | int main(int argc, char * argv[]) {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/ios/StripeExampleTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "StripeExample",
3 | "version": "0.0.1",
4 | "private": true,
5 | "scripts": {
6 | "start": "node node_modules/react-native/local-cli/cli.js start",
7 | "test": "jest",
8 | "run:packager": "yarn run haul start -- --platform ios",
9 | "run:ios": "react-native run-ios"
10 | },
11 | "dependencies": {
12 | "react": "~15.4.0-rc.4",
13 | "react-native": "0.41.0",
14 | "react-native-payments": "0.1.2",
15 | "react-native-payments-addon-stripe": "11.1.0"
16 | },
17 | "devDependencies": {
18 | "babel-jest": "20.0.3",
19 | "babel-preset-react-native": "2.1.0",
20 | "haul": "^1.0.0-beta.1",
21 | "jest": "20.0.4",
22 | "react-test-renderer": "~15.4.0-rc.4"
23 | },
24 | "jest": {
25 | "preset": "react-native"
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/stripe/webpack.haul.js:
--------------------------------------------------------------------------------
1 | const path = require('path');
2 |
3 | module.exports = ({ platform }, defaults) => ({
4 | entry: `./index.${platform}.js`,
5 | resolve: {
6 | ...defaults.resolve,
7 | modules: [
8 | path.resolve(__dirname, 'node_modules'),
9 | path.resolve(__dirname, '../../node_modules')
10 | ]
11 | }
12 | });
13 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/web/.gitignore:
--------------------------------------------------------------------------------
1 | public/bundle.js
2 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/web/index.web.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { render } from 'react-dom';
3 | import App from '../common/App';
4 |
5 | if (window.PaymentRequest) {
6 | render(, document.getElementById('app'));
7 | // Don't render the app on Browsers that don't support PaymentRequest
8 | } else {
9 | document.write(
10 | `Your browser doesn't support the PaymentRequest API.`
11 | );
12 | }
13 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/web/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-native-payments-web-example",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.web.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1",
8 | "run:web": "webpack-dev-server --open --config=webpack.development.config.js",
9 | "build:web": "webpack --config=webpack.production.config.js --color --progress",
10 | "deploy:web": "now ./public/ --name='rnp-web' --public"
11 | },
12 | "author": "Naoufal Kadhom",
13 | "license": "MIT",
14 | "dependencies": {
15 | "react": "~15.4.0-rc.4",
16 | "react-dom": "~15.4.0-rc.4",
17 | "react-native-payments": "file:../..",
18 | "react-primitives": "^0.4.2"
19 | },
20 | "devDependencies": {
21 | "babel-loader": "^7.0.0",
22 | "webpack": "^2.6.1",
23 | "webpack-dev-server": "^2.4.5"
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/web/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | React Native Payments Web Example
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/web/webpack.base.config.js:
--------------------------------------------------------------------------------
1 | const path = require('path');
2 |
3 | module.exports = {
4 | entry: './index.web.js',
5 | output: {
6 | path: path.resolve(__dirname, 'public'),
7 | filename: 'bundle.js'
8 | },
9 | resolve: {
10 | modules: [path.resolve(__dirname, 'node_modules')],
11 | alias: {
12 | 'react-native': 'react-primitives'
13 | }
14 | },
15 | module: {
16 | rules: [
17 | {
18 | test: /\.js$/,
19 | exclude: /(node_modules|bower_components)/,
20 | use: {
21 | loader: 'babel-loader'
22 | }
23 | }
24 | ]
25 | }
26 | };
27 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/web/webpack.development.config.js:
--------------------------------------------------------------------------------
1 | const webpack = require('webpack');
2 | const baseWebpackConfig = require('./webpack.base.config.js');
3 |
4 | module.exports = Object.assign({}, baseWebpackConfig, {
5 | devServer: {
6 | port: 8080,
7 | historyApiFallback: {
8 | index: './public/index.html'
9 | }
10 | },
11 | plugins: [
12 | new webpack.DefinePlugin({
13 | __DEV__: true,
14 | 'process.env': {
15 | NODE_ENV: JSON.stringify('development')
16 | }
17 | })
18 | ]
19 | });
20 |
--------------------------------------------------------------------------------
/packages/react-native-payments/examples/web/webpack.production.config.js:
--------------------------------------------------------------------------------
1 | const webpack = require('webpack');
2 | const baseWebpackConfig = require('./webpack.base.config.js');
3 |
4 | module.exports = Object.assign({}, baseWebpackConfig, {
5 | plugins: [
6 | new webpack.DefinePlugin({
7 | __DEV__: false,
8 | 'process.env': {
9 | NODE_ENV: JSON.stringify('production')
10 | }
11 | }),
12 | new webpack.optimize.UglifyJsPlugin({
13 | compress: {
14 | warnings: false
15 | }
16 | })
17 | ]
18 | });
19 |
--------------------------------------------------------------------------------
/packages/react-native-payments/lib/ios/GatewayManager.h:
--------------------------------------------------------------------------------
1 | @import PassKit;
2 |
3 | #import
4 |
5 | #if __has_include()
6 | #import
7 | #endif
8 |
9 | @interface GatewayManager : NSObject
10 | #if __has_include()
11 | @property (nonatomic, strong) BTAPIClient * _Nullable braintreeClient;
12 | #endif
13 |
14 | + (NSArray *_Nonnull)getSupportedGateways;
15 | - (void)configureGateway:(NSDictionary *_Nonnull)gatewayParameters
16 | merchantIdentifier:(NSString *_Nonnull)merchantId;
17 | - (void)createTokenWithPayment:(PKPayment *_Nonnull)payment
18 | completion:(void (^_Nullable)(NSString * _Nullable token, NSError * _Nullable error))completion;
19 |
20 | // Stripe
21 | - (void)configureStripeGateway:(NSDictionary *_Nonnull)gatewayParameters
22 | merchantIdentifier:(NSString *_Nonnull)merchantId;
23 | - (void)createStripeTokenWithPayment:(PKPayment *_Nonnull)payment
24 | completion:(void (^_Nullable)(NSString * _Nullable token, NSError * _Nullable error))completion;
25 |
26 | // Braintree
27 | - (void)configureBraintreeGateway:(NSDictionary *_Nonnull)gatewayParameters;
28 | - (void)createBraintreeTokenWithPayment:(PKPayment *_Nonnull)payment
29 | completion:(void (^_Nullable)(NSString * _Nullable token, NSError * _Nullable error))completion;
30 | @end
31 |
--------------------------------------------------------------------------------
/packages/react-native-payments/lib/ios/ReactNativePayments.podspec:
--------------------------------------------------------------------------------
1 | require "json"
2 |
3 | package = JSON.parse(File.read(File.join(__dir__, "../../package.json")))
4 | version = package["version"]
5 | giturl = package["repository"]
6 |
7 | Pod::Spec.new do |s|
8 | s.name = "ReactNativePayments"
9 | s.version = version
10 | s.summary = "react-native-payments"
11 | s.description = <<-DESC
12 | Native Payments (Google and Apple Pay) from React-Native
13 | DESC
14 | s.homepage = giturl
15 | s.license = "MIT"
16 | s.author = "Naoufal Kadhom"
17 | s.platform = :ios, "7.0"
18 | s.source = { :git => giturl + ".git", :tag => version }
19 | s.source_files = "*.{h,m}"
20 | s.requires_arc = true
21 |
22 |
23 | s.dependency "React"
24 | #s.dependency "others"
25 |
26 | end
27 |
--------------------------------------------------------------------------------
/packages/react-native-payments/lib/ios/ReactNativePayments.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/packages/react-native-payments/lib/ios/Views/PKPaymentButtonManager.h:
--------------------------------------------------------------------------------
1 | //
2 | // ApplePayPaymentButtonManager.h
3 | // ReactNativePaymentsExample
4 | //
5 | // Created by Andrej on 15/05/2018.
6 | // Copyright © 2018 Facebook. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface PKPaymentButtonManager : RCTViewManager
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/packages/react-native-payments/lib/ios/Views/PKPaymentButtonManager.m:
--------------------------------------------------------------------------------
1 | //
2 | // ApplePayPaymentButtonManager.m
3 | // ReactNativePaymentsExample
4 | //
5 | // Created by Andrej on 15/05/2018.
6 | // Copyright © 2018 Facebook. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "PKPaymentButtonManager.h"
11 | #import "PKPaymentButtonView.h"
12 |
13 | @implementation PKPaymentButtonManager
14 |
15 | RCT_EXPORT_MODULE()
16 |
17 | RCT_EXPORT_VIEW_PROPERTY(onPress, RCTBubblingEventBlock)
18 |
19 | RCT_CUSTOM_VIEW_PROPERTY(buttonType, NSString, PKPaymentButtonView)
20 | {
21 | if (json) {
22 | [view setButtonType:[RCTConvert NSString:json]];
23 | }
24 | }
25 |
26 | RCT_CUSTOM_VIEW_PROPERTY(buttonStyle, NSString, PKPaymentButtonView)
27 | {
28 | if (json) {
29 | [view setButtonStyle:[RCTConvert NSString:json]];
30 | }
31 | }
32 |
33 | RCT_CUSTOM_VIEW_PROPERTY(cornerRadius, CGFloat, PKPaymentButtonView)
34 | {
35 | if (json) {
36 | [view setCornerRadius:[RCTConvert CGFloat:json]];
37 | }
38 | }
39 |
40 | - (UIView *) view
41 | {
42 | return [PKPaymentButtonView new];
43 | }
44 |
45 | @end
46 |
--------------------------------------------------------------------------------
/packages/react-native-payments/lib/ios/Views/PKPaymentButtonView.h:
--------------------------------------------------------------------------------
1 | //
2 | // ApplePayPaymentButton.h
3 | // ReactNativePaymentsExample
4 | //
5 | // Created by Andrej on 16/05/2018.
6 | // Copyright © 2018 Facebook. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface PKPaymentButtonView : RCTView
13 |
14 | @property (strong, nonatomic) NSString *buttonStyle;
15 | @property (strong, nonatomic) NSString *buttonType;
16 | @property (nonatomic) CGFloat cornerRadius;
17 | @property (nonatomic, readonly) PKPaymentButton *button;
18 | @property (nonatomic, copy) RCTBubblingEventBlock onPress;
19 |
20 | @end
21 |
--------------------------------------------------------------------------------
/packages/react-native-payments/lib/js/__mocks__/index.js:
--------------------------------------------------------------------------------
1 | const mockReactNativeIOS = {
2 | Platform: {
3 | OS: 'ios'
4 | },
5 | DeviceEventEmitter: {
6 | removeSubscription: () => {},
7 | addListener: () => {}
8 | }
9 | };
10 |
11 | const mockReactNativeAndroid = Object.assign({}, mockReactNativeIOS, {
12 | Platform: {
13 | OS: 'android'
14 | }
15 | });
16 |
17 | const mockNativePaymentsSupportedIOS = {
18 | canMakePayments: true,
19 | createPaymentRequest: () => {},
20 | handleDetailsUpdate: () => {},
21 | show: cb => cb(), // TODO, may have to fire an event that DeviceEventEmitter will listen to
22 | abort: cb => cb(),
23 | complete: (paymentStatus, cb) => cb()
24 | };
25 |
26 | const mockNativePaymentsUnsupportedIOS = Object.assign(
27 | {},
28 | mockNativePaymentsSupportedIOS,
29 | {
30 | canMakePayments: false
31 | }
32 | );
33 |
34 | module.exports = {
35 | mockReactNativeIOS,
36 | mockReactNativeAndroid,
37 | mockNativePaymentsSupportedIOS,
38 | mockNativePaymentsUnsupportedIOS
39 | };
40 |
--------------------------------------------------------------------------------
/packages/react-native-payments/lib/js/constants.js:
--------------------------------------------------------------------------------
1 | import { Platform } from 'react-native';
2 |
3 | export const MODULE_SCOPING = 'NativePayments';
4 | export const SHIPPING_ADDRESS_CHANGE_EVENT = 'shippingaddresschange';
5 | export const SHIPPING_OPTION_CHANGE_EVENT = 'shippingoptionchange';
6 | export const INTERNAL_SHIPPING_ADDRESS_CHANGE_EVENT = `${MODULE_SCOPING}:on${SHIPPING_ADDRESS_CHANGE_EVENT}`;
7 | export const INTERNAL_SHIPPING_OPTION_CHANGE_EVENT = `${MODULE_SCOPING}:on${SHIPPING_OPTION_CHANGE_EVENT}`;
8 | export const USER_DISMISS_EVENT = `${MODULE_SCOPING}:onuserdismiss`;
9 | export const USER_ACCEPT_EVENT = `${MODULE_SCOPING}:onuseraccept`;
10 | export const GATEWAY_ERROR_EVENT = `${MODULE_SCOPING}:ongatewayerror`;
11 | export const SUPPORTED_METHOD_NAME =
12 | Platform.OS === 'ios' ? 'apple-pay' : 'android-pay';
13 |
--------------------------------------------------------------------------------
/packages/react-native-payments/lib/js/errors/__tests__/index-test.js:
--------------------------------------------------------------------------------
1 | const { DOMException } = require('..');
2 |
3 | describe('errors', () => {
4 | describe('DOMException', () => {
5 | it('should init a `AbortError` `DOMException`', () => {
6 | expect(() => {
7 | throw new DOMException('AbortError');
8 | }).toThrow('The operation was aborted.');
9 | });
10 |
11 | it('should init a `InvalidStateError` `DOMException`', () => {
12 | expect(() => {
13 | throw new DOMException('InvalidStateError');
14 | }).toThrow('The object is in an invalid state.');
15 | });
16 |
17 | it('should init a `NotAllowedError` `DOMException`', () => {
18 | expect(() => {
19 | throw new DOMException('NotAllowedError');
20 | }).toThrow(
21 | 'The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.'
22 | );
23 | });
24 |
25 | it('should init a `NotSupportedError` `DOMException`', () => {
26 | expect(() => {
27 | throw new DOMException('NotSupportedError');
28 | }).toThrow('The operation is not supported.');
29 | });
30 |
31 | it('should init a `SecurityError` `DOMException`', () => {
32 | expect(() => {
33 | throw new DOMException('SecurityError');
34 | }).toThrow('The operation is insecure.');
35 | });
36 | });
37 | });
38 |
--------------------------------------------------------------------------------
/packages/react-native-payments/lib/js/errors/index.js:
--------------------------------------------------------------------------------
1 | import ExtendableError from 'es6-error';
2 |
3 | const ERROR_MESSAGES = {
4 | AbortError: 'The operation was aborted.', // Request cancelled
5 | InvalidStateError: 'The object is in an invalid state.',
6 | NotAllowedError:
7 | 'The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.',
8 | NotSupportedError: 'The operation is not supported.',
9 | SecurityError: 'The operation is insecure.'
10 | };
11 |
12 | class ReactNativePaymentsError extends ExtendableError {
13 | constructor(errorMessage) {
14 | super(`[ReactNativePayments] ${errorMessage}`);
15 | }
16 | }
17 |
18 | export class DOMException extends ReactNativePaymentsError {
19 | constructor(errorType) {
20 | const errorMessage = ERROR_MESSAGES[errorType] || errorType;
21 |
22 | super(`DOMException: ${errorMessage}`);
23 | }
24 | }
25 |
26 | export class TypeError extends ReactNativePaymentsError {
27 | constructor(errorMessage) {
28 | super(`TypeError: ${errorMessage}`);
29 | }
30 | }
31 |
32 | export class ConstructorError extends ReactNativePaymentsError {
33 | constructor(errorMessage) {
34 | super(`Failed to construct 'PaymentRequest': ${errorMessage}`);
35 | }
36 | }
37 |
38 | export class GatewayError extends ExtendableError {
39 | constructor(errorMessage) {
40 | super(`${errorMessage}`);
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/packages/react-native-payments/lib/js/helpers/__tests__/index-test.js:
--------------------------------------------------------------------------------
1 | const {
2 | isValidDecimalMonetaryValue,
3 | isValidStringAmount,
4 | } = require('..');
5 |
6 | describe('helpers', () => {
7 | describe('isValidDecimalMonetaryValue', () => {
8 | it('`Array` should not be a valid string amount', () => {
9 | expect(isValidDecimalMonetaryValue([])).toBe(false);
10 | });
11 |
12 | it('`Object` should not be a valid string amount', () => {
13 | expect(isValidDecimalMonetaryValue({})).toBe(false);
14 | });
15 |
16 | it('`Function` should not be a valid string amount', () => {
17 | expect(isValidDecimalMonetaryValue(() => {})).toBe(false);
18 | });
19 |
20 | it('`undefined` should not be a valid string amount', () => {
21 | expect(isValidDecimalMonetaryValue(undefined)).toBe(false);
22 | });
23 |
24 | it('`null` should not be a valid string amount', () => {
25 | expect(isValidDecimalMonetaryValue(null)).toBe(false);
26 | });
27 | });
28 |
29 | describe('isValidStringAmount', () => {
30 | it('`9.999` should not be a valid string amount', () => {
31 | expect(isValidStringAmount('9.999')).toBe(true);
32 | });
33 |
34 | it('`9.99` should be a valid string amount', () => {
35 | expect(isValidStringAmount('9.99')).toBe(true);
36 | });
37 |
38 | it('`9.9` should be a valid string amount', () => {
39 | expect(isValidStringAmount('9.9')).toBe(true);
40 | });
41 |
42 | it('`9` should be a valid string amount', () => {
43 | expect(isValidStringAmount('9')).toBe(true);
44 | });
45 |
46 | it('`9.` should not be a valid string amount', () => {
47 | expect(isValidStringAmount('9.')).toBe(false);
48 | });
49 | });
50 | });
51 |
--------------------------------------------------------------------------------
/packages/react-native-payments/lib/js/index.js:
--------------------------------------------------------------------------------
1 | // @flow
2 |
3 | import _PaymentRequest from './PaymentRequest';
4 | import { PKPaymentButton } from './PKPaymentButton';
5 | import NativePayments from './NativePayments';
6 |
7 | export const ApplePayButton = PKPaymentButton;
8 | export const PaymentRequest = _PaymentRequest;
9 | export const openPaymentSetup = NativePayments.openPaymentSetup;
10 |
--------------------------------------------------------------------------------
/packages/react-native-payments/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@exodus/react-native-payments",
3 | "version": "1.6.1",
4 | "main": "lib/js/index.js",
5 | "scripts": {
6 | "run:packager": "cd examples/native && yarn run:packager",
7 | "run:ios": "cd examples/native && yarn run:ios",
8 | "run:web": "cd examples/web && yarn run:web",
9 | "run:demo": "cd examples/native && yarn run:demo",
10 | "test": "jest"
11 | },
12 | "repository": "https://github.com/naoufal/react-native-payments",
13 | "keywords": [
14 | "react",
15 | "react-native",
16 | "apple-pay",
17 | "stripe",
18 | "braintree",
19 | "payments"
20 | ],
21 | "author": "Naoufal Kadhom",
22 | "license": "MIT",
23 | "dependencies": {
24 | "@exodus/crypto": "^1.0.0-rc.2",
25 | "es6-error": "^4.0.2"
26 | },
27 | "devDependencies": {
28 | "babel-jest": "20.0.3",
29 | "babel-preset-react-native": "2.0.0",
30 | "husky": "^0.14.1",
31 | "jest": "20.0.4",
32 | "react-test-renderer": "16.0.0-alpha.12"
33 | },
34 | "peerDependencies": {
35 | "react": ">=15",
36 | "react-native": ">=0.41"
37 | },
38 | "jest": {
39 | "testPathIgnorePatterns": [
40 | "/node_modules/",
41 | "/examples/",
42 | "lib/js/__tests__"
43 | ]
44 | }
45 | }
46 |
--------------------------------------------------------------------------------