The VolumeSelector
allows you to indicate to your customers which banks are available to them.
This is suitable to be placed in the checkout flow of your application if you for example have multiple payment options available to your customers with radio buttons.
Usage
Initialize the VolumeProvider class in exactly the same way as with the regular Volume Button
Add a widget to your application where you wish to render the Volume as a payment option.
<com.volume.sdk.payment.VolumeSelectorView
android:id="@+id/volumeSelectorView"
android:layout_width="45dp"
android:layout_height="45dp"
/>
binding.contentMain.volumeSelectorView.setCurrency("GBP")
binding.contentMain.volumeSelectorView.setCountry("GB")
Properties
VolumeSelector properties
Required Properties
key | type | example | description |
---|---|---|---|
country | String | "GB" | The country - used to show the banks only from given country |
currency | String | "GBP" | The currency - used to show the banks only supporting given currency |