Skip to main content

getConnected

Get payment settings 🔐 This method requires authorization.

Payments.getConnected()

const value = await Payments.getConnected()

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

Example return:

{
"stripeAccountId": "acct_1OtRiIHTHOaLRCAa",
"stripePublishableKey": "pk_51OOvk2HPDnVW5KWJwZfiYAlTLAytYqYYKYjGkxm6PqDD4BATCwuRDGgVYXNCqnvwrewgtDVaGyju5VfClW3GrxxT005KnY7MS3"
}
Schema

stripeAccountId: string
Identifier of connected Stripe account
example: acct_1OtRiIHTHOaLRCAa

stripePublishableKey: string
Stripe Connect public key
example: pk_51OOvk2HPDnVW5KWJwZfiYAlTLAytYqYYKYjGkxm6PqDD4BATCwuRDGgVYXNCqnvwrewgtDVaGyju5VfClW3GrxxT005KnY7MS3

paypalAccountId: string
Identifier of connected Paypal account
example: 4Q0BANTF5BE7N