Search...
APIJSLog inGet started
Airwallex logo
Home
Platform APIs
Connected Accounts
Accounts
Payments
Transactional FX
Payouts
Issuing
Back to home
OverviewAPI
SDKs
Airwallex.js
Customization optionsUpgrade to Airwallex.js
Upgrade from Payment Elements SDKUpgrade from Payouts Web SDK
Mobile SDKs
Demo environment

Upgrade from Payouts Web SDK

Refer to this guide if your integration uses Airwallex Payouts Web SDK

The Airwallex Payouts Web SDK JavaScript library has been deprecated. For the latest features and customization options for Transfer Element and Beneficiary Element, please upgrade to Airwallex.js JS. This guide covers the changes made and instructions for migrating to Airwallex.js.

Update JavaScript client library

npm/yarn/pnpm installation

Install the new package.

cdn installation

Update the URL in the <script> tag.

  • Before: <script src="https://static.airwallex.com/widgets/payouts/sdk/v1/index.js"></script>
  • After: <script src="https://static.airwallex.com/components/sdk/v1/index.js"></script>

After installation, you will need to initialize the SDK by calling the init() method.

Update SDK functions

init()

New parameters

  • enabledElements: An array of Element groups representing the Elements. For example, to use Payouts elements, set enabledElements to payouts.
  • locale: The specified locale will be applied to both the Element UI strings and error messages unless overridden by the locale field at the Payout Element level. Supports en, zh, zh-HK, de, es, fr, it, ja, ko with only en support available for Tax Form Element.

Deprecated parameters

  • langKey

BEFORE

JavaScript

AFTER

JavaScript

createElement()

No changes to the function other than the import source.

BEFORE

JavaScript

AFTER

JavaScript
On this page
  • Update JavaScript client library
  • Update SDK functions