Get access data

You need to use access data to open Pay Station.

Example of generating access data:

Copy
Full screen
Small screen
val externalId = XPayments.generateExternalId()
 val accessData = AccessData.Builder()
         .projectId(BuildConfig.PROJECT_ID)
         .userId(userId)
         .isSandbox(BuildConfig.IS_SANDBOX)
         .theme("dark")
         .externalId(externalId)
         .virtualItems(listOf(AccessData.VirtualItem(sku, 1)))
         .build()

Continue reading