Updates for webhook urls being displayed in the UI

This commit is contained in:
David Bomba 2025-05-14 15:31:26 +10:00
parent e22562613d
commit 2929b15cad
1 changed files with 7 additions and 7 deletions

View File

@ -124,8 +124,8 @@ class Gateway extends StaticModel
switch ($this->id) { switch ($this->id) {
case 1: case 1:
return [ return [
GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true,'webhooks' => ['net.authorize.payment.void.created']], GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true, 'webhooks' => ['net.authorize.payment.void.created']],
GatewayType::BANK_TRANSFER => ['refund' => true, 'token_billing' => true,'webhooks' => ['net.authorize.payment.void.created']], GatewayType::BANK_TRANSFER => ['refund' => true, 'token_billing' => true, 'webhooks' => ['net.authorize.payment.void.created']],
]; //Authorize.net ]; //Authorize.net
case 3: case 3:
return [GatewayType::CREDIT_CARD => ['refund' => false, 'token_billing' => true]]; //eWay return [GatewayType::CREDIT_CARD => ['refund' => false, 'token_billing' => true]]; //eWay
@ -133,11 +133,11 @@ class Gateway extends StaticModel
return [GatewayType::CREDIT_CARD => ['refund' => false, 'token_billing' => true]]; //Payfast return [GatewayType::CREDIT_CARD => ['refund' => false, 'token_billing' => true]]; //Payfast
case 7: case 7:
return [ return [
GatewayType::CREDIT_CARD => ['refund' => false, 'token_billing' => true, 'webhooks' => [' ']], // Mollie GatewayType::CREDIT_CARD => ['refund' => false, 'token_billing' => true, 'webhooks' => ['all']], // Mollie
GatewayType::BANK_TRANSFER => ['refund' => false, 'token_billing' => true, 'webhooks' => [' ']], GatewayType::BANK_TRANSFER => ['refund' => false, 'token_billing' => true, 'webhooks' => ['all']],
GatewayType::KBC => ['refund' => false, 'token_billing' => false, 'webhooks' => [' ']], GatewayType::KBC => ['refund' => false, 'token_billing' => false, 'webhooks' => ['all']],
GatewayType::BANCONTACT => ['refund' => false, 'token_billing' => false, 'webhooks' => [' ']], GatewayType::BANCONTACT => ['refund' => false, 'token_billing' => false, 'webhooks' => ['all']],
GatewayType::IDEAL => ['refund' => false, 'token_billing' => false, 'webhooks' => [' ']], GatewayType::IDEAL => ['refund' => false, 'token_billing' => false, 'webhooks' => ['all']],
]; ];
case 15: case 15:
return [ return [