File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -19,28 +19,17 @@ class PurchaseRequest extends AbstractRequest
19
19
'test ' => 'https://sanalposprovtest.garanti.com.tr/VPServlet ' ,
20
20
'purchase ' => 'https://sanalposprov.garanti.com.tr/VPServlet ' ,
21
21
);
22
- protected $ currencyCodes = array (
23
- 'TRY ' => 949 ,
24
- 'YTL ' => 949 ,
25
- 'TRL ' => 949 ,
26
- 'TL ' => 949 ,
27
- 'USD ' => 840 ,
28
- 'EUR ' => 978 ,
29
- 'GBP ' => 826 ,
30
- 'JPY ' => 392 ,
31
- );
32
22
33
23
public function getData ()
34
24
{
35
25
$ this ->validate ('amount ' , 'card ' );
36
26
$ this ->getCard ()->validate ();
37
- $ currency = $ this ->getCurrency ();
38
27
39
28
$ data ['Transaction ' ] = array (
40
29
'Type ' => $ this ->actionType ,
41
30
'InstallmentCnt ' => $ this ->getInstallment (),
42
31
'Amount ' => $ this ->getAmountInteger (),
43
- 'CurrencyCode ' => $ this ->currencyCodes [ $ currency ] ,
32
+ 'CurrencyCode ' => $ this ->getCurrencyNumeric () ,
44
33
'CardholderPresentCode ' => "0 " ,
45
34
'MotoInd ' => "N " ,
46
35
'Description ' => "" ,
You can’t perform that action at this time.
0 commit comments