Payment accounts
The payment account is set up in the CMS and acts as a payment system. For example, you can connect options such as Stripe or cash payment.
Kotlin Multiplatform
Get all payment accounts
A list of all accounts can be useful for displaying payment options in client applications.
val accounts = PaymentsService.accounts()
Get a payment account by its identifier
val accountId: Int = //...
val accounts = PaymentsService.account(accountId)
Stripe
To connect the Stripe SDK to the application, it can be helpful to know the public keys of the CMS-connected account.
val provider = PaymentsService.connected()
println(provider.stripeAccountId)
println(provider.stripePublishableKey)
Swift
Get all payment accounts
A list of all accounts can be useful for displaying payment options in client applications.
let accounts = try await PaymentsService.shared.accounts()
Get a payment account by its identifier
let accountId: Int = //...
let accounts = try await PaymentsService.shared.account(id: accountId)
Stripe
To connect the Stripe SDK to the application, it can be helpful to know the public keys of the CMS-connected account.
let provider = try await PaymentsService.shared.connected()
print(provider.stripeAccountId)
print(provider.stripePublishableKey)
Last modified: 18 February 2025