Web SDK v1.5 Changelog
- Release Date: Latest Version
- Status: Current production version
What's New in v1.5
This version introduces improved Google Pay and Apple Pay button rendering with greater flexibility for merchants to control button placement and display.
Google Pay and Apple Pay Display Update
Enhanced button rendering for digital wallet payment methods with improved UI control.
- Direct Button Display: Google Pay and Apple Pay now appear as direct buttons instead of radio buttons within the payment methods list. These buttons are displayed separately from other payment methods, providing a cleaner and more prominent checkout experience.
New Methods and Capabilities
Greater control over digital wallet button placement and management.
-
New Method:
mountExternalButtons: Added a new method that allows merchants to render Google Pay and Apple Pay buttons in custom locations within their UI. This provides complete control over button placement and styling. -
Button Unmounting Methods: Added methods to unmount external buttons:
unmountExternalButton(paymentMethodType): Unmount a single external buttonunmountAllExternalButtons(): Unmount all external buttons at once
Lite SDK Changes
Updated Lite SDK behavior for digital wallet integrations.
- Lite SDK Restrictions: In the Lite version of the SDK, Google Pay and Apple Pay are no longer available as built-in payment options. Merchants must use the new
mountExternalButtonsmethod to display these payment methods.
User Experience Improvements
Enhanced enrollment and payment flows for a smoother checkout experience.
-
PayPal Enrollment UX Improvement: The PayPal enrollment flow in SDK Lite and Full SDK has been streamlined. When customers select PayPal for enrollment, the PayPal payment sheet now opens immediately after selection, removing the extra confirmation step. This provides a faster, more seamless enrollment experience.
-
PayPal Payment UX Improvement: The PayPal payment flow in SDK Lite and Full SDK has been streamlined. When customers select PayPal as their payment method, the PayPal payment sheet now opens immediately after selection, removing the extra confirmation step. This provides a faster, more seamless checkout experience.
Implementation
Complete backward compatibility for Full SDK implementations. Lite SDK requires code changes to use mountExternalButtons for Google Pay and Apple Pay.
Current Version ImplementationFor complete implementation instructions using v1.5, visit the Web SDK documentation.
Key Changes from v1.4
- No breaking changes for Full SDK: v1.5 is fully backward compatible for Full SDK implementations
- Lite SDK changes: Google Pay and Apple Pay now require
mountExternalButtonsmethod - New method:
mountExternalButtonsavailable for custom button placement - UI improvements: Google Pay and Apple Pay buttons displayed as direct buttons instead of radio buttons
- PayPal enrollment UX: Streamlined PayPal enrollment flow with immediate sheet opening after selection
- PayPal payment UX: Streamlined PayPal payment flow with immediate sheet opening after selection
Script Tag Update
Latest script source for v1.5 features and improvements:
<script src="https://sdk-web.y.uno/v1.5/main.js"></script>mountExternalButtons Example
Render Google Pay and Apple Pay buttons in custom locations:
const yuno = await window.Yuno.initialize(publicApiKey);
await yuno.startCheckout({
checkoutSession,
elementSelector: '#root',
countryCode: 'US',
language: 'en',
// ... other configuration
});
// Mount external buttons
await yuno.mountExternalButtons([
{
paymentMethodType: 'APPLE_PAY',
elementSelector: '#apple-pay',
},
{
paymentMethodType: 'GOOGLE_PAY',
elementSelector: '#google-pay',
},
]);Unmounting Buttons Example
Unmount a single external button:
yuno.unmountExternalButton('APPLE_PAY');Or unmount all external buttons at once:
yuno.unmountAllExternalButtons();Migration from v1.4
Seamless upgrade process for Full SDK with no breaking changes. Lite SDK requires code updates for Google Pay and Apple Pay.
Full SDK Migration
Upgrading from v1.4 to v1.5 requires minimal changes:
- Update your script source to point to v1.5
- No code changes required for existing implementations
- Google Pay and Apple Pay will automatically display as direct buttons instead of radio buttons
Lite SDK Migration
If you're using Lite SDK and want to continue offering Google Pay and Apple Pay:
- Update your script source to point to v1.5
- Add the
mountExternalButtonsmethod call afterstartCheckout - Create HTML elements where you want the buttons to appear (e.g.,
<div id="apple-pay"></div>) - Use
mountExternalButtonsto render the buttons in your chosen locations
Example migration for Lite SDK:
// After startCheckout
await yuno.mountExternalButtons([
{
paymentMethodType: 'APPLE_PAY',
elementSelector: '#apple-pay',
},
{
paymentMethodType: 'GOOGLE_PAY',
elementSelector: '#google-pay',
},
]);What's Deprecated
Fully backward compatible release maintaining all existing functionality.
No features were deprecated in v1.5. All previous functionality remains available and supported. The change in Google Pay and Apple Pay display (from radio buttons to direct buttons) is a UI improvement and does not affect functionality.