-
Notifications
You must be signed in to change notification settings - Fork 30
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
base: master
Are you sure you want to change the base?
3D ile ödeme #86
Conversation
@@ -54,7 +57,7 @@ | |||
*/ | |||
protected $dispatcher; | |||
|
|||
public function __construct(AbstractConfiguration $configuration) | |||
public function __construct(AbstractConfiguration $configuration = null) |
There was a problem hiding this comment.
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?
@travijuu öncelikle ellerine sağlık, Hızlı bir göz gezdirdim.
|
@@ -230,6 +241,11 @@ protected function formatInstallment($installment) | |||
return (!is_numeric($installment) || intval($installment) <= 1) ? '' : $installment; | |||
} | |||
|
|||
protected function formatCardNumber($cardNumber) |
There was a problem hiding this comment.
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);
NestPay, Posnet ve GVP için 3D ile ödeme seçeneği eklendi.