Veze za Instalaciju i Duboke Veze

Veze za instalaciju vam omogućuju distribuciju Stripe Appa izvan marketplacea, dok duboke veze navigiraju korisnike izravno na specifične prikaze.

Veze za Instalaciju

Format Veze za Instalaciju

https://marketplace.stripe.com/oauth/v2/authorize?client_id=APP_ID&redirect_uri=REDIRECT_URI&state=STATE_VALUE

Verifikacija Potpisa

const verifyInstallSignature = (signature, accountId) => {
const signingSecret = process.env.STRIPE_APP_SIGNING_SECRET;
const expectedSignature = crypto
.createHmac('sha256', signingSecret)
.update(accountId)
.digest('hex');
return crypto.timingSafeEqual(
Buffer.from(signature),
Buffer.from(expectedSignature)
);
};

Caution

Uvijek koristite crypto.timingSafeEqual za usporedbu potpisa kako biste spriječili timing napade.

Duboke Veze

Format URL-a Duboke Veze

https://dashboard.stripe.com/MODE/acct_ID/PAGE?apps[APP_ID][TARGET]=VIEWPORT_ID

Primjeri

# Otvaranje detalja klijenta u ladici
https://dashboard.stripe.com/live/acct_xxxxx/customers/cus_xxxxx
?apps[com.tajo.brevo-integration][drawer]=stripe.dashboard.customer.detail
# Otvaranje postavki u modalu
https://dashboard.stripe.com/live/acct_xxxxx/settings
?apps[com.tajo.brevo-integration][modal]=stripe.dashboard.settings

Tip

Uvijek testirajte veze za instalaciju i duboke veze u oba live i test modu.

Subscribe to updates

developer-docs

Drop your email or phone number — we'll send you what matters next.

AI asistent

Bok! Pitajte me o dokumentaciji.

Započnite besplatno s Brevo