Credentials for Integration¶
To perform the integration between applications and the PayStore payment solution, it is necessary to acquire some credentials. The credentials are generated when publishing the application on the PayStore Portal, through the option Applications -> Published -> Application details. The APLICATION_ID and SECRET_TOKEN will be displayed. This information must be added to the application under development that wants to perform the payment integration.
Warning
The credentials for the development environment are:
public static final String TEST_APPLICATION_ID = "0";
public static final String TEST_SECRET_TOKEN = "000000000000000000000000";
The class CredentialsUtils.java present in demo project shows a way to implement the credentials that will be used in the payment request through the PaymentRequestV2.java class that is present in the integration lib payments-api-x.x.x.x.aar. For more details, see the demo project.