Skip to content

Commit

Permalink
Ref: T2762 (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrEssex authored Mar 11, 2022
1 parent 796ac12 commit 4ce3fc4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Events/PaymentWHE.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ final class PaymentWHE
const FAILED_TRANSACTION = 'payment.failed.transaction';
const CHARGEBACK = 'payment.chargeback';
const AGREEMENT_CANCELLED = 'payment.paypal.agreement.cancelled';
const PAYMENT_METHOD_LOCKED = 'payment.method.locked';
}
11 changes: 11 additions & 0 deletions src/Payloads/Payment/PaymentMethodLockedWHP.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
namespace Fortifi\Webhooks\Payloads\Payment;

use Fortifi\Webhooks\Payloads\Foundation\DataNodeWHP;

class PaymentMethodLockedWHP extends DataNodeWHP
{
public $paymentMethodFid;
public $lockExpiresAt;
}

2 changes: 2 additions & 0 deletions src/Webhooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
use Fortifi\Webhooks\Payloads\Payment\PaymentChargebackWHP;
use Fortifi\Webhooks\Payloads\Payment\PaymentCreatedWHP;
use Fortifi\Webhooks\Payloads\Payment\PaymentFailedTransactionWHP;
use Fortifi\Webhooks\Payloads\Payment\PaymentMethodLockedWHP;
use Fortifi\Webhooks\Payloads\Payment\PaymentPaypalAgreementCancelledWHP;
use Fortifi\Webhooks\Payloads\PaymentAccount\PaymentAccountArchivedWHP;
use Fortifi\Webhooks\Payloads\PaymentAccount\PaymentAccountCreatedWHP;
Expand Down Expand Up @@ -88,6 +89,7 @@ public static function all()
PaymentWHE::AUTHORISATION_TRANSACTION => PaymentAuthorisationTransactionWHP::class,
PaymentWHE::CHARGEBACK => PaymentChargebackWHP::class,
PaymentWHE::AGREEMENT_CANCELLED => PaymentPaypalAgreementCancelledWHP::class,
PaymentWHE::PAYMENT_METHOD_LOCKED => PaymentMethodLockedWHP::class,
PurchaseWHE::CREATED => PurchaseCreatedWHP::class,
PurchaseWHE::PRICE_CHANGE => PurchasePriceChangedWHP::class,
PurchaseWHE::REFUNDED => PurchaseRefundWHP::class,
Expand Down

0 comments on commit 4ce3fc4

Please sign in to comment.