Saltar al contenido principal

getConnected

Obtener configuraciones de pago 🔐 Este método requiere autorización.

Payments.getConnected()

const value = await Payments.getConnected()

Este método obtiene las configuraciones de pago. Devuelve una Promesa que se resuelve en un objeto de conexión de pago.

Ejemplo de retorno:

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

stripeAccountId: string
Identificador de la cuenta de Stripe conectada
ejemplo: acct_1OtRiIHTHOaLRCAa

stripePublishableKey: string
Clave pública de Stripe Connect
ejemplo: pk_51OOvk2HPDnVW5KWJwZfiYAlTLAytYqYYKYjGkxm6PqDD4BATCwuRDGgVYXNCqnvwrewgtDVaGyju5VfClW3GrxxT005KnY7MS3

paypalAccountId: string
Identificador de la cuenta de Paypal conectada
ejemplo: 4Q0BANTF5BE7N

.