Skip to main content

getConnected

Get payment settings. 🔐 This method requires authorization?.

Payments?.getConnected();

Minimal example

const value = await Payments.getConnected()

This method get payment settings. It returns a Promise that resolves to a payment connection object.

Example response

{
"stripeAccountId": "acct_1QwkKrAcSoNc7iev",
"stripePublishableKey": "pk_test_51NFuARAjjmJ80CVnnFoxEsGHmvsgt3Ki9eKvPGGjSVduaEEeLvabwVS8QkcFT0PHu1uxG7CRY0ZTF1dGTD0NIcJk00rNawdm0Z"
}
Schema

stripeAccountId: string
Identifier of connected Stripe account.
example: "acct_12345"

stripePublishableKey: string
Stripe Connect public key.
example: "pk_test_4eC39HqLyjWDarjtT1zdp7dc"