diff --git a/moka-opencart-3.0/.gitignore b/moka-opencart-3.0/.gitignore new file mode 100644 index 0000000..97be41f --- /dev/null +++ b/moka-opencart-3.0/.gitignore @@ -0,0 +1,20 @@ +.htaccess +/config.php +admin/config.php + +!index.html + +download/ +image/data/ +image/cache/ +system/cache/ +system/logs/ + +system/storage/ + +# vQmod log files +vqmod/logs/* +# vQmod cache files +vqmod/vqcache/* +vqmod/checked.cache +vqmod/mods.cache diff --git a/moka-opencart-3.0/LICENSE b/moka-opencart-3.0/LICENSE new file mode 100644 index 0000000..94a9ed0 --- /dev/null +++ b/moka-opencart-3.0/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/moka-opencart-3.0/admin/controller/extension/payment/moka_payment.php b/moka-opencart-3.0/admin/controller/extension/payment/moka_payment.php new file mode 100644 index 0000000..64305c9 --- /dev/null +++ b/moka-opencart-3.0/admin/controller/extension/payment/moka_payment.php @@ -0,0 +1,319 @@ +language->load('extension/payment/moka_payment'); + $this->load->model('extension/payment/moka_payment'); + $this->document->setTitle($this->language->get('heading_title')); + include(DIR_SYSTEM . 'library/mokapayment/mokaconfig.php'); + $this->load->model('setting/setting'); + + if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { + $this->model_setting_setting->editSetting('payment_moka_payment', $this->request->post); + $this->session->data['success'] = $this->language->get('text_success'); + $this->response->redirect($this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=payment', true)); + } + + $data['heading_title'] = $this->language->get('heading_title'); + $data['text_edit'] = $this->language->get('heading_title'); + $data['link_title'] = $this->language->get('text_link'); + + $data['text_enabled'] = $this->language->get('text_enabled'); + $data['text_disabled'] = $this->language->get('text_disabled'); + + $data['entry_dealercode'] = $this->language->get('entry_dealercode'); + $data['entry_username'] = $this->language->get('entry_username'); + $data['entry_installement'] = $this->language->get('entry_installement'); + + $data['entry_password'] = $this->language->get('entry_password'); + + $data['entry_order_status'] = $this->language->get('entry_order_status'); + $data['entry_status'] = $this->language->get('entry_status'); + $data['entry_threed'] = $this->language->get('entry_threed'); + $data['entry_class_responsive'] = $this->language->get('entry_class_responsive'); + $data['entry_class_popup'] = $this->language->get('entry_class_popup'); + $data['entry_installment_options'] = $this->language->get('entry_installment_options'); + $data['entry_sort_order'] = $this->language->get('entry_sort_order'); + $data['entry_moka_test_mode'] = $this->language->get('entry_moka_test_mode'); + + $data['button_save'] = $this->language->get('button_save'); + $data['button_cancel'] = $this->language->get('button_cancel'); + + $data['order_status_after_payment_tooltip'] = $this->language->get('order_status_after_payment_tooltip'); + $data['order_status_after_cancel_tooltip'] = $this->language->get('order_status_after_cancel_tooltip'); + $data['entry_test_tooltip'] = $this->language->get('entry_test_tooltip'); + $data['entry_cancel_order_status'] = $this->language->get('entry_cancel_order_status'); + + + $data['message'] = ''; + $data['error_warning'] = ''; + $data['error_version'] = ''; + + $error_data_array_key = array( + 'dealercode', + 'username', + 'password' + ); + + if ($this->config->get('payment_moka_payment_rates') == NULL) { + + $this->config->set('payment_moka_payment_rates', MokaConfig::setRatesDefault()); + + } + + + if (isset($this->request->get['update_error'])) { + $data['error_version'] = $this->language->get('entry_error_version_updated'); + } else { + $this->load->model('extension/payment/moka_payment'); + $versionCheck = $this->model_extension_payment_moka_payment->versionCheck(VERSION, $this->module_version); + + if (!empty($versionCheck['version_status']) AND $versionCheck['version_status'] == '1') { + $data['error_version'] = $this->language->get('entry_error_version'); + $data['moka_or_text'] = $this->language->get('entry_moka_or_text'); + $data['moka_update_button'] = $this->language->get('entry_moka_update_button'); + $version_updatable = $versionCheck['new_version_id']; + $data['version_update_link'] = $this->url->link('extension/payment/moka_payment/update', 'user_token=' . $this->session->data['user_token'] . "&version=$version_updatable", true); + } + } + + foreach ($error_data_array_key as $key) { + $data["error_{$key}"] = isset($this->error[$key]) ? $this->error[$key] : ''; + } + + $data['breadcrumbs'] = array(); + + $data['breadcrumbs'][] = array( + 'text' => $this->language->get('text_home'), + 'href' => $this->url->link('common/home', 'user_token=' . $this->session->data['user_token'], 'SSL'), + 'separator' => false + ); + + $data['breadcrumbs'][] = array( + 'text' => $this->language->get('text_payment'), + 'href' => $this->url->link('marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=payment', true), + 'separator' => ' :: ' + ); + + $data['breadcrumbs'][] = array( + 'text' => $this->language->get('heading_title'), + 'href' => $this->url->link('extension/payment/moka_payment', 'user_token=' . $this->session->data['user_token'] , 'SSL'), + + 'separator' => ' :: ' + ); + + $data['action'] = $this->url->link('extension/payment/moka_payment', 'user_token=' . $this->session->data['user_token'], 'SSL'); + + $data['cancel'] = $this->url->link('extension/payment', 'user_token=' . $this->session->data['user_token'], 'SSL'); + + $merchant_keys_name_array = array( + 'payment_moka_payment_dealercode', + 'payment_moka_payment_username', + 'payment_moka_payment_password', + 'payment_moka_payment_moka_3d_mode', + 'payment_moka_payment_status', + 'payment_moka_payment_order_status_id', + 'payment_moka_payment_sort_order', + 'payment_moka_payment_installement', + 'payment_moka_payment_test_mode', + 'payment_moka_payment_rates', + 'payment_moka_payment_cancel_order_status_id' + ); + + foreach ($merchant_keys_name_array as $key) { + $data[$key] = isset($this->request->post[$key]) ? $this->request->post[$key] : $this->config->get($key); + } + + $data['moka_rates_table'] = MokaConfig::createRatesUpdateForm($this->config->get('payment_moka_payment_rates')); + $this->load->model('localisation/order_status'); + if ($data['payment_moka_payment_order_status_id'] == '') { + $data['payment_moka_payment_order_status_id'] = $this->config->get('config_order_status_id'); + } + $data['order_statuses'] = $this->model_localisation_order_status->getOrderStatuses(); + + $data['header'] = $this->load->controller('common/header'); + $data['column_left'] = $this->load->controller('common/column_left'); + $data['footer'] = $this->load->controller('common/footer'); + $this->response->setOutput($this->load->view('extension/payment/moka_payment', $data)); + + } + + public function install() { + $this->load->model('extension/payment/moka_payment'); + $this->model_extension_payment_moka_payment->install(); + if(!isset($this->session->data['moka_update'])){ + $this->load->controller('extension/modification/refresh'); + } + } + + public function uninstall() { + $this->load->model('extension/payment/moka_payment'); + $this->model_extension_payment_moka_payment->uninstall(); + if(!isset($this->session->data['moka_update'])){ + $this->load->controller('extension/modification/refresh'); + } + } + + public function update() { + + + $this->load->model('extension/payment/moka_payment'); + $this->load->language('extension/payment/moka_payment'); + $version_updatable = $this->request->get['version']; + $updated = $this->model_extension_payment_moka_payment->update($version_updatable); + if ($updated == 1) { + $this->load->model('setting/setting'); + $payment_moka_payment_dealercode=$this->config->get('payment_moka_payment_dealercode'); + $payment_moka_payment_username=$this->config->get('payment_moka_payment_username'); + $payment_moka_payment_password=$this->config->get('payment_moka_payment_password'); + $payment_moka_payment_moka_3d_mode=$this->config->get('payment_moka_payment_moka_3d_mode'); + $payment_moka_payment_status=$this->config->get('payment_moka_payment_status'); + $payment_moka_payment_order_status_id=$this->config->get('payment_moka_payment_order_status_id'); + $payment_moka_payment_sort_order=$this->config->get('payment_moka_payment_sort_order'); + $payment_moka_payment_installement=$this->config->get('payment_moka_payment_installement'); + $payment_moka_payment_test_mode=$this->config->get('payment_moka_payment_test_mode'); + $payment_moka_payment_rates=$this->config->get('payment_moka_payment_rates'); + $payment_moka_payment_cancel_order_status_id=$this->config->get('payment_moka_payment_cancel_order_status_id'); + + $this->session->data['moka_update'] =1; + $this->load->controller('extension/payment/' . 'moka_payment' . '/uninstall'); + $this->load->controller('extension/payment/' . 'moka_payment' . '/install'); + + $this->config->set('payment_moka_payment_dealercode', $payment_moka_payment_dealercode); + $this->config->set('payment_moka_payment_username', $payment_moka_payment_username); + $this->config->set('payment_moka_payment_password', $payment_moka_payment_password); + $this->config->set('payment_moka_payment_moka_3d_mode', $payment_moka_payment_moka_3d_mode); + $this->config->set('payment_moka_payment_status', $payment_moka_payment_status); + $this->config->set('payment_moka_payment_order_status_id', $payment_moka_payment_order_status_id); + $this->config->set('payment_moka_payment_sort_order', $payment_moka_payment_sort_order); + $this->config->set('payment_moka_payment_installement', $payment_moka_payment_installement); + $this->config->set('payment_moka_payment_test_mode', $payment_moka_payment_test_mode); + $this->config->set('payment_moka_payment_rates', $payment_moka_payment_rates); + $this->config->set('payment_moka_payment_cancel_order_status_id', $payment_moka_payment_cancel_order_status_id); + + + unset($this->session->data['moka_update']); + $this->load->controller('extension/modification/refresh'); + $this->session->data['success'] = $this->language->get('text_success'); + $this->response->redirect($this->url->link('extension/payment', 'user_token=' . $this->session->data['user_token'], 'SSL')); + } else { + $this->response->redirect($this->url->link('extension/payment/moka_payment', 'user_token=' . $this->session->data['user_token'] . "&update_error=$updated", true)); + } + } + + public function order() { + $this->language->load('extension/payment/moka_payment'); + $language_id = (int) $this->config->get('config_language_id'); + $this->data = array(); + $order_id = (int) $this->request->get['order_id']; + $data['user_token'] = $this->request->get['user_token']; + $data['heading_title'] = $this->language->get('heading_title'); + $data['text_DealerPaymentId'] = $this->language->get('text_DealerPaymentId'); + $data['text_sepet_total'] = $this->language->get('text_sepet_total'); + $data['text_odenen'] = $this->language->get('text_odenen'); + $data['text_komisyon'] = $this->language->get('text_komisyon'); + $data['text_taksit_sayi'] = $this->language->get("text_taksit_sayi"); + $data['text_creditcart'] = $this->language->get('text_creditcart'); + $data['text_rescode'] = $this->language->get('text_rescode'); + + $moka_order_id = $order_id; + $payment_moka_payment_test_mode = $this->config->get('payment_moka_payment_test_mode'); + if ($payment_moka_payment_test_mode == 'OFF') { + $url = 'https://service.moka.com/PaymentDealer/GetDealerPaymentTrxDetailList'; + }else{ + $url = 'https://service.testmoka.com/PaymentDealer/GetDealerPaymentTrxDetailList'; + } + $moka_username = $this->config->get('payment_moka_payment_username'); + $moka_password = $this->config->get('payment_moka_payment_password'); + $moka_dealercode = $this->config->get('payment_moka_payment_dealercode'); + + $moka['PaymentDealerAuthentication'] = array( + 'DealerCode' => $moka_dealercode, + 'Username' => $moka_username, + 'Password' => $moka_password, + 'CheckKey' => hash('sha256', $moka_dealercode . 'MK' . $moka_username . 'PD' . $moka_password) + ); + $moka['PaymentDealerRequest'] = array( + 'DealerPaymentId' => null, + 'OtherTrxCode' => $moka_order_id + ); + + + $result = json_decode($this->curlPostExt(json_encode($moka), $url, true)); + + $data['DealerPaymentId'] = $result->Data->PaymentDetail->DealerPaymentId; + $data['sepet_total'] = $result->Data->PaymentDetail->DealerCommissionAmount + $result->Data->PaymentDetail->Amount; + $data['odenen'] = $result->Data->PaymentDetail->Amount; + $data['komisyon'] = $result->Data->PaymentDetail->DealerCommissionAmount; + $data['taksit_sayi'] = $result->Data->PaymentDetail->InstallmentNumber; + $data['creditcart'] = $result->Data->PaymentDetail->CardNumberFirstSix . 'XXX' . $result->Data->PaymentDetail->CardNumberLastFour . ' - ' . $result->Data->PaymentDetail->CardHolderFullName; + $data['rescode'] = $result->Data->ResultCode." - ".$result->Data->PaymentTrxDetailList[0]->ResultMessage; + + + return $this->load->view('extension/payment/moka_payment_order', $data); + } + + private function curlPostExt($data, $url, $json = false) { + $ch = curl_init(); // initialize curl handle + curl_setopt($ch, CURLOPT_URL, $url); // set url to post to + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // return into a variable + if ($json) + curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-type: application/json")); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); + curl_setopt($ch, CURLOPT_TIMEOUT, 30); // times out after 4s + curl_setopt($ch, CURLOPT_POST, 1); // set POST method + curl_setopt($ch, CURLOPT_POSTFIELDS, $data); // add POST fields + if ($result = curl_exec($ch)) { // run the whole process + curl_close($ch); + + return $result; + } + } + + protected function validate() { + if (!$this->user->hasPermission('modify', 'extension/payment/moka_payment')) { + $this->error['warning'] = $this->language->get('error_permission'); + } + + $validation_array = array( + 'dealercode', + 'username', + 'password' + ); + + foreach ($validation_array as $key) { + if (empty($this->request->post["payment_moka_payment_{$key}"])) { + $this->error[$key] = $this->language->get("error_$key"); + } + } + + if (!$this->error) { + return true; + } else { + return false; + } + } + + private function _addhistory($order_id, $order_status_id, $comment) { + + $this->load->model('sale/order'); + $this->model_sale_order->addOrderHistory($order_id, array( + 'order_status_id' => $order_status_id, + 'notify' => 1, + 'comment' => $comment + )); + + return true; + } + +} diff --git a/moka-opencart-3.0/admin/language/en-gb/extension/payment/moka_payment.php b/moka-opencart-3.0/admin/language/en-gb/extension/payment/moka_payment.php new file mode 100644 index 0000000..ac276b9 --- /dev/null +++ b/moka-opencart-3.0/admin/language/en-gb/extension/payment/moka_payment.php @@ -0,0 +1,65 @@ +moka payment'; +// Entry +$_['entry_dealercode'] = 'Moka Dealer Code'; +$_['entry_username'] = 'Moka Username'; +$_['entry_password'] = 'Moka Password'; +$_['entry_installement'] = 'Installement Option'; + +$_['entry_order_status'] = 'Order Status'; +$_['entry_status'] = 'Status'; +$_['entry_sort_order'] = 'Sort Order'; +$_['entry_error_version'] = 'There is a new version. Click here to update.'; +$_['entry_error_version_updated'] = 'Update Error! go to KahveDigital Version Page KahveDigital'; +$_['entry_moka_or_text'] = 'or go to KahveDigital Version Page KahveDigital'; +$_['entry_moka_update_button'] = 'Update now'; +$_['entry_threed'] = "3D Secure"; +$_['entry_moka_test_mode'] = "Moka Test Mode"; + +$_['entry_cancel_order_status'] = "Cancel Order Status"; +$_['entry_test_tooltip'] = 'Use the live or testing (sandbox) gateway server to process transactions'; + +// Error +$_['error_permission'] = 'You are not authorized'; +$_['error_dealercode'] = 'Dealer Code required'; +$_['error_username'] = 'Username required'; +$_['error_password'] = 'Password required'; +$_['error_invalid_order'] = 'Invalid Order'; + + + +$_['Invalid call.'] = 'Invalid call.'; + +// Details +// Details +$_['text_rescode'] = 'Resul Code :'; +$_['text_creditcart'] = 'Credit Card :'; +$_['text_taksit_sayi'] = 'İnstallement :'; +$_['text_komisyon'] = 'Comission :'; + +$_['text_odenen'] = "Paid Price :"; +$_['text_sepet_total'] = 'Total Price :'; + +$_['text_DealerPaymentId'] = 'TransactionID :'; + + + +$_['text_processing'] = 'Processing...'; +$_['text_item_name'] = 'Item Name'; + +$_['text_type'] = 'Type'; +$_['text_status'] = 'Status'; +$_['text_note'] = 'Note'; +$_['text_are_you_sure'] = 'Are you sure?'; + + +$_['text_enabled'] = 'Enabled'; +$_['text_disabled'] = 'Disabled'; \ No newline at end of file diff --git a/moka-opencart-3.0/admin/language/english/extension/payment/moka_payment.php b/moka-opencart-3.0/admin/language/english/extension/payment/moka_payment.php new file mode 100644 index 0000000..ac276b9 --- /dev/null +++ b/moka-opencart-3.0/admin/language/english/extension/payment/moka_payment.php @@ -0,0 +1,65 @@ +moka payment'; +// Entry +$_['entry_dealercode'] = 'Moka Dealer Code'; +$_['entry_username'] = 'Moka Username'; +$_['entry_password'] = 'Moka Password'; +$_['entry_installement'] = 'Installement Option'; + +$_['entry_order_status'] = 'Order Status'; +$_['entry_status'] = 'Status'; +$_['entry_sort_order'] = 'Sort Order'; +$_['entry_error_version'] = 'There is a new version. Click here to update.'; +$_['entry_error_version_updated'] = 'Update Error! go to KahveDigital Version Page KahveDigital'; +$_['entry_moka_or_text'] = 'or go to KahveDigital Version Page KahveDigital'; +$_['entry_moka_update_button'] = 'Update now'; +$_['entry_threed'] = "3D Secure"; +$_['entry_moka_test_mode'] = "Moka Test Mode"; + +$_['entry_cancel_order_status'] = "Cancel Order Status"; +$_['entry_test_tooltip'] = 'Use the live or testing (sandbox) gateway server to process transactions'; + +// Error +$_['error_permission'] = 'You are not authorized'; +$_['error_dealercode'] = 'Dealer Code required'; +$_['error_username'] = 'Username required'; +$_['error_password'] = 'Password required'; +$_['error_invalid_order'] = 'Invalid Order'; + + + +$_['Invalid call.'] = 'Invalid call.'; + +// Details +// Details +$_['text_rescode'] = 'Resul Code :'; +$_['text_creditcart'] = 'Credit Card :'; +$_['text_taksit_sayi'] = 'İnstallement :'; +$_['text_komisyon'] = 'Comission :'; + +$_['text_odenen'] = "Paid Price :"; +$_['text_sepet_total'] = 'Total Price :'; + +$_['text_DealerPaymentId'] = 'TransactionID :'; + + + +$_['text_processing'] = 'Processing...'; +$_['text_item_name'] = 'Item Name'; + +$_['text_type'] = 'Type'; +$_['text_status'] = 'Status'; +$_['text_note'] = 'Note'; +$_['text_are_you_sure'] = 'Are you sure?'; + + +$_['text_enabled'] = 'Enabled'; +$_['text_disabled'] = 'Disabled'; \ No newline at end of file diff --git a/moka-opencart-3.0/admin/language/tr-tr/extension/payment/moka_payment.php b/moka-opencart-3.0/admin/language/tr-tr/extension/payment/moka_payment.php new file mode 100644 index 0000000..9f66a86 --- /dev/null +++ b/moka-opencart-3.0/admin/language/tr-tr/extension/payment/moka_payment.php @@ -0,0 +1,64 @@ +moka'; +// Entry +$_['entry_dealercode'] = 'Moka Bayi Kodu'; +$_['entry_username'] = 'Moka Kullanıcı Adı'; +$_['entry_password'] = 'Moka Şifresi'; +$_['entry_installement'] = 'Taksit Seçenekleri'; + +$_['entry_order_status'] = 'Sipariş Durumu'; +$_['entry_status'] = 'Durum'; +$_['entry_sort_order'] = 'Sıralama Türü'; +$_['entry_error_version'] = 'Yeni bir versiyon mevcut güncellemek için tıklayınız.'; +$_['entry_error_version_updated'] = 'Güncelleme Hatası! güncellemek için kahvedigital sayfasından indirebilirsiniz. KahveDigital '; +$_['entry_moka_or_text'] = 'veya kahvedigital sayfasından indirebilirsiniz. KahveDigital'; +$_['entry_moka_update_button'] = 'Şimdi Güncelle'; +$_['entry_threed'] = "3D Secure Aktifleştir"; +$_['entry_cancel_order_status'] = "İptal"; +$_['entry_test_tooltip'] = 'İşlemlerin geçeceği ortamı seçiniz'; +$_['entry_moka_test_mode'] = "Moka Test Modu"; +// Error +$_['error_permission'] = 'Bu işlemi yapmak için yetkiniz yok'; +$_['error_dealercode'] = 'Bayi Kodu gereklidir'; +$_['error_username'] = 'Kullanıcı Adı gereklidir'; +$_['error_password'] = 'Şifre gereklidir'; + +$_['error_invalid_order'] = 'Geçersiz İşlem'; + + + + +$_['Invalid call.'] = 'Geçersiz istek'; + +// Details +$_['text_rescode'] = 'Resul Code :'; +$_['text_creditcart'] = 'Kredi Kartı :'; +$_['text_taksit_sayi'] = 'Taksit Sayısı :'; +$_['text_komisyon'] = 'Komisyon :'; + +$_['text_odenen'] = "Ödenen Tutar :"; +$_['text_sepet_total'] = 'Toplam Tutar :'; + +$_['text_DealerPaymentId'] = 'Ödemeno :'; + + + +$_['text_processing'] = 'İşlem Sürüyor'; +$_['text_item_name'] = 'Ürün Adı'; + +$_['text_type'] = 'Tip'; +$_['text_status'] = 'Durum'; +$_['text_note'] = 'Not'; +$_['text_are_you_sure'] = 'Emin misiniz?'; +$_['text_please_enter_amount'] = 'Lütfen tutar giriniz'; + +$_['text_enabled'] = 'Aktif'; +$_['text_disabled'] = 'Pasif'; \ No newline at end of file diff --git a/moka-opencart-3.0/admin/language/turkish/extension/payment/moka_payment.php b/moka-opencart-3.0/admin/language/turkish/extension/payment/moka_payment.php new file mode 100644 index 0000000..9f66a86 --- /dev/null +++ b/moka-opencart-3.0/admin/language/turkish/extension/payment/moka_payment.php @@ -0,0 +1,64 @@ +moka'; +// Entry +$_['entry_dealercode'] = 'Moka Bayi Kodu'; +$_['entry_username'] = 'Moka Kullanıcı Adı'; +$_['entry_password'] = 'Moka Şifresi'; +$_['entry_installement'] = 'Taksit Seçenekleri'; + +$_['entry_order_status'] = 'Sipariş Durumu'; +$_['entry_status'] = 'Durum'; +$_['entry_sort_order'] = 'Sıralama Türü'; +$_['entry_error_version'] = 'Yeni bir versiyon mevcut güncellemek için tıklayınız.'; +$_['entry_error_version_updated'] = 'Güncelleme Hatası! güncellemek için kahvedigital sayfasından indirebilirsiniz. KahveDigital '; +$_['entry_moka_or_text'] = 'veya kahvedigital sayfasından indirebilirsiniz. KahveDigital'; +$_['entry_moka_update_button'] = 'Şimdi Güncelle'; +$_['entry_threed'] = "3D Secure Aktifleştir"; +$_['entry_cancel_order_status'] = "İptal"; +$_['entry_test_tooltip'] = 'İşlemlerin geçeceği ortamı seçiniz'; +$_['entry_moka_test_mode'] = "Moka Test Modu"; +// Error +$_['error_permission'] = 'Bu işlemi yapmak için yetkiniz yok'; +$_['error_dealercode'] = 'Bayi Kodu gereklidir'; +$_['error_username'] = 'Kullanıcı Adı gereklidir'; +$_['error_password'] = 'Şifre gereklidir'; + +$_['error_invalid_order'] = 'Geçersiz İşlem'; + + + + +$_['Invalid call.'] = 'Geçersiz istek'; + +// Details +$_['text_rescode'] = 'Resul Code :'; +$_['text_creditcart'] = 'Kredi Kartı :'; +$_['text_taksit_sayi'] = 'Taksit Sayısı :'; +$_['text_komisyon'] = 'Komisyon :'; + +$_['text_odenen'] = "Ödenen Tutar :"; +$_['text_sepet_total'] = 'Toplam Tutar :'; + +$_['text_DealerPaymentId'] = 'Ödemeno :'; + + + +$_['text_processing'] = 'İşlem Sürüyor'; +$_['text_item_name'] = 'Ürün Adı'; + +$_['text_type'] = 'Tip'; +$_['text_status'] = 'Durum'; +$_['text_note'] = 'Not'; +$_['text_are_you_sure'] = 'Emin misiniz?'; +$_['text_please_enter_amount'] = 'Lütfen tutar giriniz'; + +$_['text_enabled'] = 'Aktif'; +$_['text_disabled'] = 'Pasif'; \ No newline at end of file diff --git a/moka-opencart-3.0/admin/model/extension/payment/moka_payment.php b/moka-opencart-3.0/admin/model/extension/payment/moka_payment.php new file mode 100644 index 0000000..f6e8735 --- /dev/null +++ b/moka-opencart-3.0/admin/model/extension/payment/moka_payment.php @@ -0,0 +1,139 @@ +db->query($sql); + $sql = ''; + } + } + } + } + } + + public function uninstall() { + $this->db->query("DELETE FROM `" . DB_PREFIX . "modification` WHERE code='moka_payment'"); + } + + public function logger($message) { + $log = new Log('moka_payment.log'); + $log->write($message); + } + + public function createOrderEntry($data) { + + } + + public function updateOrderEntry($data, $id) { + + } + + + public function versionCheck($opencart, $moka) { + $serverdomain = $_SERVER['HTTP_HOST']; + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, 'http://api.kahvedigital.com/version'); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_TIMEOUT, 10); + curl_setopt($ch, CURLOPT_POSTFIELDS, "opencart=$opencart&moka=$moka&type=opencart&domain=$serverdomain"); + $response = curl_exec($ch); + $response = json_decode($response, true); + return $response; + } + + public function update($version_updatable) { + + function recurse_copy($src, $dst) { + $dir = opendir($src); + @mkdir($dst); + while (false !== ( $file = readdir($dir))) { + if (( $file != '.' ) && ( $file != '..' )) { + if (is_dir($src . '/' . $file)) { + recurse_copy($src . '/' . $file, $dst . '/' . $file); + } else { + copy($src . '/' . $file, $dst . '/' . $file); + } + } + } + closedir($dir); + } + + function rrmdir($dir) { + if (is_dir($dir)) { + $objects = scandir($dir); + foreach ($objects as $object) { + if ($object != "." && $object != "..") { + if (filetype($dir . "/" . $object) == "dir") + rrmdir($dir . "/" . $object); + else + unlink($dir . "/" . $object); + } + } + reset($objects); + rmdir($dir); + } + } + + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, 'http://api.kahvedigital.com/update'); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_POSTFIELDS, "new_version=$version_updatable"); + $response = curl_exec($ch); + $response = json_decode($response, true); + + $serveryol = $_SERVER['DOCUMENT_ROOT']; + $ch = curl_init(); + $source = $response['file_dest']; + curl_setopt($ch, CURLOPT_URL, $source); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + $data = curl_exec($ch); + curl_close($ch); + + $foldername = $response['version_name']; + $fullfoldername = $serveryol . '/' . $foldername; + if (!file_exists($fullfoldername)) { + mkdir($fullfoldername); + } + if (file_exists($fullfoldername)) { + $unzipfilename = 'mokaupdate.zip'; + $file = fopen($fullfoldername . '/' . $unzipfilename, "w+"); + fputs($file, $data); + fclose($file); + + $path = pathinfo(realpath($fullfoldername . '/' . $unzipfilename), PATHINFO_DIRNAME); + $zip = new ZipArchive; + $res = $zip->open($fullfoldername . '/' . $unzipfilename); + if ($res === TRUE) { + $zip->extractTo($path); + $zip->close(); + $zip_name_folder = $response['zip_name_folder']; + + recurse_copy($fullfoldername . '/' . $zip_name_folder . '/admin', DIR_APPLICATION); + recurse_copy($fullfoldername . '/' . $zip_name_folder . '/catalog', DIR_CATALOG); + recurse_copy($fullfoldername . '/' . $zip_name_folder . '/system', DIR_SYSTEM); + + rrmdir($fullfoldername); + } else { + return 0; + } + } else { + return 0; + } + return 1; + } + +} diff --git a/moka-opencart-3.0/admin/moka_payment.sql b/moka-opencart-3.0/admin/moka_payment.sql new file mode 100644 index 0000000..647f213 --- /dev/null +++ b/moka-opencart-3.0/admin/moka_payment.sql @@ -0,0 +1,5 @@ +-- +INSERT INTO `oc_modification` (`name`, `code`, `author`, `version`, `link`, `xml`, `status`, `date_added`) VALUES +('Moka Payment', 'moka_payment', 'hello@kahvedigital.com', '3.0.0.0', 'http://kahvedigital.com/', '\n \n Moka Payment\n moka_payment\n 3.0.0.0\n hello@kahvedigital.com\n http://kahvedigital.com\n \n \n \n load->language(\'extension/payment/moka_payment\');\n $this->load->model(\'extension/payment/moka_payment\');\n $versionMoka = "3.0.0.0";\n $versionCheckMoka = $this->model_extension_payment_moka_payment->versionCheck(VERSION, $versionMoka);\n\n if (!empty($versionCheckMoka[\'version_status\']) AND $versionCheckMoka[\'version_status\'] == \'1\') {\n $data[\'error_version\'] = $this->language->get(\'entry_error_version\');\n $data[\'alerts\']= 1;\n $data[\'version_status_moka\']= $versionCheckMoka[\'version_status\'];\n $data[\'moka_or_text\'] = $this->language->get(\'entry_moka_or_text\');\n $data[\'moka_update_button\'] = $this->language->get(\'entry_moka_ + _button\');\n $version_updatable = $versionCheckMoka[\'new_version_id\'];\n $data[\'version_ + _link\'] = $this->url->link(\'extension/payment/moka_payment/update\', \'token=\' . $this->session->data[\'token\'] . "&version=$version_updatable", true);\n }else{\n $data[\'version_status_moka\']=\'0\'; \n } \n]]>\n \n \n \n\n \n ]]>\n 0) { ?> \n \n]]>\n \n \n \n \n', 1, now()); diff --git a/moka-opencart-3.0/admin/view/image/payment/moka_payment.png b/moka-opencart-3.0/admin/view/image/payment/moka_payment.png new file mode 100644 index 0000000..6dd34f9 Binary files /dev/null and b/moka-opencart-3.0/admin/view/image/payment/moka_payment.png differ diff --git a/moka-opencart-3.0/admin/view/template/extension/payment/moka_payment.twig b/moka-opencart-3.0/admin/view/template/extension/payment/moka_payment.twig new file mode 100644 index 0000000..7ba5752 --- /dev/null +++ b/moka-opencart-3.0/admin/view/template/extension/payment/moka_payment.twig @@ -0,0 +1,371 @@ +{{ header }}{{ column_left }} + +
+ +
+ {% if error_warning %} +
{{ error_warning }} + +
+ {% endif %} + {% if error_version %} +
{{ error_version }} {{ moka_update_button }} {{ moka_or_text }} + +
+ {% endif %} + +
+
+

