checkoutSession | string | Yes | Checkout session ID from your backend (Create checkout session API). Required for all payment flows. |
countryCode | string | Yes | ISO country code where the payment runs (e.g. BR, US). Determines available payment methods and compliance. |
language | string | No | Language code for the SDK UI (e.g. en, pt-BR). Optional. See Supported languages when available. |
viewController | UIViewController | Yes* | The view controller that presents the payment flow. The SDK uses it to present modals and capture result. |
yunoCreatePayment(with:) | delegate | Yes | Delegate method: create the payment on your backend using the one-time token provided by the SDK. After creating the payment via the API, inform the SDK so it can continue the flow. |
yunoPaymentResult(_:) | delegate | No | Delegate method: invoked when the payment flow finishes. Receives a Yuno.Result enum value (.succeeded, .fail, .processing, .reject, .userCancelled, .internalError). These values map to payment statuses. Use for UI updates or navigation. |