🪪
Vibrant Card <> Alfred Integration Docs
  • Integration
    • Getting Started
    • Authentication Sep 10
    • Verify sign Sep 10
    • Update Balance and Get Url
    • Open widget
    • Webhooks
    • Post Messages
    • Use Cases
    • Wallet User Status
Powered by GitBook
On this page
  1. Integration

Webhooks

Vibrant must implement a url to receive via webhook: Status KYC, Send Payment Card.

HTTP Header Signature

Sign the payload timestamp.SANDBOX_VIBRANT_HOST.body using the SANDBOX_SIGNING_KEY

Signature: t=<current timestamp>, s=<base64 encoded signature>
{    
    SEP01_TOML: "https://janchor.alfredpay.io/.well-known/stellar.toml",
    SANDBOX_VIBRANT_HOST: "https://vibrant.wallet.io"
}

Payload

{
    "eventType": "KYC",
    "userAddress": "GDTD5OJVOQOLDQEL6UOTGLHCCSYIHFXTFS5RZ5F3ANMTWTYE6IA45IYX",
    "status": UserStatusEnum, // More Details later
    "failReason": "string"
}
{
    "eventType": "activateCard",
    "userAddress": "GDTD5OJVOQOLDQEL6UOTGLHCCSYIHFXTFS5RZ5F3ANMTWTYE6IA45IYX"
}
{
    "eventType": "walletWithdrawal",
    "status": PaymentStatusEnum
}
{
    "eventType": "walletDeposit",
    "status": PaymentStatusEnum
}
{
    "eventType": "sendPaymentCard",
    "userAddress": "GDTD5OJVOQOLDQEL6UOTGLHCCSYIHFXTFS5RZ5F3ANMTWTYE6IA45IYX",
    "data": {
        "amount": "amount",
        "date": "date",
        "id": "id",
        "address": "address",
        "merchant": "merchant",
        "assetCode": "USDC",
        "rate": "rate USDC / ARS"
    },
    "status": PaymentStatusEnum
}

PaymentStatusEnum

{
    "completed": "completed",
    "pending": "pending",
    "failed": "failed"
}

To configure the webhook in the sandbox environment you can use this API.

POST /webhook

PreviousOpen widgetNextPost Messages

Last updated 9 months ago