[GH-ISSUE #30] EST 3d_pay_hosting modeli #19

Closed
opened 2026-03-03 15:42:11 +03:00 by kerem · 2 comments
Owner

Originally created by @n0thing-inc on GitHub (Jun 4, 2021).
Original GitHub issue: https://github.com/mewebstudio/pos/issues/30

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(); }

Originally created by @n0thing-inc on GitHub (Jun 4, 2021). Original GitHub issue: https://github.com/mewebstudio/pos/issues/30 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(); }`
kerem closed this issue 2026-03-03 15:42:11 +03:00
Author
Owner

@nuryagdym commented on GitHub (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.

<!-- gh-comment-id:855367791 --> @nuryagdym commented on GitHub (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.
Author
Owner

@mewebstudio commented on GitHub (Jun 8, 2021):

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

https://github.com/mewebstudio/pos/pull/31

<!-- gh-comment-id:856807743 --> @mewebstudio commented on GitHub (Jun 8, 2021): @n0thing-inc, @nuryagdym bununla ilgili bir geliştirme yaptı. Deneyip dönüş yapar mısınız? https://github.com/mewebstudio/pos/pull/31
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pos#19
No description provided.