Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YKB 3D Ödeme geçersiz transaction type gönderiyor #80

Closed
erenilhan opened this issue Jul 5, 2022 · 2 comments · Fixed by #81
Closed

YKB 3D Ödeme geçersiz transaction type gönderiyor #80

erenilhan opened this issue Jul 5, 2022 · 2 comments · Fixed by #81
Assignees
Labels
bug Something isn't working posnet

Comments

@erenilhan
Copy link

Merhaba,
YKB ile ödeme yapmaya çalıştığım zaman transactionType hatası veriyor. create3DEnrollmentCheckRequestData fonksiyonunda tranType ='pay' olarak dönmekte. Onu Sale olarak çevirdiğim zaman sorun olmadan ödemeyi tamamlıyor.

bu kısmı
'tranType' => $txType, kısmını;

Şöyle değiştirerek
'tranType'=> $this->txTypeMappings[$txType]

çalıştırabiliyorum.

acaba atladığınız bir şey olabilir mi? ya da ben mi hata yapıyorum?

kodun nihai hali;

`
public function create3DEnrollmentCheckRequestData(AbstractPosAccount $account, $order, string $txType, AbstractCreditCard $card): array
{
if (null === $card->getHolderName() && isset($order->name)) {
$card->setHolderName($order->name);
}
return [
'mid' => $account->getClientId(),
'tid' => $account->getTerminalId(),
'oosRequestData' => [
'posnetid' => $account->getPosNetId(),
'ccno' => $card->getNumber(),

            'expDate'        => $card->getExpirationDate(self::CREDIT_CARD_EXP_DATE_FORMAT),
            'cvc'            => $card->getCvv(),
            'amount'         => self::amountFormat($order->amount),
            'currencyCode'   => $this->mapCurrency($order->currency),
            'installment'    => $this->mapInstallment($order->installment),
            'XID'            => self::formatOrderId($order->id),
            'cardHolderName' => $card->getHolderName(),
            'tranType'       => $this->txTypeMappings[$txType],
        ],
    ];
}

`

@nuryagdym nuryagdym added the bug Something isn't working label Jul 6, 2022
@nuryagdym nuryagdym self-assigned this Jul 6, 2022
@nuryagdym nuryagdym changed the title YKB 3D Ödeme YKB 3D Ödeme geçersiz transaction type gönderiyor Jul 6, 2022
@nuryagdym nuryagdym linked a pull request Jul 6, 2022 that will close this issue
nuryagdym added a commit that referenced this issue Jul 6, 2022
…saction-type-gönderiyor

fix #80 PosNet fix wrong transaction type is sent
@nuryagdym
Copy link
Collaborator

Tesekkurler, sorunu duzelttim, 0.7.3 versiyon olarak release ciktim

@erenilhan
Copy link
Author

Çok teşekkürler 👍 iyi çalışmalar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working posnet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants