Initialize SoftPOS SDK
Initialize the SoftPOS SDK in your application.
Merchants must initialize the 2C2P SoftPOS SDK in their mobile apps before performing any payment transactions. To do so, refer to the sample code below.
import com.ccpp.pgw.sdk.android.builder.PGWSDKParamsBuilder;
import com.ccpp.pgw.sdk.android.enums.APIEnvironment;
import com.ccpp.pgw.sdk.android.model.core.PGWSDKParams;
import com.ccpp.softpos.sdk.android.core.SoftPOSSDK;
public class CustomApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
PGWSDKParams pgwsdkParams = new PGWSDKParamsBuilder(this, APIEnvironment.Production)
.build();
SoftPOSSDK.initialize(pgwsdkParams);
}
}
import com.ccpp.pgw.sdk.android.builder.PGWSDKParamsBuilder
import com.ccpp.pgw.sdk.android.enums.APIEnvironment
import com.ccpp.softpos.sdk.android.core.SoftPOSSDK
class CustomApplication : Application() {
override fun onCreate() {
super.onCreate()
val pgwsdkParams = PGWSDKParamsBuilder(this, APIEnvironment.Production)
.build()
SoftPOSSDK.initialize(pgwsdkParams)
}
}
Important:
The 2C2P SoftPOS SDK should be initialized using the Application / AppDelegate class
Updated about 19 hours ago