WEB JS SDK / Initialize SDK

Initialize

Initialization before use of SDK.

				
					ECPay.initialize(ServerType, IsLoading, callBack(errMsg))
				
			

Input

ServerType String
Required

Type of server

  • Stage : testing mode.
  • Prod : live/real mode.

IsLoading Int
 

Whether to display loading page. If not setting the default value: 1 (to display loading page.)

  • 0 : not to display loading page.
  • 1 : to display loading page.

callBack description

The callback function after initialization is completed. For example, if initialization fails, error message received by the callBack.

				
					function (errMsg) {}
				
			

❗ Special notes: ECPay.createPayment should be called after initialize function.

Copyright © Green World FinTech Service Co., Ltd. All rights reserved.

綠界官方網站