The key steps to integrate with the library are:
-
Initialize the library - Create an
initLibraryRequest
and use it as parameter for your instance ofMerchantPos.initLibrary()
. You can also set the Logging level with the parameterLogConfig.
-
Register the application with the Adyen payments platform - Create a
registerPosRequest
object, use it as parameter forMerchantPos.registerPos()
-
Registering the PED - Instantiate a
MerchantPed
object that uses theAdyenPed
constructor with or without thestoreId
parameter. -
Process a basic transaction - Create a tender, pass tender options and handle callbacks.
-
Cancel or refund a transaction - Cancel or refund a transaction on a PED, with a PSP or Tender reference or partially refund a transaction.