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

EST 3d_pay_hosting modeli #30

Closed
n0thing-inc opened this issue Jun 4, 2021 · 2 comments
Closed

EST 3d_pay_hosting modeli #30

n0thing-inc opened this issue Jun 4, 2021 · 2 comments

Comments

@n0thing-inc
Copy link

n0thing-inc commented Jun 4, 2021

Kütüphanede 3d_pay_hosting modeli olmadığı için storekey hatalı uyarısı dönüyor.
3d_pay ile aynı parametreleri alıyor ve hash hesaplaması aynı. EstPos Gateway'de ufak bir değişiklik ile sorunsuz çalışıyor.

Eski Kod Betiği :
if ($this->account->getModel() === '3d_pay') { $inputs = array_merge($inputs, [ 'islemtipi' => $this->type, 'taksit' => $this->order->installment, ]); }

Yeni Kod Betiği:
if ($this->account->getModel() === '3d_pay' || $this->account->getModel() === '3d_pay_hosting')) { $inputs = array_merge($inputs, [ 'islemtipi' => $this->type, 'taksit' => $this->order->installment, ]); }

Eski Kod Betiği :
elseif ($this->account->getModel() === '3d_pay') { $hashStr = $this->account->getClientId() . $this->order->id . $this->order->amount . $this->order->success_url . $this->order->fail_url . $this->type . $this->order->installment . $this->order->rand . $this->account->getStoreKey(); }

Yeni Kod Betiği :
elseif ($this->account->getModel() === '3d_pay' || $this->account->getModel() === '3d_pay_hosting') { $hashStr = $this->account->getClientId() . $this->order->id . $this->order->amount . $this->order->success_url . $this->order->fail_url . $this->type . $this->order->installment . $this->order->rand . $this->account->getStoreKey(); }

@nuryagdym
Copy link
Collaborator

nuryagdym commented Jun 6, 2021

Merhabalar, istediginiz guncellemeyi yapip merge request olusturdum, bir kontrol eder misiniz.
Ayrica 3d Host payment icin kullanilan anahtar kelime 3d_host. Sizin verdiginiz ornediginizdeki gibi 3d_pay_hosting degil.

@mewebstudio
Copy link
Owner

mewebstudio commented Jun 8, 2021

@n0thing-inc, @nuryagdym bununla ilgili bir geliştirme yaptı. Deneyip dönüş yapar mısınız?

#31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants