跳转到主要内容
This page documents a legacy SDK. Starting a new integration? Use the Yuno SDK. Already on a legacy SDK? Follow the migration guide.The new Yuno SDK (Web v2.x, iOS v3.x, Android v3.x, React Native v2.x) replaces the Full, Lite, Seamless, Render, Headless, and Secure Fields SDKs with one API across every platform. Legacy SDKs remain supported side by side during the transition and are scheduled for deprecation in 2027. Contact your Account Manager for migration planning.
Orientation: Choosing Your Integration Flow, before you begin, please review the Official Integration Flow.
  • Standard Flow (Full Checkout): Recommended for most merchants. Yuno handles the UI, security, and automatic updates for payment methods.
  • Custom Flow (This SDK): Use this only if you require full control over the UX. Note: You will be responsible for manually handling payment statuses, 3DS transitions, and fraud routing data collection.
Yuno React Native SDK 提供了一组组件和方法,用于将 Yuno 的支付功能集成到您的移动应用中。它同时支持 iOS 和 Android。

安装

iOS 设置:
在 ios/Podfile 中设置 platform :ios, '15.1' 或更高版本。pod install 会通过 Swift Package Manager 将 YunoSDK-Static 2.31.0 添加到该包的 pod 中,因此应用本身无需添加 Yuno iOS SDK。 要求:
  • react-native 0.75+
  • Node.js 16+
  • Android Min SDK 21
  • iOS 15.1+
1.5.0 版本将这些最低要求从 React Native 0.70 和 iOS 14.0 提高到了上述版本。 该 SDK 开箱即包含 TypeScript 类型定义。

初始化

请在应用中尽早初始化 SDK,通常在 App.tsx 中进行。

基本支付流程(Full Checkout)

最简单的集成方式是使用 YunoPaymentMethods 组件显示可用的支付方式,并使用 startPayment 处理交易。

集成选项

请选择最适合您需求的集成级别:

Lite SDK

由您控制支付方式选择界面,Yuno 负责处理支付流程。

Headless SDK

构建完全自定义的界面,并手动处理支付流程。

注册

允许客户保存其支付方式以供将来使用。

样式

自定义 SDK 组件的外观,使其与您的品牌相匹配。

后续步骤