Merchant settings for payment method
Your application can require merchants to specify their account details in your system and any other user preferences you may require.
Merchant settings example
Set up a new tab in Ecwid Control Panel, which will serve as a settings page for your users. This tab will load a page from your server in an iframe in a separate tab of Ecwid Control Panel. See Native Applications for more information.
When merchant is in the settings tab of your app, your code can create and modify the merchant settings using the Application storage feature. It’s a simple
Once the settings are saved there, Ecwid will send them in an HTML form with a POST request to your payment URL with order details when customer chooses to pay with the new payment method. The request will contain all data from your application storage, including public and other keys that were specified.
You can use the
public key of the application storage to save data for accessing in the storefront. More details on how to handle such data: Public application config.