跳转到主要内容
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.
当您需要完全控制每个界面元素、需要高度定制的 checkout 体验,或拥有自行构建界面的开发资源时,可以构建完全自定义的支付表单。

集成工作流程

处理 3DS

对于 headless 集成,如果支付需要认证,您必须手动触发 3DS 挑战。
  1. 在您的 backend 上创建支付后,如果状态为 WAITING_FOR_ACTION,请调用 YunoSdk.getThreeDSecureChallenge。
  2. 如果返回了 URL,请将其显示给用户。
  3. 用户完成挑战后,调用 YunoSdk.continuePayment 以完成交易。