Ir para o conteúdo

Configuring Project

Latest

Refers to the latest available version of phastpay-sdk v1.0.0.0. See here.

Adding the Integration Library to the Project

  • Create a folder named libs inside the app/ directory.

  • Download the latest .aar file from the GitHub repository and add it to the libs folder.

  • Include the dependency in the build.gradle file according to your project style:

implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar", "*.aar"))))    
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])

Done, sync your project and build it.

Done! Your project is now configured and will have access to the classes available in the library. See Pix API.

For other versions of the phastpay-sdk library, see here.

Warning

Starting from Android 10 (API 29), communication with the SDK may be blocked due to security restrictions. To avoid this issue, add the following permission to your AndroidManifest.xml file:

<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"
    tools:ignore="QueryAllPackagesPermission" />

Configuring project for debug


If your application is being developed to run on POS (Point Of Service) terminals, it is important that your application is published on Paystore as soon as possible, even if it is still in its infancy.

This is necessary so that the terminal does not automatically remove your application when it identifies that the app is not present in the Paystore store. So don't waste time and publish your app as soon as possible. See how simple it is here, if necessary, contact our support.