{{ text_edit }}

+
+
+
+ +
+ +
+ + {% if error_dealercode %} + {{ error_dealercode }} + {% endif %} +
+
+
+ +
+ + {% if error_username %} + {{ error_username }} + {% endif %} +
+
+ +
+ +
+ + {% if error_password %} + {{ error_password }} + {% endif %} +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+ + + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+ {{ moka_rates_table}} + + + +
+
+
+ +
+
+
+ +
+

Moka Ödeme Kuruluşu A.Ş.

+

Hızlı Güvenli ve Kolay

+
+
+ Moka SanalPOS'a başvurun
+ Moka SanalPOS'unuz varsa ? Hesabınıza giriş yapın +
+
+ +
+ + +
+
+
+
+
+ +
+

+ 7x24 kesintisiz +
tahsilat imkanı +

+
+
+
+
+
+ +
+

+ Hesaplı +
satış avantajı +

+
+
+
+
+
+ +
+

+ Bütün kredi kartları için +
taksitli satış imkanı +

+
+
+
+
+
+ +
+

+ Visa ve MasterCard +
tahsilat imkanı +

+
+
+
+
+
+ +
+

+ Yabancı kartlar ile +
işlem yapabilme +

+
+
+
+
+
+ +
+

+ Hızlı ve kolay +
entegrasyon +

