# App Clips (https://guides.sterasmartone.com/payment/sdk/ios/app-clips)


The StripeApplePay Plugin for iOS is a lightweight SDK that reduces app size when you develop App Clips.

### Installation [#installation]

* To install with CocoaPods:

```ruby
pod 'Elepay_StripeApplePay_Plugin', "~> 0.1.0"
```
* To download the XCFramework directly, download it from the URL below.<br />[→ Elepay\_StripeApplePay\_Plugin releases page](https://github.com/elestyle/elepay-stripeapplepay-plugin/releases)

Note that this plugin must always be used together with the [elepay iOS SDK](https://github.com/elestyle/elepay-ios-sdk).

### System requirements [#system-requirements]

* iOS 11.0 or later, Xcode 12.5.1 or later
* The StripeApplePay SDK is already built in, so you do not need to import the Stripe SDK or StripeApplePaySDK
* If the Stripe SDK is already imported into your App Clip target, this plugin duplicates its functionality, so do not use them at the same time

### Example setup [#example-setup]

Example Podfile setup for using this plugin with App Clips

```ruby
# Uncomment the next line to define a global platform for your project
platform :ios, '11.0'

project 'Example.xcodeproj'
workspace 'Example.xcworkspace'

def elepay_pods
  use_frameworks!

  # Pods for the full functional App
  pod 'ElepaySDK', '~> 3.4.0'
  pod 'Stripe', '~> 21.13.0'
  
  # The Chinese Payment Methods Plugin, use this plugin only when you need support WeChat Pay
  pod 'Elepay_ChinesePayments_Plugin', '~> 2.1.0'
end

def elepay_app_clip_pods
  use_frameworks!

  # Pods for the App Clip
  pod 'ElepaySDK', '~> 3.4.0'
  pod 'Elepay_StripeApplePay_Plugin', "~> 0.1.0"
end

target 'YourFullFunctionalAppTarget' do
  elepay_pods
end

target 'YourAppClipTarget' do
  elepay_app_clip_pods
end
```
