PluginsPayments
Webhook payment
Create a custom payment provider
Overview
If Omnium does not provide the integration needed, you can use a Webhook payment provider. Following features is supported
- Capture
- Refunds
- Authorization
- Cancellation/Void
Configuration Steps
- Navigate to:
Configuration > Settings > Orders > Payment > Payment Types > Add New > WebhookPayment
Required Settings
Field | Value |
---|---|
Payment Setting Name | Customizable |
Payment Method Name | Customizable |
Provider Name | WebhookPayment |
Display Name | Customizable |
Base URL | Your webhook base url. The base url(or transactions url's) should contain a guide or be ip restriced. |
Properties for transaction url's
Webhook payment needs some properties in the property list, to be able to do capture, credit etc. Add the following:
Key | Value |
---|---|
CaptureUrl | Your endpoint for Capture |
CreditUrl | Your endpoint for Credit |
VoidUrl | Your endpoint for Cancellation/Void |
AuthorizationUrl | Optional endpoint if the webhook provier should support adding payment from Omnium GUI |
Omnium will call this endpoints with the following request model:
If payment is success, we expect to get statuscode 200 returned from the webhook. If not, we will read the content as an error message.