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

3D ile ödeme #86

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

3D ile ödeme #86

wants to merge 2 commits into from

Conversation

travijuu
Copy link

@travijuu travijuu commented Jun 6, 2016

NestPay, Posnet ve GVP için 3D ile ödeme seçeneği eklendi.

@@ -54,7 +57,7 @@
*/
protected $dispatcher;

public function __construct(AbstractConfiguration $configuration)
public function __construct(AbstractConfiguration $configuration = null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adaptörleri hangi durumda ayarlarını vermeden init etmemiz gerekiyor? Niye null eklendi?

@GoktugOzturk
Copy link
Member

@travijuu öncelikle ellerine sağlık, Hızlı bir göz gezdirdim.
Gördüğüm eksik/hataları ilgili satırlara not olarak ekledim. Onların haricinde;

  • Travis PSR formatlama hatası veriyor. İlave olarak birkaç tane de uzun satır var. Onları düzeltmezsen travisten geçmeyecek.
  • Yeni yazdığın fonksiyonlarda PHPDoc'lar yok.
  • Dökümantasyon'a örnek kullanım kodlarının eklenmesi gerekiyor.

@@ -230,6 +241,11 @@ protected function formatInstallment($installment)
return (!is_numeric($installment) || intval($installment) <= 1) ? '' : $installment;
}

protected function formatCardNumber($cardNumber)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FormatCardNumber fonksiyonuna Adaptör'lerde gerek yok.
İlla kart numarasını temizleyecek isek $request->setCardNumber fonksiyonunun içinde gerekli işlemleri yapabiliriz.
Aşağıdaki şekilde bir temizleme daha garanti olacaktır;
return preg_replace('@[^0-9]@', '', $cardNumber);

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

Successfully merging this pull request may close these issues.

None yet

2 participants