How you add Online Banking SK depends on your integration.
Choose the server-side flow that your integration uses:
Start integrating with Sessions flow Component
Choose your versionRequirements
Requirement | Description | |
---|---|---|
Integration type | Make sure that you have an existing Sessions flow Android Components integration. | |
Checkout API | Make sure that you use Checkout API v68 or later. | |
Setup steps | Before you begin, add Online Banking SK in your Customer Area. |
Add additional parameters to your /sessions request
You do not need to add any parameters when you create a payment session.
Import the Component for Online Banking SK
To import the library and include the module for Online Banking SK.
implementation "com.adyen.checkout:online-banking-sk:YOUR_VERSION" implementation "com.adyen.checkout:components-compose:YOUR_VERSION"
Add additional configuration for Online Banking SK
Add a configuration object with the following parameters:
Parameter | Required | Description |
---|---|---|
setSubmitButtonVisible |
Set if you want the submit button to be visible. |
// Create a configuration object. val Configuration = Configuration.Builder( shopperLocale, // Use your context instead to use the device's default locale. environment, clientKey ) // Set additional configuration. .setSubmitButtonVisible(True)
Launch and show the Component for Online Banking SK
To create the Component for Online Banking SK, use the OnlineBankingSKComponent
class.
import com.adyen.checkout.components.compose.get // Get the payment method. val paymentMethod = checkoutSession.getPaymentMethod(PaymentMethodTypes.SCHEME) @Composable private fun ComposableOnlineBankingSKComponent() { // Keep a reference to this Component in case you need to access it later. val online-banking-skComponent = OnlineBankingSKComponent.PROVIDER.get( checkoutSession = checkoutSession, paymentMethod = paymentMethod, configuration = checkoutConfiguration, componentCallback = callback, // This key is required to ensure a new Component gets created for each different screen or payment session. // Generate a new value for this key every time you need to reset the Component. key = "YOUR_UNIQUE_KEY_FOR_THIS_COMPONENT", ) // This is your composable, a wrapper around our xml view. AdyenComponent( component = online-banking-skComponent, modifier = YOUR_MODIFIER, ) }
Test and go live
Test Online banking Slovakia payments with real payment details and small amounts.
Check the status of your test Online banking Slovakia payments in your Customer Area > Transactions > Payments.
To accept live Online banking Slovakia payments, add it as a payment method in your Customer Area.