Prepare and import metadata
Import the required system objects, services, payment methods, and jobs into your SFCC realm.
To set up the Airwallex Payments Cartridge in your Salesforce Commerce Cloud (SFCC) realm, first import the metadata package that creates all required configurations. The metadata import creates system object extensions, custom objects, services, payment methods, payment processors, and scheduled jobs.
Before you begin
- You have SFCC Administrator access with permissions to upload code, import site data, and configure Business Manager.
- You have the Storefront Reference Architecture (SFRA) repository cloned and deployed to your realm.
- You have an Airwallex account with API credentials (Client ID and API key) for your target environment.
What gets imported
The metadata import creates the following components in your SFCC realm:
| Component | Details |
|---|---|
| Site Preferences | Airwallex settings group (awx_v1_*) — environment, API credentials, feature toggles |
| System Object Extensions | Custom attributes on Basket, Order, and OrderPaymentInstrument |
| Custom Object | AirwallexWebhookEvent — queue for asynchronous webhook processing |
| Payment Processors | AIRWALLEX_CREDIT_CARD, AIRWALLEX_ONLINE |
| Payment Methods | AirwallexCreditCard, AirwallexOnline |
| Service | AirwallexPublicAPI — HTTP service for Airwallex API calls |
| Job | AirwallexProcessWebhooks — processes webhook events every 5 minutes |
Prepare the metadata package
To prepare the metadata package for your site, complete these steps:
-
Open the
metadata/site_import/folder in the repository. -
Inside
metadata/site_import/sites/, rename theRefArchGlobalfolder to match your site ID as it appears in Business Manager (for example,RefArch, or your custom site ID). -
Open
metadata/site_import/jobs.xmland replaceRefArchGlobalin the<context site-id="RefArchGlobal"/>element with your site ID:xml1<context site-id="YourSiteId"/> -
Create a ZIP archive of the
site_importfolder. The ZIP must contain thesite_importfolder at its root.
Import the metadata
To import the metadata package into your SFCC realm, complete these steps:
-
In Business Manager, go to Administration > Site Development > Site Import & Export.
-
Click Upload and select your ZIP file.
-
After the upload completes, select the archive and click Import.
-
Verify the import completes without errors.
Verify the import
After importing, confirm the following components were created:
- Administration > Site Development > System Object Types > SitePreferences > Attribute Definitions — Attributes prefixed with
awx_v1_appear. - Administration > Site Development > System Object Types > Order > Attribute Definitions — Attributes prefixed with
awxappear. - Administration > Site Development > Custom Object Types —
AirwallexWebhookEventappears. - Merchant Tools > Ordering > Payment Methods —
AirwallexCreditCardandAirwallexOnlineappear. - Merchant Tools > Ordering > Payment Processors —
AIRWALLEX_CREDIT_CARDandAIRWALLEX_ONLINEappear. - Administration > Operations > Services —
AirwallexPublicAPIservice, credential, and profile appear. - Administration > Operations > Jobs —
AirwallexProcessWebhooksappears.
Next steps
Now that you have imported the metadata, build and upload the cartridge code to your realm: