Skip to content

Commit

Permalink
Update THREED-PAYMENT-EXAMPLE.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nuryagdym authored Nov 29, 2024
1 parent 399ce80 commit 99e34d0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/THREED-PAYMENT-EXAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ if (\Mews\Pos\PosInterface::MODEL_3D_HOST !== $paymentModel) {
// OZEL DURUMLAR ICIN KODLAR START
// ============================================================================================
try {
/**
* NOT!!! event listenerin çalışması için $eventDispatcher objesi $pos objesi oluştururken
* kullandığınız $eventDıspatcher ile aynısi olması gerekiyor!
* $pos = \Mews\Pos\Factory\PosFactory::createPosGateway($account, $config, $eventDispatcher);
* $eventDispatcher'i tekrardan oluşturursanız, listener çalışmaz!
*/
/** @var \Symfony\Component\EventDispatcher\EventDispatcher $eventDispatcher */
$eventDispatcher->addListener(RequestDataPreparedEvent::class, function (RequestDataPreparedEvent $event) {
/**
Expand Down

0 comments on commit 99e34d0

Please sign in to comment.