PluginProbe ʕ •ᴥ•ʔ
GiveWP – Donation Plugin and Fundraising Platform / 2.27.0
GiveWP – Donation Plugin and Fundraising Platform v2.27.0
4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 2.31.1 2.32.0 2.33.0 2.33.1 2.33.2 2.33.3 2.33.4 2.33.5 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.5.0 2.5.1 2.5.10 2.5.11 2.5.12 2.5.13 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6.0 2.6.1 2.6.2 2.6.3 2.7.0 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.8.0 2.8.1 2.9.0 2.9.1 2.9.2 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.1.2 3.10.0 3.11.0 3.12.0 3.12.1 3.12.2 3.12.3 3.13.0 3.14.0 3.14.1 3.14.2 3.15.0 3.15.1 3.16.0 3.16.1 3.16.2 3.16.3 3.16.4 3.16.5 3.17.0 3.17.1 3.17.2 3.18.0 3.19.0 3.19.1 3.19.2 3.19.3 3.19.4 3.2.0 3.2.1 3.2.2 3.20.0 3.21.0 3.21.1 3.22.0 3.22.1 3.22.2 3.3.0 3.3.1 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1 3.6.0 3.6.1 3.6.2 3.7.0 3.8.0 3.9.0 4.0.0 4.1.0 4.1.1 4.10.0 4.10.1 4.11.0 4.12.0 4.13.0 4.13.1 4.13.2 4.14.0 4.14.1 4.14.2 4.14.3 4.14.4 4.14.5 4.14.6 4.2.0 4.2.1 4.3.0 4.3.1 4.3.2 4.4.0 4.5.0 4.6.1 4.7.0 4.7.1 4.8.0 4.8.1 4.9.0 trunk 1.9.0 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.10.0 2.10.1 2.10.2 2.10.3 2.10.4 2.11.0 2.11.1 2.11.2 2.11.3 2.12.0 2.12.1 2.12.2 2.12.3 2.13.0 2.13.1 2.13.2 2.13.3 2.13.4 2.14.0 2.15.0 2.16.0 2.16.1 2.17.0 2.17.1 2.17.3 2.18.0 2.18.1 2.19.1 2.19.2 2.19.3 2.19.4 2.19.5 2.19.6 2.19.7 2.19.8 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.20.0 2.20.1 2.20.2 2.21.0 2.21.1 2.21.2 2.21.3 2.21.4 2.22.0 2.22.1 2.22.2 2.22.3 2.23.0 2.23.1 2.23.2 2.24.0 2.24.1 2.24.2 2.25.0 2.25.1 2.25.2 2.25.3 2.26.0 2.27.0 2.27.1 2.27.2 2.27.3 2.28.0 2.29.0 2.29.1 2.29.2
give / vendor / fakerphp / faker / src / Faker / Provider / ms_MY / Payment.php
give / vendor / fakerphp / faker / src / Faker / Provider / ms_MY Last commit date
Address.php 5 years ago Company.php 5 years ago Miscellaneous.php 5 years ago Payment.php 5 years ago Person.php 5 years ago PhoneNumber.php 5 years ago
Payment.php
245 lines
1 <?php
2
3 namespace Faker\Provider\ms_MY;
4
5 class Payment extends \Faker\Provider\Payment
6 {
7 protected static $bankFormats = array(
8 '{{localBank}}',
9 '{{foreignBank}}',
10 '{{governmentBank}}'
11 );
12
13 /**
14 * @link http://www.muamalat.com.my/consumer-banking/internet-banking/popup-ibg.html
15 */
16 protected static $bankAccountNumberFormats = array(
17 '##########',
18 '###########',
19 '############',
20 '#############',
21 '##############',
22 '###############',
23 '################',
24 );
25
26 /**
27 * @link https://en.wikipedia.org/wiki/List_of_banks_in_Malaysia
28 */
29 protected static $localBanks = array(
30 'Affin Bank',
31 'Alliance Bank',
32 'AmBank',
33 'CIMB Bank',
34 'Hong Leong Bank ',
35 'Maybank',
36 'Public Bank',
37 'RHB Bank'
38 );
39
40 /**
41 * @link https://en.wikipedia.org/wiki/List_of_banks_in_Malaysia#List_of_foreign_banks_(commercial)
42 */
43 protected static $foreignBanks = array(
44 'Bangkok Bank Berhad',
45 'Bank of America Malaysia Berhad',
46 'Bank of China (Malaysia) Berhad',
47 'Bank of Tokyo-Mitsubishi UFJ (Malaysia) Berhad',
48 'BNP Paribas Malaysia Berhad',
49 'China Construction Bank',
50 'Citibank Berhad',
51 'Deutsche Bank (Malaysia) Berhad',
52 'HSBC Bank Malaysia Berhad',
53 'India International Bank (Malaysia) Berhad',
54 'Industrial and Commercial Bank of China (Malaysia) Berhad',
55 'J.P. Morgan Chase Bank Berhad',
56 'Mizuho Bank (Malaysia) Berhad',
57 'National Bank of Abu Dhabi Malaysia Berhad',
58 'OCBC Bank (Malaysia) Berhad',
59 'Standard Chartered Bank Malaysia Berhad',
60 'Sumitomo Mitsui Banking Corporation Malaysia Berhad',
61 'The Bank of Nova Scotia Berhad',
62 'United Overseas Bank (Malaysia) Bhd.'
63 );
64
65 /**
66 * @link https://en.wikipedia.org/wiki/List_of_banks_in_Malaysia#Development_Financial_Institutions_(Government-owned_banks)_(full_list)
67 */
68 protected static $governmentBanks = array(
69 'Agro Bank Malaysia',
70 'Bank Pembangunan Malaysia Berhad (BPMB) (The development bank of Malaysia)',
71 'Bank Rakyat',
72 'Bank Simpanan Nasional',
73 'Credit Guarantee Corporation Malaysia Berhad (CGC)',
74 'Export-Import Bank of Malaysia Berhad (Exim Bank)',
75 'Malaysia Debt Ventures Berhad',
76 'Malaysian Industrial Development Finance Berhad (MIDF)',
77 'SME Bank Berhad',
78 'Sabah Development Bank Berhad (SDB)',
79 'Sabah Credit Corporation (SCC)',
80 'Tabung Haji',
81 );
82
83 /**
84 * @link https://en.wikipedia.org/wiki/List_of_banks_in_Malaysia#Investment-Link_Funds_(Insurance_Companies_-_Takaful_included)
85 */
86 protected static $insuranceCompanies = array(
87 'AIA Malaysia',
88 'AIG Malaysia',
89 'Allianz Malaysia',
90 'AXA AFFIN Life Insurance',
91 'Berjaya General Insurance',
92 'Etiqa Insurance',
93 'Great Eastern Insurance',
94 'Hong Leong Assurance',
95 'Kurnia Insurans Malaysia',
96 'Manulife Malaysia Insurance',
97 'MSIG Malaysia',
98 'Prudential Malaysia',
99 'Tokio Marine Life Malaysia Insurance',
100 'UNI.ASIA General Insurance',
101 'Zurich Insurance Malaysia',
102 );
103
104 /**
105 * @link http://www.bankswiftcode.org/malaysia/
106 */
107 protected static $swiftCodes = array(
108 'ABNAMY2AXXX','ABNAMYKLPNG','ABNAMYKLXXX','AFBQMYKLXXX','AIBBMYKLXXX',
109 'AISLMYKLXXX','AMMBMYKLXXX','ARBKMYKLXXX',
110 'BIMBMYKLXXX','BISLMYKAXXX','BKCHMYKLXXX','BKKBMYKLXXX','BMMBMYKLXXX',
111 'BNMAMYKLXXX','BNPAMYKAXXX','BOFAMY2XLBN','BOFAMY2XXXX','BOTKMYKAXXX',
112 'BOTKMYKXXXX',
113 'CHASMYKXKEY','CHASMYKXXXX','CIBBMYKAXXX','CIBBMYKLXXX','CITIMYKLJOD',
114 'CITIMYKLLAB','CITIMYKLPEN','CITIMYKLXXX','COIMMYKLXXX','CTBBMYKLXXX',
115 'DABEMYKLXXX','DBSSMY2AXXX','DEUTMYKLBLB','DEUTMYKLGMO','DEUTMYKLISB',
116 'DEUTMYKLXXX',
117 'EIBBMYKLXXX','EOBBMYKLXXX','EXMBMYKLXXX',
118 'FEEBMYKAXXX',
119 'HBMBMYKLXXX','HDSBMY2PSEL','HDSBMY2PXXX','HLBBMYKLIBU','HLBBMYKLJBU',
120 'HLBBMYKLKCH','HLBBMYKLPNG','HLBBMYKLXXX','HLIBMYKLXXX','HMABMYKLXXX',
121 'HSBCMYKAXXX','HSTMMYKLGWS','HSTMMYKLXXX',
122 'KAFBMYKLXXX','KFHOMYKLXXX',
123 'MBBEMYKAXXX','MBBEMYKLBAN','MBBEMYKLBBG','MBBEMYKLBWC','MBBEMYKLCSD',
124 'MBBEMYKLIPH','MBBEMYKLJOB','MBBEMYKLKEP','MBBEMYKLKIN','MBBEMYKLKLC',
125 'MBBEMYKLMAL','MBBEMYKLPEN','MBBEMYKLPGC','MBBEMYKLPJC','MBBEMYKLPJY',
126 'MBBEMYKLPKG','MBBEMYKLPSG','MBBEMYKLPUD','MBBEMYKLSAC','MBBEMYKLSBN',
127 'MBBEMYKLSHA','MBBEMYKLSUB','MBBEMYKLWSD','MBBEMYKLXXX','MBBEMYKLYSL',
128 'MFBBMYKLXXX','MHCBMYKAXXX',
129 'NOSCMY2LXXX','NOSCMYKLXXX',
130 'OABBMYKLXXX','OCBCMYKLXXX','OSKIMYKLXXX',
131 'PBBEMYKLXXX','PBLLMYKAXXX','PCGLMYKLXXX','PERMMYKLXXX','PHBMMYKLXXX',
132 'PTRDMYKLXXX','PTROMYKLFSD','PTROMYKLXXX',
133 'RHBAMYKLXXX','RHBBMYKAXXX','RHBBMYKLXXX','RJHIMYKLXXX',
134 'SCBLMYKXLAB','SCBLMYKXXXX','SMBCMYKAXXX',
135 'UIIBMYKLXXX','UOVBMYKLCND','UOVBMYKLXXX',
136 );
137
138 /**
139 * @link https://en.wikipedia.org/wiki/Malaysian_ringgit
140 */
141 protected static $currencySymbol = array(
142 'RM'
143 );
144
145 /**
146 * Return a Malaysian Bank
147 *
148 * @example 'Maybank'
149 *
150 * @return @string
151 */
152 public function bank()
153 {
154 $formats = static::randomElement(static::$bankFormats);
155
156 return $this->generator->parse($formats);
157 }
158
159 /**
160 * Return a Malaysian Bank account number
161 *
162 * @example '1234567890123456'
163 *
164 * @return @string
165 */
166 public function bankAccountNumber()
167 {
168 $formats = static::randomElement(static::$bankAccountNumberFormats);
169
170 return static::numerify($formats);
171 }
172
173 /**
174 * Return a Malaysian Local Bank
175 *
176 * @example 'Public Bank'
177 *
178 * @return @string
179 */
180 public static function localBank()
181 {
182 return static::randomElement(static::$localBanks);
183 }
184
185 /**
186 * Return a Malaysian Foreign Bank
187 *
188 * @example 'Citibank Berhad'
189 *
190 * @return @string
191 */
192 public static function foreignBank()
193 {
194 return static::randomElement(static::$foreignBanks);
195 }
196
197 /**
198 * Return a Malaysian Government Bank
199 *
200 * @example 'Bank Simpanan Nasional'
201 *
202 * @return @string
203 */
204 public static function governmentBank()
205 {
206 return static::randomElement(static::$governmentBanks);
207 }
208
209 /**
210 * Return a Malaysian insurance company
211 *
212 * @example 'AIA Malaysia'
213 *
214 * @return @string
215 */
216 public static function insurance()
217 {
218 return static::randomElement(static::$insuranceCompanies);
219 }
220
221 /**
222 * Return a Malaysian Bank SWIFT Code
223 *
224 * @example 'MBBEMYKLXXX'
225 *
226 * @return @string
227 */
228 public static function swiftCode()
229 {
230 return static::toUpper(static::lexify(static::randomElement(static::$swiftCodes)));
231 }
232
233 /**
234 * Return the Malaysian currency symbol
235 *
236 * @example 'RM'
237 *
238 * @return @string
239 */
240 public static function currencySymbol()
241 {
242 return static::randomElement(static::$currencySymbol);
243 }
244 }
245