Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
bgColor#79E2F2

Webhook Payload Structure

The basic structure of a typical webhook payload is shown below:

...

Amount: describing transaction amount

Currency: currency in which transaction was initiated in

...

Panel
panelIconIdatlassian-info
panelIcon:info:
bgColor#79E2F2

Below shows the list of the events currently raised on the Leatherback platform. We would update as we onboard on more events in the nearest future

Event Name

Description

Sample

Event Name

Description

Sample

Payment Successful

A successful payment initiated

Code Block
{
  "Event": "PaymentSuccessful",
  "Data": {
    "Environment": "Test",
    "Reference": "LB-1389432211",
    "Amount": 90,
    "Currency": "GBP",
    "AppFee": 0,
    "Narration": "Payment For LB-1389432211",
    "PaymentStatus": "Successful",
    "ChannelType": "Card",
    "Metadata": null
  }
}
	}
  }
} 

Payment Failed

Payment initiated failed

Code Block
{
  "Event": "PaymentSuccessful",
  "Data": {
    "Environment": "Test",
    "Reference": "LB-1389432211",
    "Amount": 90,
    "Currency": "GBP",
    "AppFee": 0,
    "Narration": "Payment For LB-1389432211",
    "PaymentStatus": "Failed",
    "ChannelType": "Card",
    "Metadata": null
  }
}
	}
  }
} 

Account Approved

An Account creation approved

 

Account Rejected

An Account request was rejected

 

 

 

 

...

...