Adyen/adyen-wechatpay-ios
Adyen WeChat Pay SDK Wrapper
Requirements
- For embedding the XCFramework into an Xcode project, Xcode 11+ is required.
- For integrating through Swift Package Manager, Xcode 12+ is required.
- Supports iOS 12+.
Installation
Embedding XCFramework.
- Drag the XCFramework into your Frameworks folder.
- Make sure to Select “Copy items if needed” and “Create groups” options when adding the XCFramework file.
- Navigate to your project settings, then General tab, under “Frameworks, Libraries and Embedded Content”, make sure to select “Embed & Sign” for your newly added XCFramework.
Swift Package Manager
- Follow Apple's Adding Package Dependencies to Your App guide on how to add a Swift Package dependency.
- Use
https://github.com/Adyen/adyen-wechatpay-iosas the repository URL. - Specify the version to be at least
2.0.0.
:warning: Please make sure to use Xcode 12.0+ when adding AdyenWeChatPayInternal using Swift Package Manager.
:warning: Swift Package Manager for Xcode 12.0 and 12.1 has a know issue when it comes to importing binary dependencies. A workaround is described here.
CocoaPods
- Add
pod 'AdyenWeChatPayInternal'to yourPodfile. - Run
pod install.
Carthage
- Add
github "adyen/adyen-wechatpay-ios"to yourCartfile. - Run
carthage update --use-xcframeworks. - Link the framework with your target as described in Carthage Readme.
Note: for non-M1 mac use workarounds from here
Usage
AdyenWeChatPayInternal is just a wrapper around the original WeChat Pay SDK, with a few minor improvements:
- Handles the importing of the dependent system frameworks and libraries.
- Removes the need for adding
-Objc and -all_loadother linker flags to the your project build settings.
Other than these improvements, the framework works in the same way as the original WeChat Pay SDK.
:warning: WeChat .a static library does not support simulator for arm64 architecture. To debug on simulator use debug flags
#if !(targetEnvironment(simulator))
// Code that calls WeChat SDK
#endifDocumentation
Refer to the original documentation.
Support
If you have a feature request, or spotted a bug or a technical problem regarding the XCFramework wrapper, create a GitHub issue. For other questions or issues regarding the SDK, contact WeChat Pay iOS SDK support.
License
MIT license. For more information, see the LICENSE file.
Package Metadata
Repository: Adyen/adyen-wechatpay-ios
Homepage: https://developers.weixin.qq.com/doc/oplatform/en/Downloads/iOS_Resource.html
Stars: 5
Forks: 3
Open issues: 3
Default branch: main
Primary language: objective-c
License: MIT
Topics: adyen, wechatpay
README: README.md