Android APP SDK / Initialize SDK

Import

				
					import tw.com.ecpay.paymentgatewaykit.manager.*

				
			

Initialize

To initialize the SDK by inputting Activity and ServerType

				
					PaymentkitManager.initialize(mActivity, serverType);
				
			

Input

Activity Android Activity
Required

Please set the screen of Android Activity.

ServerType String
Required

Type of server.

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

Example

				
					    public void init() {
        ServerType serverType = ServerType.Stage;
        String typeStr = "stage";
        sdkInit(serverType);
    }

    private void sdkInit(ServerType serverType) {
        PaymentkitManager.initialize(mActivity, serverType);
    }
				
			

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

Green World