Skip to content

Commit

Permalink
added $session->remove('card'); to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nuryagdym committed May 27, 2024
1 parent 52f7b43 commit c40f51f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/THREED-PAYMENT-EXAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ if (\Mews\Pos\PosInterface::MODEL_3D_HOST !== $paymentModel) {
if (get_class($pos) === \Mews\Pos\Gateways\PayFlexV4Pos::class) {
// bu gateway için ödemeyi tamamlarken tekrar kart bilgisi lazım.
$cardData = $session->get('card');
$session->remove('card');
$card = \Mews\Pos\Factory\CreditCardFactory::createForGateway(
$pos,
$cardData['card_number'],
Expand Down
3 changes: 2 additions & 1 deletion docs/THREED-SECURE-AND-PAY-PAYMENT-IN-MODALBOX-EXAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ $order = $session->get('order');
$card = null;
if (get_class($pos) === \Mews\Pos\Gateways\PayFlexV4Pos::class) {
// bu gateway için ödemeyi tamamlarken tekrar kart bilgisi lazım.
$cardData = $session->get('card');
$cardData = $session->get('card')
$session->remove('card');
$card = \Mews\Pos\Factory\CreditCardFactory::createForGateway(
$pos,
$cardData['card_number'],
Expand Down
1 change: 1 addition & 0 deletions examples/_templates/_payment_secure_response.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
if (get_class($pos) === \Mews\Pos\Gateways\PayFlexV4Pos::class) {
// bu gateway için ödemeyi tamamlarken tekrar kart bilgisi lazım.
$savedCard = $session->get('card');
$session->remove('card');
$card = createCard($pos, $savedCard);
}
// ============================================================================================
Expand Down

0 comments on commit c40f51f

Please sign in to comment.