Ana içeriğe geç

getConnected

Ödeme ayarlarını al 🔐 Bu yöntem yetkilendirme gerektirir.

Payments.getConnected()

const value = await Payments.getConnected()

Bu yöntem ödeme ayarlarını alır. Bir ödeme bağlantı nesnesine çözülmek üzere bir Promise döndürür.

Örnek dönüş:

{
"stripeAccountId": "acct_1OtRiIHTHOaLRCAa",
"stripePublishableKey": "pk_51OOvk2HPDnVW5KWJwZfiYAlTLAytYqYYKYjGkxm6PqDD4BATCwuRDGgVYXNCqnvwrewgtDVaGyju5VfClW3GrxxT005KnY7MS3"
}
Şema

stripeAccountId: string
Bağlı Stripe hesabının tanımlayıcısı
örnek: acct_1OtRiIHTHOaLRCAa

stripePublishableKey: string
Stripe Connect genel anahtarı
örnek: pk_51OOvk2HPDnVW5KWJwZfiYAlTLAytYqYYKYjGkxm6PqDD4BATCwuRDGgVYXNCqnvwrewgtDVaGyju5VfClW3GrxxT005KnY7MS3

paypalAccountId: string
Bağlı Paypal hesabının tanımlayıcısı
örnek: 4Q0BANTF5BE7N

.