Device locking mechanism from payment organization

Hello how do you implement the locking mechanism for the device to lock and unclock when one perform the payment and device to lock when one does not pay for the device

Are you using Samsung IAP or some other method?

Ron
Samsung Developer Relations