[RELEASE] Zulu Project - Metin2 PayPal Payment Gateway (IPN)

  • Autor subiect xbucsa
  • Dată creare
  • Răspunsuri: Răspunsuri 7
  • Vizualizări: Vizualizări 2K

xbucsa

Well-known member
11 Oct 2017
809
2.631
93
31
Oradea
xtopmetin.com
Monede Dragon
0
Hello dear users,


this is my first serious topic that I do and it is about the new project that I am carrying out on my own, in order to help creators of private servers with some useful tools that facilitate their work or the interaction with their users. Most of them will be web tools / applications, as that is what I do.



Today I will do the first release:



Episode 1- Metin2 PayPal Payment Gateway [M.P.P.G]





This tool is extremely simple, which allows you to receive automatic donations through PayPal.

Just entering the username and selecting the amount of "Coins" with their respective price would be more than enough.




Then you just have to log into your Paypal account and proceed to make the payment, in the description of the same you can see the details of the transaction.





















Once the payment has been made correctly, you will be redirected back to the script



Finally, the "coins" will be assigned to the account that was originally entered and a record of the donation will be created in the database.







Installation:

You only have to download the Script, upload the "zulu" folder to your server website, access it from the browser and it will automatically start the installer, following the instructions will be more than enough.


IMPORTANT: The folders "Install" and "Config" with their files MUST have 777 permissions, if not then change it!
















Settings:

In order to configure the Script parameters, such as the currency, prices, the amount of coins to deliver, the PayPal Email to be used, etc. You must access the path and file "/zulu/config/parameters.php" It is documented enough to understand it.



PHP:
<?php




return [


    /*


   |--------------------------------------------------------------------------


   | Server Name


   |--------------------------------------------------------------------------


   |


   | This value is only for Copyright.


   |


   */


    'server_name' => 'your_server_name',






    /*


    |--------------------------------------------------------------------------


    | PayPal Email


    |--------------------------------------------------------------------------


    |


    | This value is the Email that will be used to receive the money for


    | each purchase.


    |


    */


    'paypal_email' => 'your_paypal_email',








    /*


    |--------------------------------------------------------------------------


    | PayPal IPN Script URL


    |--------------------------------------------------------------------------


    |


    | This value is the URL where the script (app.php) is located.


    | By default: /zulu/app.php


    |


    */


    'ipn_script' => $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST'].'/zulu/app.php',








    /*


    |--------------------------------------------------------------------------


    | Return Pages


    |--------------------------------------------------------------------------


    |


    | This value determines the URL where the user will be redirected after


    | a purchase, when is successfully or not.


    |


    | By default for success: success.php


    | By default for errors: error.php


    |


    */


    'return_success' => $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST'].'/zulu/success.php',


    'return_error' => $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST'].'/zulu/error.php',








    /*


    |--------------------------------------------------------------------------


    | Costs


    |--------------------------------------------------------------------------


    |


    | This Array determines the cost that each given amount of Coins will give.


    |


    | Syntax: 'Price_to_pay' => 'Coins_to_give'


    |


    */


    'costs' => [


        '15' => '500',


        '30' => '800',


        '60' => '1300',


    ],








    /*


    |--------------------------------------------------------------------------


    | Currency Code


    |--------------------------------------------------------------------------


    |


    | This value determines the currency in which PayPal works.


    | Supported: AUD, BRL, CAD, CZK, DKK, EUR, HDK, HUF, INR, ILS, JPY, MYR,


    | MXN, TWD, NZD, NOK, PHP, PLN, GBP, RUB, SGD, SEK, CHF, THB, USD


    |


    | References: https://en.wikipedia.org/wiki/ISO_4217#Active_codes


    |


    */


    'currency_code' => 'USD',


];


IMPORTANT: For this script to work, you must enable instant notifications in your PayPal accounts and add the URL where the script is located and the handler "/zulu/app.php"








Frequent questions:


Have you placed an exploit for your own benefit?

Answer: I do not plan to spend my time on things that I consider absurd lmao ...


Is the design (HTML/CSS) and code (PHP) entirely yours or have you used someone else's code and adopt it as yours?

Answer: The code and design is completely my property, since it is in my public Github repository, you can review it as many times as you want, however I have named it an Open Source project, you can see the Copyright terms under the "GNU General" license Public License v3.0 ".


Have you taken the appropriate security measures at the time of this script?

Answer: I have taken the NECESSARY measures, since it is not a Script that covers so many things and most verifications are already done automatically by the PayPal API.


There are many things that can be improved, why don't you take them into account?

Answer: It is very evident to me, however this is a public and free project, personally I do not want to give myself more work than I should for this type of thing, for those who understand it I think it is reasonable enough that the time of people have value and few would do much without something in return.


Will you make updates of what you do?

Answer: Of course, it is already fully scheduled.


Leaving this project aside, do you lend yourself to web development services?

Answer: Yes, you can contact me through any of my networks (check at the end of the topic)



I hope it is useful for someone, if you need or want something about the project or some type of different service, I am completely open to request.

I hope too I haven't forgotten anything!


Link:


To download if you don't know how:







Contact methods:

Discord: Jayden#7168

E-Mail: contact.lesoft@gmail.com