getConnected
Obtenha as configurações de pagamento 🔐 Este método requer autorização.
Payments.getConnected()
const value = await Payments.getConnected()
Este método obtém as configurações de pagamento. Ele retorna uma Promise que resolve para um objeto de conexão de pagamento.
Exemplo de retorno:
{
"stripeAccountId": "acct_1OtRiIHTHOaLRCAa",
"stripePublishableKey": "pk_51OOvk2HPDnVW5KWJwZfiYAlTLAytYqYYKYjGkxm6PqDD4BATCwuRDGgVYXNCqnvwrewgtDVaGyju5VfClW3GrxxT005KnY7MS3"
}
Esquema
stripeAccountId: string
Identificador da conta Stripe conectada
exemplo: acct_1OtRiIHTHOaLRCAa
stripePublishableKey: string
Chave pública do Stripe Connect
exemplo: pk_51OOvk2HPDnVW5KWJwZfiYAlTLAytYqYYKYjGkxm6PqDD4BATCwuRDGgVYXNCqnvwrewgtDVaGyju5VfClW3GrxxT005KnY7MS3
paypalAccountId: string
Identificador da conta Paypal conectada
exemplo: 4Q0BANTF5BE7N
.