+
+
+
+
+
+
+ + + + + +
+ + +
+ +
+
+
Bu plugin için teknik destek işlemleri Moka Ödeme A.Ş. adına KahveDigital tarafından ÜCRETSİZ sağlanmaktadır.
+
+
+
+ +
+
+ +
+
+
+ + +
+
+ +
+ +
+ + + + + + + +
+
+
+
+
+
+ +
+
+ + + + + +{{ footer }} + + diff --git a/moka-opencart-3.0/admin/view/template/extension/payment/moka_payment_order.twig b/moka-opencart-3.0/admin/view/template/extension/payment/moka_payment_order.twig new file mode 100644 index 0000000..6068472 --- /dev/null +++ b/moka-opencart-3.0/admin/view/template/extension/payment/moka_payment_order.twig @@ -0,0 +1,26 @@ +

{{ heading_title }}

+ + + + + + + + + + + + + + + + + + + + +
{{ text_DealerPaymentId }} {{ DealerPaymentId }}
{{ text_sepet_total }} {{ sepet_total }}
{{ text_odenen }}{{ odenen }}
{{ text_komisyon }}{{ komisyon }}
{{ text_taksit_sayi }}{{ taksit_sayi }}
{{ text_creditcart }}{{ creditcart }}
{{ text_rescode }}{{ rescode }}
+ + + + diff --git a/moka-opencart-3.0/catalog/controller/extension/payment/moka_payment.php b/moka-opencart-3.0/catalog/controller/extension/payment/moka_payment.php new file mode 100644 index 0000000..0eb7164 --- /dev/null +++ b/moka-opencart-3.0/catalog/controller/extension/payment/moka_payment.php @@ -0,0 +1,422 @@ +language->load('extension/payment/moka_payment'); + $this->load->model('extension/payment/moka_payment'); + $this->load->model('checkout/order'); + $order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']); + $cart_total_amount = round($order_info['total'] * $order_info['currency_value'], 2); + + $data['cart_total'] = $cart_total_amount; + $data['code'] = $this->language->get('code'); + $data['text_credit_card'] = $this->language->get('text_credit_card'); + $data['text_wait'] = $this->language->get('text_wait'); + $data['button_confirm'] = $this->language->get('button_confirm'); + $data['continue'] = $this->url->link('checkout/success'); + $data['error_page'] = $this->url->link('checkout/error'); + $validform = md5($order_info['order_id'] . $order_info['store_url']); + + $data['validform'] = $validform; + + $order_id = $this->session->data['order_id']; + $unique_conversation_id = uniqid($this->order_prefix) . "_" . $order_id; + if (!isset($this->session->data['order_id']) or !$this->session->data['order_id']) { + die('Sipariş ID bulunamadı'); + } + $order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']); + + $data['orderid'] = $order_id; + $record = array('result_code' => false, 'result_message' => false); + $validform = md5($order_info['order_id'] . $order_info['store_url']); + + if (isset($this->request->post['validform']) && $this->request->post['validform'] == $validform) { + + $record = $this->PostMokaForm(); + } + + if (isset($_POST['hashValue'])) { + $record['result_code'] = $_POST['resultCode']; + $record['result_message'] = $_POST['resultMessage']; + + $hashValue = $_POST['hashValue']; + $HashSession = hash("sha256",$this->session->data['CodeForHash']."T"); + if ($hashValue == $HashSession) { + $record['result'] = true; + } else { + $record['result'] = false; + } + + } + + if (isset($record['result']) and $record['result']) { + $record['id_order'] = $order_id; + $comment = $this->record2Table($this->getRecordById($order_id)); + $message .= 'Payment ID: ' . $order_id . "\n"; + $this->session->data['payment_method']['code'] = 'moka_payment'; + $this->model_checkout_order->addOrderHistory($order_id, $this->config->get('payment_moka_payment_order_status_id'), $message, false); + $this->response->redirect($this->url->link('checkout/success', '', 'SSL')); + } + if (isset($this->request->post['resultMessage'])) { + $this->session->data['error'] = $this->request->post['resultMessage']; + + $this->response->redirect($this->url->link('checkout/checkout', '', 'SSL')); + } + require_once DIR_SYSTEM . 'library/mokapayment/mokaconfig.php'; + $order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']); + $total_cart = round($order_info['total'] * $order_info['currency_value'], 2); + $moka_rates = MokaConfig::calculatePrices($total_cart, $this->config->get('payment_moka_payment_rates')); + + $data['installments_mode'] = $this->config->get('payment_moka_payment_installement'); + $data['rates'] = $moka_rates; + $data['showtotal'] = $total_cart . ' ' . $order_info['currency_code']; + + $data['action'] = $this->url->link('extension/payment/moka_payment', '', 'SSL'); + + if (VERSION >= '2.2.0.0') { + $template_url = 'extension/payment/moka_payment'; + } else { + $template_url = 'default/template/extension/payment/moka_payment'; + } + return $this->load->view($template_url, $data); + } + + private function setcookieSameSite($name, $value, $expire, $path, $domain, $secure, $httponly) + { + + if (PHP_VERSION_ID < 70300) { + + setcookie($name, $value, $expire, "$path; samesite=None", $domain, $secure, $httponly); + } else { + setcookie($name, $value, [ + 'expires' => $expire, + 'path' => $path, + 'domain' => $domain, + 'samesite' => 'None', + 'secure' => $secure, + 'httponly' => $httponly, + ]); + + } + } + public function PostMokaForm() + { + + $cookieControl = false; + + if (isset($_COOKIE['PHPSESSID'])) { + $sessionKey = "PHPSESSID"; + $sessionValue = $_COOKIE['PHPSESSID']; + $cookieControl = true; + } + if (isset($_COOKIE['OCSESSID'])) { + $sessionKey = "OCSESSID"; + $sessionValue = $_COOKIE['OCSESSID']; + $cookieControl = true; + } + + if ($cookieControl) { + $setCookie = $this->setcookieSameSite($sessionKey, $sessionValue, time() + 86400, "/", $_SERVER['SERVER_NAME'], true, true); + } + $this->load->model('checkout/order'); + include DIR_SYSTEM . 'library/mokapayment/mokaconfig.php'; + $order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']); + + $record = array( + 'result_code' => '0', + 'result_message' => '', + 'result' => false, + ); + + $total = $this->request->post['mokatotal']; + + require_once DIR_SYSTEM . 'library/mokapayment/mokaconfig.php'; + + $name = $this->request->post['card-name']; + $number = $this->request->post['number']; + $expiry = $this->request->post['expiry']; + $cvc = $this->request->post['cvc']; + $total = $_POST['mokatotal']; + + $expiry = explode("/", $expiry); + $expiryMM = $expiry[0]; + $expiryYY = $expiry[1]; + $expiryMM = $this->replaceSpace($expiryMM); + $expiryYY = $this->replaceSpace($expiryYY); + $number = $this->replaceSpace($number); + + if (is_array($total)) { + $bankalar = MokaConfig::getAvailablePrograms(); + foreach ($bankalar as $key => $value) { + + $isim = $key; + for ($x = 1; $x <= 12; $x++) { + + $taksit = $total[$key][$x]; + if (!empty($taksit)) { + $installement = $x; + + $paid = number_format($taksit, 2, '.', ''); + } + } + } + } + if (empty($paid)) { + $taksit = $total; + $paid = number_format($taksit, 2, '.', ''); + $installement = 1; + } + + $orderid = $this->session->data['order_id']; + $moka_username = $this->config->get('payment_moka_payment_username'); + $moka_password = $this->config->get('payment_moka_payment_password'); + $moka_dealercode = $this->config->get('payment_moka_payment_dealercode'); + $moka_3d_mode = $this->config->get('payment_moka_payment_moka_3d_mode'); + + $moka = array(); + + $moka['PaymentDealerAuthentication'] = array( + 'DealerCode' => $moka_dealercode, + 'Username' => $moka_username, + 'Password' => $moka_password, + 'CheckKey' => hash('sha256', $moka_dealercode . 'MK' . $moka_username . 'PD' . $moka_password), + ); + if (strlen($expiryYY) == 4) { + $exprYYYY = $expiryYY; + } else { + $exprYYYY = '20' . $expiryYY; + } + $moka['PaymentDealerRequest'] = array( + 'CardHolderFullName' => $name, + 'CardNumber' => $number, + 'ExpMonth' => $expiryMM, + 'ExpYear' => $exprYYYY, + 'CvcNumber' => $cvc, + 'Amount' => $paid, + 'Currency' => $order_info['currency_code'] == 'TRY' ? 'TL' : $order_info['currency_code'], + 'InstallmentNumber' => (string) $installement, + 'OtherTrxCode' => (string) $orderid, + 'ClientIP' => $order_info['ip'], + 'Software' => 'Opencart-30', + 'ReturnHash' => 1, + 'RedirectUrl' => $this->url->link('extension/payment/moka_payment', '', 'SSL'), + ); + + $payment_moka_payment_test_mode = $this->config->get('payment_moka_payment_test_mode'); + if ($payment_moka_payment_test_mode == 'OFF') { + if (!defined('_MOKA_API_URL_')) { + define('_MOKA_API_URL_', 'https://service.moka.com/PaymentDealer/DoDirectPayment'); + } + + if (!defined('_MOKA_3D_URL_')) { + define('_MOKA_3D_URL_', 'https://service.moka.com/PaymentDealer/DoDirectPaymentThreeD'); + } + + } else { + define('_MOKA_API_URL_', 'https://service.testmoka.com/PaymentDealer/DoDirectPayment'); + if (!defined('_MOKA_3D_URL_')) { + define('_MOKA_3D_URL_', 'https://service.testmoka.com/PaymentDealer/DoDirectPaymentThreeD'); + } + + } + if ($moka_3d_mode == 'OFF') { + $gateway_url = _MOKA_API_URL_; + } else { + + $gateway_url = _MOKA_3D_URL_; + } + + $result = json_decode($this->curlPostExt(json_encode($moka), $gateway_url, true)); + + if (!$result or $result == null) { + $record['result_code'] = 'CURL-LOAD_ERROR'; + $record['result_message'] = 'WebServis Error '; + return $record; + } + + if (isset($result->ResultCode) and $result->ResultCode == "Success") { + if ($moka_3d_mode != 'OFF') { + $this->session->data['CodeForHash'] = $result->Data->CodeForHash; + header("Location:" . $result->Data->Url); + } + + + if (isset($result->Data->IsSuccessful) and $result->Data->IsSuccessful) { + $record['result_code'] = '99'; + $record['result_message'] = $result->ResultCode; + $record['result'] = true; + return $record; + } + + $record['result_code'] = isset($result->Data->ResultCode) ? $result->Data->ResultCode : 'UKN-01'; + $record['result_message'] = $errr; + return $record; + } else { + $ResultCode = $result->ResultCode; + + switch ($ResultCode) { + case "PaymentDealer.CheckPaymentDealerAuthentication.InvalidRequest": + $errr = "Hatalı hash bilgisi"; + break; + case "PaymentDealer.RequiredFields.AmountRequired": + $errr = "Tutar Göndermek Zorunludur."; + break; + case "PaymentDealer.RequiredFields.ExpMonthRequired": + $errr = "Son Kullanım Tarihi Gönderme Zorunludur."; + break; + + case "PaymentDealer.CheckPaymentDealerAuthentication.InvalidAccount": + $errr = "Böyle bir bayi bulunamadı"; + break; + case "PaymentDealer.CheckPaymentDealerAuthentication.VirtualPosNotFound": + $errr = "Bu bayi için sanal pos tanımı yapılmamış"; + break; + case "PaymentDealer.CheckDealerPaymentLimits.DailyDealerLimitExceeded": + $errr = "Bayi için tanımlı günlük limitlerden herhangi biri aşıldı"; + break; + case "PaymentDealer.CheckDealerPaymentLimits.DailyCardLimitExceeded": + $errr = "Gün içinde bu kart kullanılarak daha fazla işlem yapılamaz"; + + case "PaymentDealer.CheckCardInfo.InvalidCardInfo": + $errr = "Kart bilgilerinde hata var"; + break; + case "PaymentDealer.DoDirectPayment3dRequest.InstallmentNotAvailableForForeignCurrencyTransaction": + + $errr = "Yabancı para ile taksit yapılamaz"; + break; + case "PaymentDealer.DoDirectPayment3dRequest.ThisInstallmentNumberNotAvailableForDealer": + $errr = "Bu taksit sayısı bu bayi için yapılamaz"; + break; + case "PaymentDealer.DoDirectPayment3dRequest.InvalidInstallmentNumber": + $errr = "Taksit sayısı 2 ile 9 arasıdır"; + break; + case "PaymentDealer.DoDirectPayment3dRequest.ThisInstallmentNumberNotAvailableForVirtualPos": + $errr = "Sanal Pos bu taksit sayısına izin vermiyor"; + break; + + default: + $errr = "Beklenmeyen Bir hata Oluştu" . $ResultCode; + } + + $this->session->data['error'] = $errr; + $this->response->redirect($this->url->link('checkout/checkout', '', 'SSL')); + $record['result_code'] = $result->ResultCode; + $record['result_message'] = $errr . ' (' . $result->ResultCode . ')'; + } + + return $record; + } + + private function curlPostExt($data, $url, $json = false) + { + $ch = curl_init(); // initialize curl handle + curl_setopt($ch, CURLOPT_URL, $url); // set url to post to + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // return into a variable + if ($json) { + curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-type: application/json")); + } + + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); + curl_setopt($ch, CURLOPT_TIMEOUT, 30); // times out after 4s + curl_setopt($ch, CURLOPT_POST, 1); // set POST method + curl_setopt($ch, CURLOPT_POSTFIELDS, $data); // add POST fields + if ($result = curl_exec($ch)) { // run the whole process + curl_close($ch); + + return $result; + } + } + + public function getSiteUrl() + { + if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) { + $site_url = is_null($this->config->get('config_ssl')) ? HTTPS_SERVER : $this->config->get('config_ssl'); + } else { + $site_url = is_null($this->config->get('config_url')) ? HTTP_SERVER : $this->config->get('config_url'); + } + return $site_url; + } + + public function getServerConnectionSlug() + { + if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) { + $connection = 'SSL'; + } else { + $connection = 'NONSSL'; + } + + return $connection; + } + + private function _getCurrencySymbol($currencyCode) + { + $currencySymbol = $this->currency->getSymbolLeft($currencyCode); + if ($currencySymbol == '') { + $currencySymbol = $this->currency->getSymbolRight($currencyCode); + } else if ($currencySymbol == '') { + $currencySymbol = $currencyCode; + } + return $currencySymbol; + } + + public function replaceSpace($veri) + { + $veri = str_replace("/s+/", "", $veri); + $veri = str_replace(" ", "", $veri); + $veri = str_replace(" ", "", $veri); + $veri = str_replace(" ", "", $veri); + $veri = str_replace("/s/g", "", $veri); + $veri = str_replace("/s+/g", "", $veri); + $veri = trim($veri); + return $veri; + } + + public function getRecordById($id_order) + { + + $moka_order_id = $id_order; + $payment_moka_payment_test_mode = $this->config->get('payment_moka_payment_test_mode'); + if ($payment_moka_payment_test_mode == 'OFF') { + $url = 'https://service.moka.com/PaymentDealer/GetDealerPaymentTrxDetailList'; + } else { + $url = 'https://service.testmoka.com/PaymentDealer/GetDealerPaymentTrxDetailList'; + } + $moka_username = $this->config->get('payment_moka_payment_username'); + $moka_password = $this->config->get('payment_moka_payment_password'); + $moka_dealercode = $this->config->get('payment_moka_payment_dealercode'); + + $moka['PaymentDealerAuthentication'] = array( + 'DealerCode' => $moka_dealercode, + 'Username' => $moka_username, + 'Password' => $moka_password, + 'CheckKey' => hash('sha256', $moka_dealercode . 'MK' . $moka_username . 'PD' . $moka_password), + ); + $moka['PaymentDealerRequest'] = array( + 'DealerPaymentId' => null, + 'OtherTrxCode' => $moka_order_id, + ); + + return json_decode($this->curlPostExt(json_encode($moka), $url, true)); + } + + private function record2Table($record) + { + + $r = 'Moka işlem No:' . $record->Data->PaymentDetail->DealerPaymentId . " "; + $r .= 'Sepet toplamı:' . $record->Data->PaymentDetail->DealerCommissionAmount + $record->Data->PaymentDetail->Amount . " "; + $r .= 'Ödenen:' . $record->Data->PaymentDetail->Amount . " "; + $r .= 'Komisyon:' . $record->Data->PaymentDetail->DealerCommissionAmount . " "; + $r .= 'Taksit:' . $record->Data->PaymentDetail->InstallmentNumber . " "; + $r .= 'Kart:' . $record->Data->PaymentDetail->CardNumberFirstSix . 'XXX' . $record->Data->PaymentDetail->CardNumberLastFour . ' - ' . $record->Data->PaymentDetail->CardHolderFullName . " "; + return $r . 'Cevap:' . $record->Data->ResultCode . " "; + } + +} diff --git a/moka-opencart-3.0/catalog/language/en-gb/extension/payment/moka_payment.php b/moka-opencart-3.0/catalog/language/en-gb/extension/payment/moka_payment.php new file mode 100644 index 0000000..ac27d7d --- /dev/null +++ b/moka-opencart-3.0/catalog/language/en-gb/extension/payment/moka_payment.php @@ -0,0 +1,22 @@ +load->language('extension/payment/moka_payment'); + + $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "zone_to_geo_zone WHERE geo_zone_id = '" . (int) $this->config->get('moka_payment_geo_zone_id') . "' AND country_id = '" . (int) $address['country_id'] . "' AND (zone_id = '" . (int) $address['zone_id'] . "' OR zone_id = '0')"); + + if ($this->config->get('moka_payment_total') > 0 && $this->config->get('moka_payment_total') > $total) { + $status = false; + } elseif (!$this->config->get('moka_payment_geo_zone_id')) { + $status = true; + } elseif ($query->num_rows) { + $status = true; + } else { + $status = false; + } + + $method_data = array(); + + if ($status) { + $method_data = array( + 'code' => 'moka_payment', + 'title' => $this->language->get('text_title'), + 'terms' => '', + 'sort_order' => $this->config->get('payment_moka_payment_sort_order') + ); + } + + return $method_data; + } + + public function createRefundItemEntry($data) { + + } + + public function createOrderEntry($data) { + + } + + public function updateOrderEntry($data, $id) { + + } + + public function updateCustomer($customer_id, $card_key, $mokapi) { + + } + + public function disableErrorSettings() { + + } + +} diff --git a/moka-opencart-3.0/catalog/view/javascript/moka_payment/bins.json b/moka-opencart-3.0/catalog/view/javascript/moka_payment/bins.json new file mode 100644 index 0000000..ebb0ef9 --- /dev/null +++ b/moka-opencart-3.0/catalog/view/javascript/moka_payment/bins.json @@ -0,0 +1 @@ +[{"id":"1","bank_code":"10","bank_name":"ZİRAAT BANKASI","bin_number":"413226","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"2","bank_code":"10","bank_name":"ZİRAAT BANKASI","bin_number":"444676","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"3","bank_code":"10","bank_name":"ZİRAAT BANKASI","bin_number":"444677","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"4","bank_code":"10","bank_name":"ZİRAAT BANKASI","bin_number":"444678","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"5","bank_code":"10","bank_name":"ZİRAAT BANKASI","bin_number":"454671","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"6","bank_code":"10","bank_name":"ZİRAAT BANKASI","bin_number":"454672","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"7","bank_code":"10","bank_name":"ZİRAAT BANKASI","bin_number":"454673","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"8","bank_code":"10","bank_name":"ZİRAAT BANKASI","bin_number":"534981","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"9","bank_code":"10","bank_name":"ZİRAAT BANKASI","bin_number":"540130","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"10","bank_code":"10","bank_name":"ZİRAAT BANKASI","bin_number":"540134","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"11","bank_code":"10","bank_name":"ZİRAAT BANKASI","bin_number":"541001","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"12","bank_code":"10","bank_name":"ZİRAAT BANKASI","bin_number":"541033","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"13","bank_code":"10","bank_name":"ZİRAAT BANKASI","bin_number":"542374","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"14","bank_code":"10","bank_name":"ZİRAAT BANKASI","bin_number":"547287","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"16","bank_code":"12","bank_name":"T. HALK BANKASI A.Ş.","bin_number":"113012","card_type":"creditcard","organization":"AMEX","is_commercial_card":"0","is_support_installment":"0"}, {"id":"17","bank_code":"12","bank_name":"T. HALK BANKASI A.Ş.","bin_number":"415514","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"22","bank_code":"12","bank_name":"T. HALK BANKASI A.Ş.","bin_number":"492094","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"23","bank_code":"12","bank_name":"T. HALK BANKASI A.Ş.","bin_number":"492095","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"24","bank_code":"12","bank_name":"T. HALK BANKASI A.Ş.","bin_number":"498852","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"26","bank_code":"12","bank_name":"T. HALK BANKASI A.Ş.","bin_number":"510056","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"27","bank_code":"12","bank_name":"T. HALK BANKASI A.Ş.","bin_number":"521378","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"29","bank_code":"12","bank_name":"T. HALK BANKASI A.Ş.","bin_number":"540284","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"30","bank_code":"12","bank_name":"T. HALK BANKASI A.Ş.","bin_number":"540435","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"31","bank_code":"12","bank_name":"T. HALK BANKASI A.Ş.","bin_number":"543039","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"32","bank_code":"12","bank_name":"T. HALK BANKASI A.Ş.","bin_number":"543081","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"33","bank_code":"12","bank_name":"T. HALK BANKASI A.Ş.","bin_number":"552879","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"40","bank_code":"15","bank_name":"T. VAKIFLAR BANKASI T.A.O","bin_number":"113015","card_type":"creditcard","organization":"AMEX","is_commercial_card":"0","is_support_installment":"0"}, {"id":"41","bank_code":"15","bank_name":"T. VAKIFLAR BANKASI T.A.O","bin_number":"402940","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"42","bank_code":"15","bank_name":"T. VAKIFLAR BANKASI T.A.O","bin_number":"409084","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"43","bank_code":"15","bank_name":"T. VAKIFLAR BANKASI T.A.O","bin_number":"411724","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"44","bank_code":"15","bank_name":"T. VAKIFLAR BANKASI T.A.O","bin_number":"411942","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"45","bank_code":"15","bank_name":"T. VAKIFLAR BANKASI T.A.O","bin_number":"411943","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"46","bank_code":"15","bank_name":"T. VAKIFLAR BANKASI T.A.O","bin_number":"411944","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"47","bank_code":"15","bank_name":"T. VAKIFLAR BANKASI T.A.O","bin_number":"411979","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"48","bank_code":"15","bank_name":"T. VAKIFLAR BANKASI T.A.O","bin_number":"415792","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"49","bank_code":"15","bank_name":"T. VAKIFLAR BANKASI T.A.O","bin_number":"416757","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"50","bank_code":"15","bank_name":"T. VAKIFLAR BANKASI T.A.O","bin_number":"428945","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"51","bank_code":"15","bank_name":"T. VAKIFLAR BANKASI T.A.O","bin_number":"493840","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"52","bank_code":"15","bank_name":"T. VAKIFLAR BANKASI T.A.O","bin_number":"493841","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"53","bank_code":"15","bank_name":"T. VAKIFLAR BANKASI T.A.O","bin_number":"493846","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"54","bank_code":"15","bank_name":"T. VAKIFLAR BANKASI T.A.O","bin_number":"520017","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"55","bank_code":"15","bank_name":"T. VAKIFLAR BANKASI T.A.O","bin_number":"540045","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"56","bank_code":"15","bank_name":"T. VAKIFLAR BANKASI T.A.O","bin_number":"540046","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"57","bank_code":"15","bank_name":"T. VAKIFLAR BANKASI T.A.O","bin_number":"542119","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"58","bank_code":"15","bank_name":"T. VAKIFLAR BANKASI T.A.O","bin_number":"542798","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"59","bank_code":"15","bank_name":"T. VAKIFLAR BANKASI T.A.O","bin_number":"542804","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"60","bank_code":"15","bank_name":"T. VAKIFLAR BANKASI T.A.O","bin_number":"547244","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"61","bank_code":"15","bank_name":"T. VAKIFLAR BANKASI T.A.O","bin_number":"552101","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"63","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"113032","card_type":"creditcard","organization":"CUP","is_commercial_card":"0","is_support_installment":"0"}, {"id":"64","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"402458","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"65","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"402459","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"66","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"406015","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"67","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"427707","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"68","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"440247","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"69","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"440273","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"70","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"440293","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"71","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"440294","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"73","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"459026","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"74","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"479227","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"75","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"489495","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"76","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"489496","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"77","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"510138","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"78","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"510139","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"79","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"510221","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"80","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"512803","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"81","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"519780","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"82","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"524346","card_type":"creditcard","organization":"MASTER","is_commercial_card":"1","is_support_installment":"1"}, {"id":"83","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"524839","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"84","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"524840","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"85","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"528920","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"86","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"530853","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"87","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"545124","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"88","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"547985","card_type":"creditcard","organization":"MASTER","is_commercial_card":"1","is_support_installment":"1"}, {"id":"89","bank_code":"32","bank_name":"TÜRK EKONOMİ BANKASI A.Ş.","bin_number":"553090","card_type":"creditcard","organization":"MASTER","is_commercial_card":"1","is_support_installment":"1"}, {"id":"92","bank_code":"46","bank_name":"AKBANK T.A.Ş","bin_number":"425669","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"93","bank_code":"46","bank_name":"AKBANK T.A.Ş","bin_number":"432072","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"94","bank_code":"46","bank_name":"AKBANK T.A.Ş","bin_number":"435508","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"95","bank_code":"46","bank_name":"AKBANK T.A.Ş","bin_number":"435509","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"96","bank_code":"46","bank_name":"AKBANK T.A.Ş","bin_number":"512754","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"97","bank_code":"46","bank_name":"AKBANK T.A.Ş","bin_number":"520932","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"98","bank_code":"46","bank_name":"AKBANK T.A.Ş","bin_number":"521807","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"99","bank_code":"46","bank_name":"AKBANK T.A.Ş","bin_number":"522489","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"100","bank_code":"46","bank_name":"AKBANK T.A.Ş","bin_number":"524347","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"101","bank_code":"46","bank_name":"AKBANK T.A.Ş","bin_number":"552608","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"102","bank_code":"46","bank_name":"AKBANK T.A.Ş","bin_number":"552609","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"103","bank_code":"46","bank_name":"AKBANK T.A.Ş","bin_number":"553056","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"104","bank_code":"46","bank_name":"AKBANK T.A.Ş","bin_number":"557113","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"105","bank_code":"46","bank_name":"AKBANK T.A.Ş","bin_number":"557829","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"107","bank_code":"59","bank_name":"ŞEKERBANK T.A.Ş.","bin_number":"403836","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"108","bank_code":"59","bank_name":"ŞEKERBANK T.A.Ş.","bin_number":"411156","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"109","bank_code":"59","bank_name":"ŞEKERBANK T.A.Ş.","bin_number":"411157","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"110","bank_code":"59","bank_name":"ŞEKERBANK T.A.Ş.","bin_number":"411158","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"111","bank_code":"59","bank_name":"ŞEKERBANK T.A.Ş.","bin_number":"411159","card_type":"creditcard","organization":"VISA","is_commercial_card":"1","is_support_installment":"1"}, {"id":"112","bank_code":"59","bank_name":"ŞEKERBANK T.A.Ş.","bin_number":"411160","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"114","bank_code":"59","bank_name":"ŞEKERBANK T.A.Ş.","bin_number":"433383","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"115","bank_code":"59","bank_name":"ŞEKERBANK T.A.Ş.","bin_number":"433384","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"117","bank_code":"59","bank_name":"ŞEKERBANK T.A.Ş.","bin_number":"494063","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"118","bank_code":"59","bank_name":"ŞEKERBANK T.A.Ş.","bin_number":"494064","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"119","bank_code":"59","bank_name":"ŞEKERBANK T.A.Ş.","bin_number":"521394","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"120","bank_code":"59","bank_name":"ŞEKERBANK T.A.Ş.","bin_number":"521827","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"121","bank_code":"59","bank_name":"ŞEKERBANK T.A.Ş.","bin_number":"525404","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"122","bank_code":"59","bank_name":"ŞEKERBANK T.A.Ş.","bin_number":"530866","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"123","bank_code":"59","bank_name":"ŞEKERBANK T.A.Ş.","bin_number":"539703","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"124","bank_code":"59","bank_name":"ŞEKERBANK T.A.Ş.","bin_number":"547311","card_type":"creditcard","organization":"MASTER","is_commercial_card":"1","is_support_installment":"1"}, {"id":"125","bank_code":"59","bank_name":"ŞEKERBANK T.A.Ş.","bin_number":"549208","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"126","bank_code":"59","bank_name":"ŞEKERBANK T.A.Ş.","bin_number":"549394","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"129","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"148569","card_type":"creditcard","organization":"AMEX","is_commercial_card":"0","is_support_installment":"0"}, {"id":"130","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"374421","card_type":"creditcard","organization":"AMEX","is_commercial_card":"1","is_support_installment":"1"}, {"id":"131","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"374422","card_type":"creditcard","organization":"AMEX","is_commercial_card":"0","is_support_installment":"1"}, {"id":"132","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"374424","card_type":"creditcard","organization":"AMEX","is_commercial_card":"0","is_support_installment":"1"}, {"id":"133","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"374425","card_type":"creditcard","organization":"AMEX","is_commercial_card":"1","is_support_installment":"0"}, {"id":"134","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"374426","card_type":"creditcard","organization":"AMEX","is_commercial_card":"1","is_support_installment":"0"}, {"id":"135","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"374427","card_type":"creditcard","organization":"AMEX","is_commercial_card":"0","is_support_installment":"1"}, {"id":"136","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"375622","card_type":"creditcard","organization":"AMEX","is_commercial_card":"0","is_support_installment":"1"}, {"id":"137","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"375623","card_type":"creditcard","organization":"AMEX","is_commercial_card":"0","is_support_installment":"1"}, {"id":"138","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"375624","card_type":"creditcard","organization":"AMEX","is_commercial_card":"0","is_support_installment":"1"}, {"id":"139","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"375625","card_type":"creditcard","organization":"AMEX","is_commercial_card":"0","is_support_installment":"0"}, {"id":"140","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"375626","card_type":"creditcard","organization":"AMEX","is_commercial_card":"0","is_support_installment":"1"}, {"id":"141","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"375627","card_type":"creditcard","organization":"AMEX","is_commercial_card":"0","is_support_installment":"1"}, {"id":"142","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"375628","card_type":"creditcard","organization":"AMEX","is_commercial_card":"0","is_support_installment":"1"}, {"id":"143","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"375629","card_type":"creditcard","organization":"AMEX","is_commercial_card":"0","is_support_installment":"1"}, {"id":"144","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"375631","card_type":"creditcard","organization":"AMEX","is_commercial_card":"0","is_support_installment":"1"}, {"id":"145","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"377137","card_type":"creditcard","organization":"AMEX","is_commercial_card":"1","is_support_installment":"1"}, {"id":"147","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"403280","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"148","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"403666","card_type":"creditcard","organization":"VISA","is_commercial_card":"1","is_support_installment":"1"}, {"id":"149","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"404308","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"154","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"413836","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"157","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"426886","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"158","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"426887","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"159","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"426888","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"161","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"427314","card_type":"creditcard","organization":"VISA","is_commercial_card":"1","is_support_installment":"1"}, {"id":"162","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"427315","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"163","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"428220","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"164","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"428221","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"165","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"428967","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"166","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"428968","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"167","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"432154","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"168","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"448472","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"169","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"461668","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"170","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"462274","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"171","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"467293","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"172","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"467294","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"173","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"467295","card_type":"creditcard","organization":"VISA","is_commercial_card":"1","is_support_installment":"1"}, {"id":"174","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"474151","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"175","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"479323","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"176","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"479324","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"177","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"482489","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"178","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"482490","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"179","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"482491","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"180","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"487074","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"181","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"487075","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"183","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"489478","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"184","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"490175","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"185","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"492186","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"186","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"492187","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"187","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"492193","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"188","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"493845","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"189","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"514915","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"197","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"520097","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"198","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"520922","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"199","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"520940","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"200","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"520988","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"201","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"521824","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"202","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"521825","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"203","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"521832","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"204","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"522204","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"205","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"524659","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"206","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"526955","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"207","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"528939","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"208","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"528956","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"209","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"533169","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"210","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"534261","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"211","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"540036","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"212","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"540037","card_type":"creditcard","organization":"MASTER","is_commercial_card":"1","is_support_installment":"1"}, {"id":"213","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"540118","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"214","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"540226","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"215","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"540227","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"216","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"540669","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"217","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"540709","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"218","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"541815","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"219","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"541858","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"220","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"541865","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"221","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"542030","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"222","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"543738","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"223","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"544078","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"224","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"544294","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"225","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"545102","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"226","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"546001","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"227","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"548935","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"228","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"552095","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"229","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"553130","card_type":"creditcard","organization":"MASTER","is_commercial_card":"1","is_support_installment":"1"}, {"id":"230","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"554796","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"231","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"554960","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"232","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"557023","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"233","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"558699","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"236","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"602970","card_type":"creditcard","organization":"GARANTI","is_commercial_card":"0","is_support_installment":"0"}, {"id":"237","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"603480","card_type":"creditcard","organization":"GARANTI","is_commercial_card":"0","is_support_installment":"1"}, {"id":"238","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"603492","card_type":"creditcard","organization":"GARANTI","is_commercial_card":"0","is_support_installment":"1"}, {"id":"239","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"603614","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"241","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"622403","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"242","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"637074","card_type":"creditcard","organization":"GARANTI","is_commercial_card":"0","is_support_installment":"1"}, {"id":"243","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"642010","card_type":"creditcard","organization":"GARANTI","is_commercial_card":"0","is_support_installment":"1"}, {"id":"244","bank_code":"62","bank_name":"T. GARANTİ BANKASI A.Ş.","bin_number":"642011","card_type":"creditcard","organization":"GARANTI","is_commercial_card":"0","is_support_installment":"1"}, {"id":"252","bank_code":"64","bank_name":"T. İŞ BANKASI A.Ş.","bin_number":"113064","card_type":"creditcard","organization":"AMEX","is_commercial_card":"0","is_support_installment":"0"}, {"id":"253","bank_code":"64","bank_name":"T. İŞ BANKASI A.Ş.","bin_number":"154318","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"254","bank_code":"64","bank_name":"T. İŞ BANKASI A.Ş.","bin_number":"418342","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"255","bank_code":"64","bank_name":"T. İŞ BANKASI A.Ş.","bin_number":"418343","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"256","bank_code":"64","bank_name":"T. İŞ BANKASI A.Ş.","bin_number":"418344","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"257","bank_code":"64","bank_name":"T. İŞ BANKASI A.Ş.","bin_number":"418345","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"259","bank_code":"64","bank_name":"T. İŞ BANKASI A.Ş.","bin_number":"450803","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"261","bank_code":"64","bank_name":"T. İŞ BANKASI A.Ş.","bin_number":"454318","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"262","bank_code":"64","bank_name":"T. İŞ BANKASI A.Ş.","bin_number":"454358","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"263","bank_code":"64","bank_name":"T. İŞ BANKASI A.Ş.","bin_number":"454359","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"264","bank_code":"64","bank_name":"T. İŞ BANKASI A.Ş.","bin_number":"454360","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"265","bank_code":"64","bank_name":"T. İŞ BANKASI A.Ş.","bin_number":"510152","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"266","bank_code":"64","bank_name":"T. İŞ BANKASI A.Ş.","bin_number":"540667","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"267","bank_code":"64","bank_name":"T. İŞ BANKASI A.Ş.","bin_number":"540668","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"268","bank_code":"64","bank_name":"T. İŞ BANKASI A.Ş.","bin_number":"543771","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"269","bank_code":"64","bank_name":"T. İŞ BANKASI A.Ş.","bin_number":"552096","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"273","bank_code":"67","bank_name":"YAPI VE KREDİ BANKASI A.Ş.","bin_number":"404809","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"277","bank_code":"67","bank_name":"YAPI VE KREDİ BANKASI A.Ş.","bin_number":"446212","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"278","bank_code":"67","bank_name":"YAPI VE KREDİ BANKASI A.Ş.","bin_number":"450634","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"279","bank_code":"67","bank_name":"YAPI VE KREDİ BANKASI A.Ş.","bin_number":"455359","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"280","bank_code":"67","bank_name":"YAPI VE KREDİ BANKASI A.Ş.","bin_number":"479794","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"281","bank_code":"67","bank_name":"YAPI VE KREDİ BANKASI A.Ş.","bin_number":"479795","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"283","bank_code":"67","bank_name":"YAPI VE KREDİ BANKASI A.Ş.","bin_number":"491205","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"284","bank_code":"67","bank_name":"YAPI VE KREDİ BANKASI A.Ş.","bin_number":"491206","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"285","bank_code":"67","bank_name":"YAPI VE KREDİ BANKASI A.Ş.","bin_number":"492128","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"286","bank_code":"67","bank_name":"YAPI VE KREDİ BANKASI A.Ş.","bin_number":"492130","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"287","bank_code":"67","bank_name":"YAPI VE KREDİ BANKASI A.Ş.","bin_number":"492131","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"289","bank_code":"67","bank_name":"YAPI VE KREDİ BANKASI A.Ş.","bin_number":"510054","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"290","bank_code":"67","bank_name":"YAPI VE KREDİ BANKASI A.Ş.","bin_number":"540061","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"291","bank_code":"67","bank_name":"YAPI VE KREDİ BANKASI A.Ş.","bin_number":"540062","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"292","bank_code":"67","bank_name":"YAPI VE KREDİ BANKASI A.Ş.","bin_number":"540063","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"293","bank_code":"67","bank_name":"YAPI VE KREDİ BANKASI A.Ş.","bin_number":"540122","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"294","bank_code":"67","bank_name":"YAPI VE KREDİ BANKASI A.Ş.","bin_number":"540129","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"295","bank_code":"67","bank_name":"YAPI VE KREDİ BANKASI A.Ş.","bin_number":"542117","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"296","bank_code":"67","bank_name":"YAPI VE KREDİ BANKASI A.Ş.","bin_number":"545103","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"297","bank_code":"67","bank_name":"YAPI VE KREDİ BANKASI A.Ş.","bin_number":"552645","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"298","bank_code":"67","bank_name":"YAPI VE KREDİ BANKASI A.Ş.","bin_number":"552659","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"304","bank_code":"71","bank_name":"T. DIŞ TİCARET BANKASI A.Ş.","bin_number":"427308","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"305","bank_code":"71","bank_name":"T. DIŞ TİCARET BANKASI A.Ş.","bin_number":"438040","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"307","bank_code":"71","bank_name":"T. DIŞ TİCARET BANKASI A.Ş.","bin_number":"450918","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"308","bank_code":"71","bank_name":"T. DIŞ TİCARET BANKASI A.Ş.","bin_number":"525314","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"309","bank_code":"71","bank_name":"T. DIŞ TİCARET BANKASI A.Ş.","bin_number":"542259","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"310","bank_code":"71","bank_name":"T. DIŞ TİCARET BANKASI A.Ş.","bin_number":"545148","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"311","bank_code":"71","bank_name":"T. DIŞ TİCARET BANKASI A.Ş.","bin_number":"549998","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"312","bank_code":"71","bank_name":"T. DIŞ TİCARET BANKASI A.Ş.","bin_number":"550449","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"313","bank_code":"71","bank_name":"T. DIŞ TİCARET BANKASI A.Ş.","bin_number":"552207","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"317","bank_code":"92","bank_name":"CITIBANK N.A. TÜRKİYE","bin_number":"426391","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"318","bank_code":"92","bank_name":"CITIBANK N.A. TÜRKİYE","bin_number":"450050","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"319","bank_code":"92","bank_name":"CITIBANK N.A. TÜRKİYE","bin_number":"450051","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"321","bank_code":"92","bank_name":"CITIBANK N.A. TÜRKİYE","bin_number":"521376","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"322","bank_code":"92","bank_name":"CITIBANK N.A. TÜRKİYE","bin_number":"544127","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"323","bank_code":"92","bank_name":"CITIBANK N.A. TÜRKİYE","bin_number":"544445","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"324","bank_code":"92","bank_name":"CITIBANK N.A. TÜRKİYE","bin_number":"544460","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"325","bank_code":"92","bank_name":"CITIBANK N.A. TÜRKİYE","bin_number":"549220","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"326","bank_code":"96","bank_name":"TURKISHBANK A.Ş.","bin_number":"419389","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"327","bank_code":"96","bank_name":"TURKISHBANK A.Ş.","bin_number":"518599","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"328","bank_code":"96","bank_name":"TURKISHBANK A.Ş.","bin_number":"529939","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"329","bank_code":"96","bank_name":"TURKISHBANK A.Ş.","bin_number":"552098","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"332","bank_code":"99","bank_name":"ING BANK","bin_number":"400684","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"333","bank_code":"99","bank_name":"ING BANK","bin_number":"408579","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"334","bank_code":"99","bank_name":"ING BANK","bin_number":"414070","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"335","bank_code":"99","bank_name":"ING BANK","bin_number":"420322","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"336","bank_code":"99","bank_name":"ING BANK","bin_number":"420323","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"337","bank_code":"99","bank_name":"ING BANK","bin_number":"420324","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"338","bank_code":"99","bank_name":"ING BANK","bin_number":"455571","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"339","bank_code":"99","bank_name":"ING BANK","bin_number":"480296","card_type":"creditcard","organization":"VISA","is_commercial_card":"1","is_support_installment":"1"}, {"id":"340","bank_code":"99","bank_name":"ING BANK","bin_number":"490805","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"341","bank_code":"99","bank_name":"ING BANK","bin_number":"490806","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"342","bank_code":"99","bank_name":"ING BANK","bin_number":"490807","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"343","bank_code":"99","bank_name":"ING BANK","bin_number":"510151","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"344","bank_code":"99","bank_name":"ING BANK","bin_number":"526973","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"345","bank_code":"99","bank_name":"ING BANK","bin_number":"532443","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"346","bank_code":"99","bank_name":"ING BANK","bin_number":"540024","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"347","bank_code":"99","bank_name":"ING BANK","bin_number":"540025","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"348","bank_code":"99","bank_name":"ING BANK","bin_number":"542029","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"349","bank_code":"99","bank_name":"ING BANK","bin_number":"542605","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"350","bank_code":"99","bank_name":"ING BANK","bin_number":"542965","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"351","bank_code":"99","bank_name":"ING BANK","bin_number":"542967","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"352","bank_code":"99","bank_name":"ING BANK","bin_number":"547765","card_type":"creditcard","organization":"MASTER","is_commercial_card":"1","is_support_installment":"1"}, {"id":"353","bank_code":"99","bank_name":"ING BANK","bin_number":"548819","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"354","bank_code":"99","bank_name":"ING BANK","bin_number":"550074","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"355","bank_code":"99","bank_name":"ING BANK","bin_number":"554297","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"356","bank_code":"99","bank_name":"ING BANK","bin_number":"554570","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"359","bank_code":"103","bank_name":"BANKEUROPA BANKASI A.S.","bin_number":"468973","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"360","bank_code":"103","bank_name":"BANKEUROPA BANKASI A.S.","bin_number":"517601","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"361","bank_code":"103","bank_name":"BANKEUROPA BANKASI A.S.","bin_number":"518679","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"362","bank_code":"103","bank_name":"BANKEUROPA BANKASI A.S.","bin_number":"522075","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"363","bank_code":"103","bank_name":"BANKEUROPA BANKASI A.S.","bin_number":"522566","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"364","bank_code":"103","bank_name":"BANKEUROPA BANKASI A.S.","bin_number":"522576","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"365","bank_code":"103","bank_name":"BANKEUROPA BANKASI A.S.","bin_number":"527765","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"366","bank_code":"103","bank_name":"BANKEUROPA BANKASI A.S.","bin_number":"534913","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"367","bank_code":"103","bank_name":"BANKEUROPA BANKASI A.S.","bin_number":"543624","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"368","bank_code":"103","bank_name":"BANKEUROPA BANKASI A.S.","bin_number":"559056","card_type":"creditcard","organization":"MASTER","is_commercial_card":"1","is_support_installment":"1"}, {"id":"370","bank_code":"108","bank_name":"MNG BANK A.Ş.","bin_number":"548375","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"373","bank_code":"109","bank_name":"TEKSTİLBANK A.Ş.","bin_number":"413729","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"374","bank_code":"109","bank_name":"TEKSTİLBANK A.Ş.","bin_number":"413972","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"376","bank_code":"109","bank_name":"TEKSTİLBANK A.Ş.","bin_number":"456057","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"377","bank_code":"109","bank_name":"TEKSTİLBANK A.Ş.","bin_number":"456059","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"378","bank_code":"109","bank_name":"TEKSTİLBANK A.Ş.","bin_number":"514025","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"379","bank_code":"109","bank_name":"TEKSTİLBANK A.Ş.","bin_number":"521875","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"380","bank_code":"109","bank_name":"TEKSTİLBANK A.Ş.","bin_number":"527080","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"381","bank_code":"109","bank_name":"TEKSTİLBANK A.Ş.","bin_number":"545769","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"382","bank_code":"109","bank_name":"TEKSTİLBANK A.Ş.","bin_number":"545770","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"383","bank_code":"109","bank_name":"TEKSTİLBANK A.Ş.","bin_number":"558634","card_type":"creditcard","organization":"MASTER","is_commercial_card":"1","is_support_installment":"1"}, {"id":"385","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"402277","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"386","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"402563","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"387","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"403032","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"388","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"403082","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"389","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"404952","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"392","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"409364","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"393","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"410147","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"394","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"413583","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"395","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"414388","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"396","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"415565","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"397","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"422376","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"398","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"423277","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"399","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"423398","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"400","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"427311","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"401","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"435653","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"402","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"441007","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"403","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"444029","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"404","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"499852","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"406","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"519324","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"407","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"521022","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"408","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"521836","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"409","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"545120","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"410","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"545616","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"411","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"545847","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"412","bank_code":"111","bank_name":"FİNANSBANK A.Ş.","bin_number":"547800","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"415","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"405913","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"416","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"405917","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"417","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"405918","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"419","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"409071","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"420","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"422629","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"421","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"424909","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"422","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"428240","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"423","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"496019","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"424","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"510005","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"425","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"512651","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"426","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"519399","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"427","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"521045","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"428","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"522054","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"429","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"525413","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"430","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"525795","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"431","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"540643","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"432","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"542254","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"433","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"545183","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"434","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"550472","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"435","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"550473","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"436","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"552143","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"437","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"556030","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"438","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"556031","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"439","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"556033","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"440","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"556034","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"441","bank_code":"123","bank_name":"HSBC BANK A.Ş.","bin_number":"556665","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"444","bank_code":"124","bank_name":"ALTERNATİF BANK A.Ş.","bin_number":"466280","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"445","bank_code":"124","bank_name":"ALTERNATİF BANK A.Ş.","bin_number":"466281","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"446","bank_code":"124","bank_name":"ALTERNATİF BANK A.Ş.","bin_number":"466282","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"447","bank_code":"124","bank_name":"ALTERNATİF BANK A.Ş.","bin_number":"466283","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"448","bank_code":"124","bank_name":"ALTERNATİF BANK A.Ş.","bin_number":"516308","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"449","bank_code":"124","bank_name":"ALTERNATİF BANK A.Ş.","bin_number":"516458","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"450","bank_code":"124","bank_name":"ALTERNATİF BANK A.Ş.","bin_number":"522221","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"451","bank_code":"124","bank_name":"ALTERNATİF BANK A.Ş.","bin_number":"544836","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"452","bank_code":"124","bank_name":"ALTERNATİF BANK A.Ş.","bin_number":"558485","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"454","bank_code":"125","bank_name":"TEKFEN BANK A.Ş.","bin_number":"424407","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"455","bank_code":"125","bank_name":"TEKFEN BANK A.Ş.","bin_number":"483013","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"456","bank_code":"125","bank_name":"TEKFEN BANK A.Ş.","bin_number":"491373","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"457","bank_code":"125","bank_name":"TEKFEN BANK A.Ş.","bin_number":"491374","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"458","bank_code":"125","bank_name":"TEKFEN BANK A.Ş.","bin_number":"498516","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"459","bank_code":"125","bank_name":"TEKFEN BANK A.Ş.","bin_number":"498517","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"460","bank_code":"125","bank_name":"TEKFEN BANK A.Ş.","bin_number":"498518","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"461","bank_code":"125","bank_name":"TEKFEN BANK A.Ş.","bin_number":"498519","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"462","bank_code":"125","bank_name":"TEKFEN BANK A.Ş.","bin_number":"498520","card_type":"creditcard","organization":"VISA","is_commercial_card":"1","is_support_installment":"1"}, {"id":"463","bank_code":"125","bank_name":"TEKFEN BANK A.Ş.","bin_number":"523759","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"464","bank_code":"125","bank_name":"TEKFEN BANK A.Ş.","bin_number":"543943","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"465","bank_code":"125","bank_name":"TEKFEN BANK A.Ş.","bin_number":"543944","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"466","bank_code":"125","bank_name":"TEKFEN BANK A.Ş.","bin_number":"545863","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"467","bank_code":"125","bank_name":"TEKFEN BANK A.Ş.","bin_number":"547680","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"468","bank_code":"125","bank_name":"TEKFEN BANK A.Ş.","bin_number":"548202","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"469","bank_code":"125","bank_name":"TEKFEN BANK A.Ş.","bin_number":"548434","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"470","bank_code":"125","bank_name":"TEKFEN BANK A.Ş.","bin_number":"554034","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"471","bank_code":"125","bank_name":"TEKFEN BANK A.Ş.","bin_number":"558379","card_type":"creditcard","organization":"MASTER","is_commercial_card":"1","is_support_installment":"1"}, {"id":"473","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"113134","card_type":"creditcard","organization":"AMEX","is_commercial_card":"0","is_support_installment":"0"}, {"id":"474","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"370001","card_type":"creditcard","organization":"AMEX","is_commercial_card":"0","is_support_installment":"0"}, {"id":"475","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"403134","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"477","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"408625","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"478","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"409070","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"479","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"411924","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"480","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"423667","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"481","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"424360","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"482","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"424361","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"483","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"441139","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"484","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"460345","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"486","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"460347","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"489","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"472914","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"491","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"489456","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"492","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"489457","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"493","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"489458","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"494","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"510063","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"495","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"510118","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"496","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"510119","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"497","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"512017","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"498","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"512117","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"499","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"514924","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"500","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"515865","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"503","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"520019","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"504","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"520303","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"505","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"520909","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"506","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"543358","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"507","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"543400","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"508","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"543427","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"509","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"546764","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"510","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"554483","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"511","bank_code":"134","bank_name":"DENİZ BANK A.Ş.","bin_number":"558514","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"513","bank_code":"135","bank_name":"ANADOLU BANK A.Ş.","bin_number":"425846","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"514","bank_code":"135","bank_name":"ANADOLU BANK A.Ş.","bin_number":"425847","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"515","bank_code":"135","bank_name":"ANADOLU BANK A.Ş.","bin_number":"425848","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"517","bank_code":"135","bank_name":"ANADOLU BANK A.Ş.","bin_number":"441341","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"518","bank_code":"135","bank_name":"ANADOLU BANK A.Ş.","bin_number":"522240","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"519","bank_code":"135","bank_name":"ANADOLU BANK A.Ş.","bin_number":"522241","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"520","bank_code":"135","bank_name":"ANADOLU BANK A.Ş.","bin_number":"554301","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"521","bank_code":"135","bank_name":"ANADOLU BANK A.Ş.","bin_number":"558593","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"524","bank_code":"203","bank_name":"ALBARAKAR TÜRK ÖZEL FİNANS KURUMU A.Ş.","bin_number":"417715","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"526","bank_code":"203","bank_name":"ALBARAKAR TÜRK ÖZEL FİNANS KURUMU A.Ş.","bin_number":"432284","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"527","bank_code":"203","bank_name":"ALBARAKAR TÜRK ÖZEL FİNANS KURUMU A.Ş.","bin_number":"432285","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"528","bank_code":"203","bank_name":"ALBARAKAR TÜRK ÖZEL FİNANS KURUMU A.Ş.","bin_number":"527234","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"529","bank_code":"203","bank_name":"ALBARAKAR TÜRK ÖZEL FİNANS KURUMU A.Ş.","bin_number":"534264","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"530","bank_code":"203","bank_name":"ALBARAKAR TÜRK ÖZEL FİNANS KURUMU A.Ş.","bin_number":"547234","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"531","bank_code":"203","bank_name":"ALBARAKAR TÜRK ÖZEL FİNANS KURUMU A.Ş.","bin_number":"548232","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"533","bank_code":"205","bank_name":"KUVEYT TÜRK EVKAF FİNANS KURUMU","bin_number":"402589","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"534","bank_code":"205","bank_name":"KUVEYT TÜRK EVKAF FİNANS KURUMU","bin_number":"402590","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"536","bank_code":"205","bank_name":"KUVEYT TÜRK EVKAF FİNANS KURUMU","bin_number":"402592","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"537","bank_code":"205","bank_name":"KUVEYT TÜRK EVKAF FİNANS KURUMU","bin_number":"403360","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"538","bank_code":"205","bank_name":"KUVEYT TÜRK EVKAF FİNANS KURUMU","bin_number":"403810","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"539","bank_code":"205","bank_name":"KUVEYT TÜRK EVKAF FİNANS KURUMU","bin_number":"410555","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"540","bank_code":"205","bank_name":"KUVEYT TÜRK EVKAF FİNANS KURUMU","bin_number":"410556","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"541","bank_code":"205","bank_name":"KUVEYT TÜRK EVKAF FİNANS KURUMU","bin_number":"424487","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"542","bank_code":"205","bank_name":"KUVEYT TÜRK EVKAF FİNANS KURUMU","bin_number":"431024","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"543","bank_code":"205","bank_name":"KUVEYT TÜRK EVKAF FİNANS KURUMU","bin_number":"512595","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"544","bank_code":"205","bank_name":"KUVEYT TÜRK EVKAF FİNANS KURUMU","bin_number":"518896","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"545","bank_code":"205","bank_name":"KUVEYT TÜRK EVKAF FİNANS KURUMU","bin_number":"520180","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"546","bank_code":"205","bank_name":"KUVEYT TÜRK EVKAF FİNANS KURUMU","bin_number":"525312","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"547","bank_code":"205","bank_name":"KUVEYT TÜRK EVKAF FİNANS KURUMU","bin_number":"547564","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"549","bank_code":"206","bank_name":"TFKB","bin_number":"411685","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"550","bank_code":"206","bank_name":"TFKB","bin_number":"428462","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"1"}, {"id":"551","bank_code":"206","bank_name":"TFKB","bin_number":"435627","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"552","bank_code":"206","bank_name":"TFKB","bin_number":"435628","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"554","bank_code":"206","bank_name":"TFKB","bin_number":"490808","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"555","bank_code":"206","bank_name":"TFKB","bin_number":"512360","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"556","bank_code":"206","bank_name":"TFKB","bin_number":"521848","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"557","bank_code":"206","bank_name":"TFKB","bin_number":"528293","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"558","bank_code":"206","bank_name":"TFKB","bin_number":"537719","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"559","bank_code":"206","bank_name":"TFKB","bin_number":"549294","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"561","bank_code":"208","bank_name":"ASYA FINANS KURUMU","bin_number":"402275","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"562","bank_code":"208","bank_name":"ASYA FINANS KURUMU","bin_number":"402276","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"563","bank_code":"208","bank_name":"ASYA FINANS KURUMU","bin_number":"402280","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"566","bank_code":"208","bank_name":"ASYA FINANS KURUMU","bin_number":"416987","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"567","bank_code":"208","bank_name":"ASYA FINANS KURUMU","bin_number":"441033","card_type":"creditcard","organization":"VISA","is_commercial_card":"0","is_support_installment":"0"}, {"id":"568","bank_code":"208","bank_name":"ASYA FINANS KURUMU","bin_number":"515849","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"569","bank_code":"208","bank_name":"ASYA FINANS KURUMU","bin_number":"524384","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"570","bank_code":"208","bank_name":"ASYA FINANS KURUMU","bin_number":"527585","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"571","bank_code":"208","bank_name":"ASYA FINANS KURUMU","bin_number":"529462","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"572","bank_code":"208","bank_name":"ASYA FINANS KURUMU","bin_number":"531334","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"573","bank_code":"208","bank_name":"ASYA FINANS KURUMU","bin_number":"552529","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"0"}, {"id":"576","bank_code":"900","bank_name":"AKK TURİZM VE TİCARET A.Ş.","bin_number":"512446","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"577","bank_code":"900","bank_name":"AKK TURİZM VE TİCARET A.Ş.","bin_number":"539605","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"578","bank_code":"900","bank_name":"AKK TURİZM VE TİCARET A.Ş.","bin_number":"549938","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"579","bank_code":"900","bank_name":"AKK TURİZM VE TİCARET A.Ş.","bin_number":"554566","card_type":"creditcard","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1292","bank_code":"46","bank_name":"AKBANK\n","bin_number":"0","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1293","bank_code":"46","bank_name":"AKBANK\n","bin_number":"432071","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1296","bank_code":"46","bank_name":"AKBANK\n","bin_number":"493837","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1302","bank_code":"46","bank_name":"AKBANK\n","bin_number":"542110","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1305","bank_code":"46","bank_name":"AKBANK\n","bin_number":"979206","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1306","bank_code":"46","bank_name":"AKBANK\n","bin_number":"979207","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1308","bank_code":"0","bank_name":"AKK\n","bin_number":"492192","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1311","bank_code":"0","bank_name":"AKK\n","bin_number":"528823","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1315","bank_code":"22","bank_name":"AKTİF BANK\n","bin_number":"532813","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1316","bank_code":"22","bank_name":"AKTİF BANK\n","bin_number":"534563","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1317","bank_code":"22","bank_name":"AKTİF BANK\n","bin_number":"535843","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1318","bank_code":"22","bank_name":"AKTİF BANK\n","bin_number":"581877","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1323","bank_code":"203","bank_name":"ALBARAKA\n","bin_number":"511583","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1324","bank_code":"203","bank_name":"ALBARAKA\n","bin_number":"533796","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1326","bank_code":"203","bank_name":"ALBARAKA\n","bin_number":"979226","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1328","bank_code":"124","bank_name":"ALTERNATİF BANK\n","bin_number":"365770","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1329","bank_code":"124","bank_name":"ALTERNATİF BANK\n","bin_number":"365771","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1330","bank_code":"124","bank_name":"ALTERNATİF BANK\n","bin_number":"365772","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1331","bank_code":"124","bank_name":"ALTERNATİF BANK\n","bin_number":"365773","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1332","bank_code":"124","bank_name":"ALTERNATİF BANK\n","bin_number":"366570","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1334","bank_code":"124","bank_name":"ALTERNATİF BANK\n","bin_number":"654997","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1336","bank_code":"124","bank_name":"ALTERNATİF BANK\n","bin_number":"979228","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1338","bank_code":"135","bank_name":"ANADOLU BANK\n","bin_number":"535881","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1344","bank_code":"208","bank_name":"BANK ASYA\n","bin_number":"477206","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1345","bank_code":"208","bank_name":"BANK ASYA\n","bin_number":"533149","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1346","bank_code":"208","bank_name":"BANK ASYA\n","bin_number":"547799","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1350","bank_code":"0","bank_name":"BURGAN BANK\n","bin_number":"498521","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1352","bank_code":"92","bank_name":"CITIBANK\n","bin_number":"437897","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1353","bank_code":"92","bank_name":"CITIBANK\n","bin_number":"471509","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1354","bank_code":"92","bank_name":"CITIBANK\n","bin_number":"547164","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1355","bank_code":"92","bank_name":"CITIBANK\n","bin_number":"553493","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1356","bank_code":"92","bank_name":"CITIBANK\n","bin_number":"555087","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1358","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"410105","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1359","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"411769","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1361","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"462448","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1362","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"462449","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1363","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"462721","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1365","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"472915","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1368","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"489989","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1370","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"512018","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1375","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"522517","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1376","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"523515","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1378","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"529876","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1380","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"533330","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1381","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"539969","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1382","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"548896","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1383","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"548943","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1384","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"549839","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1385","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"552679","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1386","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"554427","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1387","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"554958","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1388","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"558443","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1389","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"558446","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1390","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"558448","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1391","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"558460","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1393","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"637165","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1396","bank_code":"134","bank_name":"DENİZBANK\n","bin_number":"979220","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1400","bank_code":"0","bank_name":"FIBABANKA\n","bin_number":"979225","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1401","bank_code":"111","bank_name":"FİNANSBANK\n","bin_number":"401072","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1402","bank_code":"111","bank_name":"FİNANSBANK\n","bin_number":"402278","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1407","bank_code":"111","bank_name":"FİNANSBANK\n","bin_number":"442395","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1410","bank_code":"111","bank_name":"FİNANSBANK\n","bin_number":"499850","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1411","bank_code":"111","bank_name":"FİNANSBANK\n","bin_number":"499851","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1415","bank_code":"111","bank_name":"FİNANSBANK\n","bin_number":"526911","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1416","bank_code":"111","bank_name":"FİNANSBANK\n","bin_number":"529572","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1417","bank_code":"111","bank_name":"FİNANSBANK\n","bin_number":"530818","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1418","bank_code":"111","bank_name":"FİNANSBANK\n","bin_number":"531157","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1419","bank_code":"111","bank_name":"FİNANSBANK\n","bin_number":"542404","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1420","bank_code":"111","bank_name":"FİNANSBANK\n","bin_number":"547567","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1424","bank_code":"111","bank_name":"FİNANSBANK\n","bin_number":"979203","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1436","bank_code":"62","bank_name":"GARANTİ\n","bin_number":"517040","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1441","bank_code":"62","bank_name":"GARANTİ\n","bin_number":"521368","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1442","bank_code":"62","bank_name":"GARANTİ\n","bin_number":"547302","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1443","bank_code":"62","bank_name":"GARANTİ\n","bin_number":"554253","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1446","bank_code":"62","bank_name":"GARANTİ\n","bin_number":"605036","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1452","bank_code":"62","bank_name":"GARANTİ\n","bin_number":"979205","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1463","bank_code":"12","bank_name":"HALKBANK\n","bin_number":"979210","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1465","bank_code":"12","bank_name":"HALKBANK\n","bin_number":"979244","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1467","bank_code":"123","bank_name":"HSBC BANK\n","bin_number":"408969","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1470","bank_code":"123","bank_name":"HSBC BANK\n","bin_number":"979214","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1473","bank_code":"0","bank_name":"ICBC TURKEY\n","bin_number":"979239","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1474","bank_code":"99","bank_name":"ING BANK\n","bin_number":"401027","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1480","bank_code":"99","bank_name":"ING BANK\n","bin_number":"514140","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1482","bank_code":"99","bank_name":"ING BANK\n","bin_number":"517946","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1483","bank_code":"99","bank_name":"ING BANK\n","bin_number":"526975","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1484","bank_code":"99","bank_name":"ING BANK\n","bin_number":"531401","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1486","bank_code":"99","bank_name":"ING BANK\n","bin_number":"550478","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1491","bank_code":"99","bank_name":"ING BANK\n","bin_number":"979224","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1496","bank_code":"64","bank_name":"İŞ BANKASI\n","bin_number":"479610","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1501","bank_code":"64","bank_name":"İŞ BANKASI\n","bin_number":"548237","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1502","bank_code":"64","bank_name":"İŞ BANKASI\n","bin_number":"553058","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1505","bank_code":"64","bank_name":"İŞ BANKASI\n","bin_number":"979204","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1508","bank_code":"205","bank_name":"KUVEYT TÜRK\n","bin_number":"483673","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1509","bank_code":"205","bank_name":"KUVEYT TÜRK\n","bin_number":"511660","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1510","bank_code":"205","bank_name":"KUVEYT TÜRK\n","bin_number":"527083","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1519","bank_code":"18","bank_name":"ODEABANK\n","bin_number":"468793","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1521","bank_code":"18","bank_name":"ODEABANK\n","bin_number":"469180","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1522","bank_code":"18","bank_name":"ODEABANK\n","bin_number":"469181","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1523","bank_code":"18","bank_name":"ODEABANK\n","bin_number":"469182","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1524","bank_code":"18","bank_name":"ODEABANK\n","bin_number":"469183","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1526","bank_code":"18","bank_name":"ODEABANK\n","bin_number":"519007","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1527","bank_code":"18","bank_name":"ODEABANK\n","bin_number":"519261","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1528","bank_code":"18","bank_name":"ODEABANK\n","bin_number":"522347","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1529","bank_code":"18","bank_name":"ODEABANK\n","bin_number":"522356","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1530","bank_code":"18","bank_name":"ODEABANK\n","bin_number":"522362","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1531","bank_code":"18","bank_name":"ODEABANK\n","bin_number":"523416","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1532","bank_code":"18","bank_name":"ODEABANK\n","bin_number":"524677","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1533","bank_code":"18","bank_name":"ODEABANK\n","bin_number":"526952","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1534","bank_code":"18","bank_name":"ODEABANK\n","bin_number":"527369","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1535","bank_code":"18","bank_name":"ODEABANK\n","bin_number":"527383","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1536","bank_code":"18","bank_name":"ODEABANK\n","bin_number":"527396","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1537","bank_code":"18","bank_name":"ODEABANK\n","bin_number":"536255","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1539","bank_code":"18","bank_name":"ODEABANK\n","bin_number":"979219","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1544","bank_code":"59","bank_name":"ŞEKERBANK\n","bin_number":"409622","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1547","bank_code":"59","bank_name":"ŞEKERBANK\n","bin_number":"459268","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1549","bank_code":"59","bank_name":"ŞEKERBANK\n","bin_number":"510010","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1551","bank_code":"59","bank_name":"ŞEKERBANK\n","bin_number":"519753","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1557","bank_code":"0","bank_name":"T-BANK\n","bin_number":"979231","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1560","bank_code":"32","bank_name":"TEB\n","bin_number":"404350","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1562","bank_code":"32","bank_name":"TEB\n","bin_number":"416350","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1566","bank_code":"32","bank_name":"TEB\n","bin_number":"455645","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1567","bank_code":"32","bank_name":"TEB\n","bin_number":"469188","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1568","bank_code":"32","bank_name":"TEB\n","bin_number":"489494","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1569","bank_code":"32","bank_name":"TEB\n","bin_number":"512753","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1572","bank_code":"32","bank_name":"TEB\n","bin_number":"531531","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1573","bank_code":"32","bank_name":"TEB\n","bin_number":"534538","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1577","bank_code":"32","bank_name":"TEB\n","bin_number":"979223","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1580","bank_code":"555","bank_name":"TÜRKİYE FİNANS\n","bin_number":"400742","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1581","bank_code":"555","bank_name":"TÜRKİYE FİNANS\n","bin_number":"424927","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1583","bank_code":"555","bank_name":"TÜRKİYE FİNANS\n","bin_number":"441206","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1584","bank_code":"555","bank_name":"TÜRKİYE FİNANS\n","bin_number":"470954","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1585","bank_code":"555","bank_name":"TÜRKİYE FİNANS\n","bin_number":"479915","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1586","bank_code":"555","bank_name":"TÜRKİYE FİNANS\n","bin_number":"479916","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1587","bank_code":"555","bank_name":"TÜRKİYE FİNANS\n","bin_number":"479917","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1588","bank_code":"555","bank_name":"TÜRKİYE FİNANS\n","bin_number":"498724","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1589","bank_code":"555","bank_name":"TÜRKİYE FİNANS\n","bin_number":"498725","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1590","bank_code":"555","bank_name":"TÜRKİYE FİNANS\n","bin_number":"511758","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1591","bank_code":"555","bank_name":"TÜRKİYE FİNANS\n","bin_number":"511783","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1592","bank_code":"555","bank_name":"TÜRKİYE FİNANS\n","bin_number":"552610","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1598","bank_code":"0","bank_name":"VAKIF KATILIM\n","bin_number":"979230","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1600","bank_code":"15","bank_name":"VAKIFBANK\n","bin_number":"442671","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1601","bank_code":"15","bank_name":"VAKIFBANK\n","bin_number":"479909","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1611","bank_code":"67","bank_name":"YAPI KREDİ\n","bin_number":"476625","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1612","bank_code":"67","bank_name":"YAPI KREDİ\n","bin_number":"476626","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1613","bank_code":"67","bank_name":"YAPI KREDİ\n","bin_number":"477959","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1618","bank_code":"67","bank_name":"YAPI KREDİ\n","bin_number":"525864","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1619","bank_code":"67","bank_name":"YAPI KREDİ\n","bin_number":"533913","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1621","bank_code":"67","bank_name":"YAPI KREDİ\n","bin_number":"554422","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1631","bank_code":"10","bank_name":"ZİRAAT BANKASI\n","bin_number":"454674","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1632","bank_code":"10","bank_name":"ZİRAAT BANKASI\n","bin_number":"469884","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1637","bank_code":"10","bank_name":"ZİRAAT BANKASI\n","bin_number":"523529","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1639","bank_code":"10","bank_name":"ZİRAAT BANKASI\n","bin_number":"530905","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1647","bank_code":"10","bank_name":"ZİRAAT KATILIM","bin_number":"979221","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1648","bank_code":"10","bank_name":"Ziraat","bin_number":"404591","card_type":"creditcard","organization":"ZİRAAT","is_commercial_card":"1","is_support_installment":"1"}, {"id":"1649","bank_code":"10","bank_name":"Ziraat","bin_number":"511885","card_type":"creditcart","organization":"MASTER","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1650","bank_code":"10","bank_name":"ZİRAAT","bin_number":"513662","card_type":"","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1651","bank_code":"10","bank_name":"ZİRAAT","bin_number":"549449","card_type":"creditcart","organization":"","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1652","bank_code":"64","bank_name":"İş bankası","bin_number":"650987","card_type":"","organization":"TROY","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1653","bank_code":"64","bank_name":"İş bankası","bin_number":"650173","card_type":"creditcart","organization":"TROY","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1654","bank_code":"15","bank_name":"VAKIFBANK","bin_number":"650170","card_type":"cc","organization":"TROY","is_commercial_card":"0","is_support_installment":"1"}, {"id":"1655","bank_code":"67","bank_name":"YAPI KREDİ","bin_number":"650161","card_type":"cc","organization":"TORY","is_commercial_card":"0","is_support_installment":"1"}] diff --git a/moka-opencart-3.0/catalog/view/javascript/moka_payment/card.js b/moka-opencart-3.0/catalog/view/javascript/moka_payment/card.js new file mode 100644 index 0000000..5940969 --- /dev/null +++ b/moka-opencart-3.0/catalog/view/javascript/moka_payment/card.js @@ -0,0 +1,2533 @@ +var card = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ exports: {}, +/******/ id: moduleId, +/******/ loaded: false +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.loaded = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(0); +/******/ }) +/************************************************************************/ +/******/ ([ +/* 0 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(global) {var Card, QJ, extend, payment, + bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; + + __webpack_require__(1); + + QJ = __webpack_require__(5); + + payment = __webpack_require__(6); + + extend = __webpack_require__(7); + + Card = (function() { + var bindVal; + + Card.prototype.initializedDataAttr = "data-jp-card-initialized"; + + Card.prototype.cardTemplate = '' + ''; + + Card.prototype.template = function(tpl, data) { + return tpl.replace(/\{\{(.*?)\}\}/g, function(match, key, str) { + return data[key]; + }); + }; + + Card.prototype.cardTypes = ['jp-card-amex', 'jp-card-dankort', 'jp-card-dinersclub', 'jp-card-discover', 'jp-card-jcb', 'jp-card-laser', 'jp-card-maestro', 'jp-card-mastercard', 'jp-card-unionpay', 'jp-card-visa', 'jp-card-visaelectron', 'jp-card-elo']; + + Card.prototype.defaults = { + formatting: true, + formSelectors: { + numberInput: 'input[name="number"]', + expiryInput: 'input[name="expiry"]', + cvcInput: 'input[name="cvc"]', + nameInput: 'input[name="name"]' + }, + cardSelectors: { + cardContainer: '.jp-card-container', + card: '.jp-card', + numberDisplay: '.jp-card-number', + expiryDisplay: '.jp-card-expiry', + cvcDisplay: '.jp-card-cvc', + nameDisplay: '.jp-card-name' + }, + messages: { + validDate: 'valid\nthru', + monthYear: 'Ay/Yıl' + }, + placeholders: { + number: '•••• •••• •••• ••••', + cvc: '•••', + expiry: '••/••', + name: 'İSİM SOYİSİM' + }, + masks: { + cardNumber: false + }, + classes: { + valid: 'jp-card-valid', + invalid: 'jp-card-invalid' + }, + debug: false + }; + + function Card(opts) { + this.maskCardNumber = bind(this.maskCardNumber, this); + var toInitialize; + this.options = extend(true, this.defaults, opts); + if (!this.options.form) { + console.log("Please provide a form"); + return; + } + this.$el = QJ(this.options.form); + if (!this.options.container) { + console.log("Please provide a container"); + return; + } + this.$container = QJ(this.options.container); + toInitialize = QJ.isDOMElement(this.$container) ? this.$container : this.$container[0]; + if (toInitialize.getAttribute(this.initializedDataAttr)) { + return; + } + toInitialize.setAttribute(this.initializedDataAttr, true); + this.render(); + this.attachHandlers(); + this.handleInitialPlaceholders(); + } + + Card.prototype.render = function() { + var $cardContainer, baseWidth, name, obj, ref, ref1, selector, ua; + QJ.append(this.$container, this.template(this.cardTemplate, extend({}, this.options.messages, this.options.placeholders))); + ref = this.options.cardSelectors; + for (name in ref) { + selector = ref[name]; + this["$" + name] = QJ.find(this.$container, selector); + } + ref1 = this.options.formSelectors; + for (name in ref1) { + selector = ref1[name]; + selector = this.options[name] ? this.options[name] : selector; + obj = QJ.find(this.$el, selector); + if (!obj.length && this.options.debug) { + console.error("Card can't find a " + name + " in your form."); + } + this["$" + name] = obj; + } + if (this.options.formatting) { + Payment.formatCardNumber(this.$numberInput); + Payment.formatCardCVC(this.$cvcInput); + Payment.formatCardExpiry(this.$expiryInput); + } + if (this.options.width) { + $cardContainer = QJ(this.options.cardSelectors.cardContainer)[0]; + baseWidth = parseInt($cardContainer.clientWidth || window.getComputedStyle($cardContainer).width); + $cardContainer.style.transform = "scale(" + (this.options.width / baseWidth) + ")"; + } + if (typeof navigator !== "undefined" && navigator !== null ? navigator.userAgent : void 0) { + ua = navigator.userAgent.toLowerCase(); + if (ua.indexOf('safari') !== -1 && ua.indexOf('chrome') === -1) { + QJ.addClass(this.$card, 'jp-card-safari'); + } + } + if (/MSIE 10\./i.test(navigator.userAgent)) { + QJ.addClass(this.$card, 'jp-card-ie-10'); + } + if (/rv:11.0/i.test(navigator.userAgent)) { + return QJ.addClass(this.$card, 'jp-card-ie-11'); + } + }; + + Card.prototype.attachHandlers = function() { + var expiryFilters, numberInputFilters; + numberInputFilters = [this.validToggler('cardNumber')]; + if (this.options.masks.cardNumber) { + numberInputFilters.push(this.maskCardNumber); + } + bindVal(this.$numberInput, this.$numberDisplay, { + fill: false, + filters: numberInputFilters + }); + QJ.on(this.$numberInput, 'payment.cardType', this.handle('setCardType')); + expiryFilters = [ + function(val) { + return val.replace(/(\s+)/g, ''); + } + ]; + expiryFilters.push(this.validToggler('cardExpiry')); + bindVal(this.$expiryInput, this.$expiryDisplay, { + join: function(text) { + if (text[0].length === 2 || text[1]) { + return "/"; + } else { + return ""; + } + }, + filters: expiryFilters + }); + bindVal(this.$cvcInput, this.$cvcDisplay, { + filters: this.validToggler('cardCVC') + }); + QJ.on(this.$cvcInput, 'focus', this.handle('flipCard')); + QJ.on(this.$cvcInput, 'blur', this.handle('unflipCard')); + return bindVal(this.$nameInput, this.$nameDisplay, { + fill: false, + filters: this.validToggler('cardHolderName'), + join: ' ' + }); + }; + + Card.prototype.handleInitialPlaceholders = function() { + var el, name, ref, results, selector; + ref = this.options.formSelectors; + results = []; + for (name in ref) { + selector = ref[name]; + el = this["$" + name]; + if (QJ.val(el)) { + QJ.trigger(el, 'paste'); + results.push(setTimeout(function() { + return QJ.trigger(el, 'keyup'); + })); + } else { + results.push(void 0); + } + } + return results; + }; + + Card.prototype.handle = function(fn) { + return (function(_this) { + return function(e) { + var args; + args = Array.prototype.slice.call(arguments); + args.unshift(e.target); + return _this.handlers[fn].apply(_this, args); + }; + })(this); + }; + + Card.prototype.validToggler = function(validatorName) { + var isValid; + if (validatorName === "cardExpiry") { + isValid = function(val) { + var objVal; + objVal = Payment.fns.cardExpiryVal(val); + return Payment.fns.validateCardExpiry(objVal.month, objVal.year); + }; + } else if (validatorName === "cardCVC") { + isValid = (function(_this) { + return function(val) { + return Payment.fns.validateCardCVC(val, _this.cardType); + }; + })(this); + } else if (validatorName === "cardNumber") { + isValid = function(val) { + return Payment.fns.validateCardNumber(val); + }; + } else if (validatorName === "cardHolderName") { + isValid = function(val) { + return val !== ""; + }; + } + return (function(_this) { + return function(val, $in, $out) { + var result; + result = isValid(val); + _this.toggleValidClass($in, result); + _this.toggleValidClass($out, result); + return val; + }; + })(this); + }; + + Card.prototype.toggleValidClass = function(el, test) { + QJ.toggleClass(el, this.options.classes.valid, test); + return QJ.toggleClass(el, this.options.classes.invalid, !test); + }; + + Card.prototype.maskCardNumber = function(val, el, out) { + var mask, numbers; + mask = this.options.masks.cardNumber; + numbers = val.split(' '); + if (numbers.length >= 3) { + numbers.forEach(function(item, idx) { + if (idx !== numbers.length - 1) { + return numbers[idx] = numbers[idx].replace(/\d/g, mask); + } + }); + return numbers.join(' '); + } else { + return val.replace(/\d/g, mask); + } + }; + + Card.prototype.handlers = { + setCardType: function($el, e) { + var cardType; + cardType = e.data; + if (!QJ.hasClass(this.$card, cardType)) { + QJ.removeClass(this.$card, 'jp-card-unknown'); + QJ.removeClass(this.$card, this.cardTypes.join(' ')); + QJ.addClass(this.$card, "jp-card-" + cardType); + QJ.toggleClass(this.$card, 'jp-card-identified', cardType !== 'unknown'); + return this.cardType = cardType; + } + }, + flipCard: function() { + return QJ.addClass(this.$card, 'jp-card-flipped'); + }, + unflipCard: function() { + return QJ.removeClass(this.$card, 'jp-card-flipped'); + } + }; + + bindVal = function(el, out, opts) { + var joiner, o, outDefaults; + if (opts == null) { + opts = {}; + } + opts.fill = opts.fill || false; + opts.filters = opts.filters || []; + if (!(opts.filters instanceof Array)) { + opts.filters = [opts.filters]; + } + opts.join = opts.join || ""; + if (!(typeof opts.join === "function")) { + joiner = opts.join; + opts.join = function() { + return joiner; + }; + } + outDefaults = (function() { + var j, len, results; + results = []; + for (j = 0, len = out.length; j < len; j++) { + o = out[j]; + results.push(o.textContent); + } + return results; + })(); + QJ.on(el, 'focus', function() { + return QJ.addClass(out, 'jp-card-focused'); + }); + QJ.on(el, 'blur', function() { + return QJ.removeClass(out, 'jp-card-focused'); + }); + QJ.on(el, 'keyup change paste', function(e) { + var elem, filter, i, j, join, k, len, len1, outEl, outVal, ref, results, val; + val = (function() { + var j, len, results; + results = []; + for (j = 0, len = el.length; j < len; j++) { + elem = el[j]; + results.push(QJ.val(elem)); + } + return results; + })(); + join = opts.join(val); + val = val.join(join); + if (val === join) { + val = ""; + } + ref = opts.filters; + for (j = 0, len = ref.length; j < len; j++) { + filter = ref[j]; + val = filter(val, el, out); + } + results = []; + for (i = k = 0, len1 = out.length; k < len1; i = ++k) { + outEl = out[i]; + if (opts.fill) { + outVal = val + outDefaults[i].substring(val.length); + } else { + outVal = val || outDefaults[i]; + } + results.push(outEl.textContent = outVal); + } + return results; + }); + return el; + }; + + return Card; + + })(); + + module.exports = Card; + + global.Card = Card; + + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) + +/***/ }), +/* 1 */ +/***/ (function(module, exports, __webpack_require__) { + + // style-loader: Adds some css to the DOM by adding a + + + + + + + diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/bonus.svg b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/bonus.svg new file mode 100644 index 0000000..84c02f7 --- /dev/null +++ b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/bonus.svg @@ -0,0 +1,63 @@ + + + + + + + + + + +bonus + + + + + + + + + + + + + + + + diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/cardfinans.svg b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/cardfinans.svg new file mode 100644 index 0000000..94f4bab --- /dev/null +++ b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/cardfinans.svg @@ -0,0 +1,40 @@ + + + + + + + + + + diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/cards.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/cards.png new file mode 100644 index 0000000..e859347 Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/cards.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/cvc-help.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/cvc-help.png new file mode 100644 index 0000000..ac8f190 Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/cvc-help.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icon_calle.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icon_calle.png new file mode 100644 index 0000000..61cb2b4 Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icon_calle.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icon_credit_card.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icon_credit_card.png new file mode 100644 index 0000000..282b4a0 Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icon_credit_card.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icon_cvc.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icon_cvc.png new file mode 100644 index 0000000..5c557d1 Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icon_cvc.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icon_user.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icon_user.png new file mode 100644 index 0000000..2404180 Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icon_user.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/facebook.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/facebook.png new file mode 100644 index 0000000..8305811 Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/facebook.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/github.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/github.png new file mode 100644 index 0000000..92600cc Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/github.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/google.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/google.png new file mode 100644 index 0000000..ac76e2f Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/google.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/icon_clock.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/icon_clock.png new file mode 100644 index 0000000..8d0ec6d Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/icon_clock.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/icon_cogs.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/icon_cogs.png new file mode 100644 index 0000000..75f12c0 Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/icon_cogs.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/icon_credit_card.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/icon_credit_card.png new file mode 100644 index 0000000..d35e5e2 Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/icon_credit_card.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/icon_exchange.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/icon_exchange.png new file mode 100644 index 0000000..3ededd6 Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/icon_exchange.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/icon_money.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/icon_money.png new file mode 100644 index 0000000..924ba97 Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/icon_money.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/icon_visa_mastercard.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/icon_visa_mastercard.png new file mode 100644 index 0000000..ce927ea Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/icon_visa_mastercard.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/info.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/info.png new file mode 100644 index 0000000..9a33665 Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/info.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/instagram.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/instagram.png new file mode 100644 index 0000000..2254c05 Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/instagram.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/linkedin.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/linkedin.png new file mode 100644 index 0000000..80a5159 Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/linkedin.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/mastercard.svg b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/mastercard.svg new file mode 100644 index 0000000..ad34818 --- /dev/null +++ b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/mastercard.svg @@ -0,0 +1,31 @@ + + + + Slice 1 + Created with Sketch. + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/twitter.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/twitter.png new file mode 100644 index 0000000..a4ca9ab Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/twitter.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/visa.svg b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/visa.svg new file mode 100644 index 0000000..16e687c --- /dev/null +++ b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/visa.svg @@ -0,0 +1,17 @@ + + + + Slice 1 + Created with Sketch. + + + + + + + + + + + + \ No newline at end of file diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/web.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/web.png new file mode 100644 index 0000000..7d885a7 Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/web.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/wordpress.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/wordpress.png new file mode 100644 index 0000000..1c4de67 Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/wordpress.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/youtube.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/youtube.png new file mode 100644 index 0000000..ea36283 Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/icons/youtube.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/kahvedigital-help.jpg b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/kahvedigital-help.jpg new file mode 100644 index 0000000..3bfdaac Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/kahvedigital-help.jpg differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/kahvedigital.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/kahvedigital.png new file mode 100644 index 0000000..d802469 Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/kahvedigital.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/logo.png b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/logo.png new file mode 100644 index 0000000..7c2fda4 Binary files /dev/null and b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/logo.png differ diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/maximum.svg b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/maximum.svg new file mode 100644 index 0000000..b1f2e0f --- /dev/null +++ b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/maximum.svg @@ -0,0 +1,44 @@ + + + + + + + + diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/paraf.svg b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/paraf.svg new file mode 100644 index 0000000..b3b54ef --- /dev/null +++ b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/paraf.svg @@ -0,0 +1,34 @@ + + + + + + diff --git a/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/world.svg b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/world.svg new file mode 100644 index 0000000..eb00e9b --- /dev/null +++ b/moka-opencart-3.0/catalog/view/theme/default/image/moka_payment/world.svg @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/moka-opencart-3.0/catalog/view/theme/default/template/extension/payment/moka_payment.twig b/moka-opencart-3.0/catalog/view/theme/default/template/extension/payment/moka_payment.twig new file mode 100644 index 0000000..d5c3197 --- /dev/null +++ b/moka-opencart-3.0/catalog/view/theme/default/template/extension/payment/moka_payment.twig @@ -0,0 +1,326 @@ + + + + + +
+
+
+ + + +
+ +
+

Ödeme Formu

+
+ +
+
+ +
+ + + +
+ +
+ + +
+ + +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+ +
+ +
  • + + +
    {{showtotal}}
    +
    +
  • + +
    + + + {% if installments_mode == 'ON' %} + + +

    Taksit Seçenekleri

    + +
    + {% for bank,rate in rates %} + + {% if (rates[bank]['active'] == 1) %} + + + + {% endif %} + {% endfor %} +
    + + {% endif %} +
    +
    +
    + + {% if installments_mode == 'ON' %} + +
    + {% for bank, rate in rates %} + + +
    +
    + {% set ins = 1 %}{% for ins in ins..13 %} + + + +{% for banks,rate in rates %} + {% if (bank == banks) %} + {% if rates[bank]['active'] == 1 %} + + {% if rates[banks]['installments'][ins]['active'] %} + + +
  • + + +
    {{ rates[banks]['installments'][ins]['total'] }} / {{ rates[banks]['installments'][ins]['monthly'] }}
    +
    +
  • + + {% endif %} + + {% endif %} + + {% endif %} + {% endfor %} + + {% endfor %} + + + + +
    + + + {% endfor %} +
    + + {% endif %} + + + + +
    + + +
    +
    +
    + + +
    +
    + + + + + diff --git a/moka-opencart-3.0/readme.md b/moka-opencart-3.0/readme.md new file mode 100644 index 0000000..ab8b98b --- /dev/null +++ b/moka-opencart-3.0/readme.md @@ -0,0 +1,19 @@ +# moka-payment-opencart + +moka-payment opencart is the simple and lightweight implementation of [moka.com](https://www.moka.com) payment service for Opencart. It's licensed under LGPL v3.0 license, therefore feel free to use it in any project or modify the source code. + +# Getting Started + +## Installation + + +1. Download the source, just copy all the files in the zip to your OpenCart directory. +2. Click Extensions tab and Payments subtab in your OpenCart admin panel. +3. Find moka-payment extension and install the module. Then click Edit. +5. Select "Enabled" to activate moka-payment plugin for your OpenCart. +6. Define alignment number for the payment sort order.(etc 1,2,3...) +7. User on checkout page will find moka-payment payment extension in payment methods. +8. In order details on admin interface, find "moka-payment" tab in "Order History" section. + +#### Notice : +If you have installed any other theme on your opencart site, you have to copy below folder from this plugin: **catalog/view/theme/default/template** to your theme folder at: **catalog/view/theme/current_theme_folder**. diff --git a/moka-opencart-3.0/system/library/mokapayment/mokaconfig.php b/moka-opencart-3.0/system/library/mokapayment/mokaconfig.php new file mode 100644 index 0000000..1e53eeb --- /dev/null +++ b/moka-opencart-3.0/system/library/mokapayment/mokaconfig.php @@ -0,0 +1,176 @@ + array('name' => 'Axess', 'bank' => 'Akbank A.Ş.', 'installments' => true), + 'world' => array('name' => 'WordCard', 'bank' => 'Yapı Kredi Bankası', 'installments' => true), + 'bonus' => array('name' => 'BonusCard', 'bank' => 'Garanti Bankası A.Ş.', 'installments' => true), + 'cardfinans' => array('name' => 'CardFinans', 'bank' => 'FinansBank A.Ş.', 'installments' => true), + 'maximum' => array('name' => 'Maximum', 'bank' => 'T.C. İş Bankası', 'installments' => true), + 'paraf' => array('name' => 'Paraf', 'bank' => 'Halk Bankası', 'installments' => true), + ); + } + + public static function setRatesFromPost($posted_data) { + $banks = MokaConfig::getAvailablePrograms(); + $return = array(); + foreach ($banks as $k => $v) { + $return[$k] = array(); + for ($i = 1; $i <= self::max_installment; $i++) { + $return[$k]['installments'][$i]['value'] = isset($posted_data[$k]['installments'][$i]['value']) ? ((float) $posted_data[$k]['installments'][$i]['value']) : 0.0; + $return[$k]['installments'][$i]['active'] = isset($posted_data[$k]['installments'][$i]['active']) ? ((int) $posted_data[$k]['installments'][$i]['active']) : 0; + } + } + return $return; + } + + public static function setRatesDefault() { + $banks = MokaConfig::getAvailablePrograms(); + $return = array(); + foreach ($banks as $k => $v) { + $return[$k] = array('active' => 0); + for ($i = 1; $i <= self::max_installment; $i++) { + $return[$k]['installments'][$i]['value'] = (float) (1 + $i + ($i / 5) + 0.1); + $return[$k]['installments'][$i]['active'] = $v['installments']; + if ($i == 1) { + $return[$k]['installments'][$i]['value'] = 0.00; + $return[$k]['installments'][$i]['active'] = 1; + } + } + } + return $return; + } + + public static function setRatesNull() { + $banks = MokaConfig::getAvailablePrograms(); + $return = array(); + foreach ($banks as $k => $v) { + $return[$k] = array('active' => 0); + for ($i = 1; $i <= self::max_installment; $i++) { + $return[$k]['installments'][$i]['value'] = 0; + $return[$k]['installments'][$i]['active'] = 0; + } + } + return $return; + } + + public static function createRatesUpdateForm($rates) { + $return = '' + . '' + . ''; + for ($i = 1; $i <= self::max_installment; $i++) { + $return .= ''; + } + $return .= ''; + + $banks = MokaConfig::getAvailablePrograms(); + foreach ($banks as $k => $v) { + $return .= '' + . '' + . ''; + for ($i = 1; $i <= self::max_installment; $i++) { + if (!isset($rates[$k]['installments'][$i]['active'])) + $rates[$k]['installments'][$i]['active'] = 0; + if (!isset($rates[$k]['installments'][$i]['value'])) + $rates[$k]['installments'][$i]['value'] = 0; + $return .= ''; + } + $return .= ''; + } + $return .= '
    BankaDurum' . $i . ' taksit
    ' + . ' Aktif ' + . ' %
    '; + return $return; + } + + public static function calculatePrices($price, $rates) { + $banks = MokaConfig::getAvailablePrograms(); + $return = array(); + foreach ($banks as $k => $v) { + if ($v['installments'] == false) + continue; + $return[$k] = array('active' => $rates[$k]['active']); + for ($i = 1; $i <= self::max_installment; $i++) { + $return[$k]['installments'][$i] = array( + 'active' => $rates[$k]['installments'][$i]['active'], + 'total' => number_format((((100 + $rates[$k]['installments'][$i]['value']) * $price) / 100), 2, '.', ''), + 'monthly' => number_format((((100 + $rates[$k]['installments'][$i]['value']) * $price) / 100) / $i, 2, '.', ''), + ); + } + } + return $return; + } + + public static function getProductInstallments($price, $rates) { +// print_r($rates); +// exit; + $prices = MokaConfig::calculatePrices($price, $rates); + $banks = MokaConfig::getAvailablePrograms(); + $return = ' + + '; + foreach ($banks as $k => $v) { + $return .= ' '; + } + $return .= ' + + '; + + + for ($ins = 1; $ins < 10; $ins++) { + if ($ins == 1) { + $return .= ' '; + } else { + + $return .= ' '; + } + foreach ($banks as $k => $v) { + + if ($ins == 1) { + $return .= ' '; + } else { + + $return .= ' '; + } + } + + $return .= ''; + } + $return .= '
    Taksit +
    Peşin ' . $ins . ' Taksit ' . $prices{$k}['installments']{$ins}['total'] . ' TL ' . $prices{$k}['installments']{$ins}['monthly'] . ' x ' . $ins . ' TOPLAM ' . $prices{$k}['installments']{$ins}['total'] . ' TL
    '; + + + + return $return; + } + +}