Thread: Gamepayments Auto Donation Installation [ANY BASE][BETA]

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 36
  1. #1 Gamepayments Auto Donation Installation [ANY BASE][BETA] 
    Extreme Donator

    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    4,055
    Thanks given
    1,501
    Thanks received
    1,973
    Rep Power
    4913
    Now supports Stripe integration

    Gamepayments - Webstore Installation

    Gamepayments is a webstore system by TeamGames. Here's a quick tutorial on how to get started with transactions.

    Attached image Support Discord

    If you need more help or for some reason cannot understand the tutorial. You can post a comment on this thread or reach us at our support Discord. TeamGames

    Getting started



    Registration and API Key

    • After adding the teamgames-api.jar into your project the next step is to create an account at TeamGames, you will be making a TeamGames account which will be used to log into Gamepayments.
    • Once the account is created, select Java as your game platform, and register your subdomain.
    • Now you can grab your API Key which is located in your dashboard https://gamepayments.net/account/dashboard! Remember this API Key and do not share it with anyone.


    Attached image

    Attached image

    Attached image

    Setting up your donation with Paypal

    This part is very simple, after signing in go to https://gamepayments.net/account/gateway/update/paypal, enter your Paypal email and press Submit, then you're set.

    Attached image

    Adding and removing items

    To add a new product go to the products section of the website https://gamepayments.net/account/products and click create a new product.

    Attached image

    Lets take a look at your new donation page

    You can find your donation script at: yoursubdomain.gamepayments.net

    Attached image

    Making the auto donate work with your server

    This part of the tutorial is for PI, but can easily be changed to work with any server. If you want me to add a snippet on the thread so it can work with your framework leave a comment with the server base you want the snippet for.

    Code:
     if (playerCommand.equalsIgnoreCase("claim")) {
                    new java.lang.Thread() {
                        public void run() {
                            try {
                                final com.teamgames.gamepayments.GamePaymentsResponse gamepaymentsResponse = com.teamgames.gamepayments.Transaction.getResponse("API_KEY", PLAYERUSERNAME);
                                com.teamgames.gamepayments.Transaction[] transactions = gamepaymentsResponse.transactions;
                                if (!gamepaymentsResponse.getMessage().equalsIgnoreCase("SUCCESS")) {
                                    c.sendMessage(gamepaymentsResponse.getExtendedMessage());
                                    return;
                                }
                                for (com.teamgames.gamepayments.Transaction transaction : transactions) {
                                    c.getItems().addItem(transaction.productId, transaction.quantity);
                                }
                                c.sendMessage("Thank you for donating!");
                            } catch (Exception e) {
                                c.sendMessage("Api Services are currently offline. Please check back shortly");
                                e.printStackTrace();
                            }    
                        }
                    }.start();
                }
    Fin

    You are now finished adding the auto donation script to your website and server. If you have any suggestions for features, leave a comment and let me know. This service is still in beta.
    Reply With Quote  
     


  2. #2  
    Banned

    Join Date
    Jun 2013
    Posts
    499
    Thanks given
    119
    Thanks received
    70
    Rep Power
    0
    The following code is for elvarg/OSRS PK

    Code:
    } else if(parts[0].startsWith("claim")) {
                new java.lang.Thread() {
                    public void run() {
                        try {
                        	final com.teamgames.gamepayments.GamePaymentsResponse gamepaymentsResponse = com.teamgames.gamepayments.Transaction.getResponse("GamePayment secret key", "Gamepayment username");
                            com.teamgames.gamepayments.Transaction[] transaction = gamepaymentsResponse.getTransactions();
                            if (!gamepaymentsResponse.getMessage().equalsIgnoreCase("SUCCESS")) {
                                player.getPacketSender().sendMessage(gamepaymentsResponse.getExtendedMessage());
                                return;
                            }
                            for (com.teamgames.gamepayments.Transaction transaction1 : transaction) {
                            	player.getInventory().add(new Item(Integer.parseInt(transaction1.productId), transaction1.quantity));
                            }
                            player.getPacketSender().sendMessage("Thank you for donating!");
                        } catch (Exception e) {
                            player.getPacketSender().sendMessage("Api Services are currently offline. Please check back shortly!");
                            e.printStackTrace();
                        }    
                    }
                }.start();
    		}
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    nice


    Join Date
    Jul 2014
    Posts
    738
    Thanks given
    367
    Thanks received
    538
    Rep Power
    4167
    i remember when u very first (year+ ago) showed me the screenshots of this, glad its finally out.
    Reply With Quote  
     

  5. #4  
    Registered Member
    Join Date
    Jan 2018
    Posts
    136
    Thanks given
    143
    Thanks received
    10
    Rep Power
    58
    Thank you for all the hard work you put into this and for sharing better ways for game payments!
    Learning Java
    Reply With Quote  
     

  6. #5  
    Registered Member

    Join Date
    Jan 2019
    Posts
    90
    Thanks given
    44
    Thanks received
    17
    Rep Power
    126
    Whats different between this and the previous system everythingrs
    Reply With Quote  
     

  7. #6  
    Banned

    Join Date
    Jun 2013
    Posts
    499
    Thanks given
    119
    Thanks received
    70
    Rep Power
    0
    Quote Originally Posted by Tobi_ View Post
    Whats different between this and the previous system everythingrs
    This is a lot cleaner, register and have a look around the panel, that alone should show you the difference.
    Reply With Quote  
     

  8. #7  
    Registered Member
    Project's Avatar
    Join Date
    Dec 2010
    Posts
    2,672
    Thanks given
    1,043
    Thanks received
    820
    Rep Power
    1101
    Quote Originally Posted by Tobi_ View Post
    Whats different between this and the previous system everythingrs
    This isn't for just RuneScape.

    Nice stuff Genesis!
    Reply With Quote  
     

  9. #8  
    Banned

    Join Date
    Jun 2013
    Posts
    499
    Thanks given
    119
    Thanks received
    70
    Rep Power
    0
    Quote Originally Posted by Project View Post
    This isn't for just RuneScape.

    Nice stuff Genesis!
    Atm it's just being used for RSPS's, but Nelson mentioned that he built gamepayments to scale towards other games aswell.
    Reply With Quote  
     

  10. #9  
    Registered Member
    Optimum's Avatar
    Join Date
    Apr 2012
    Posts
    3,562
    Thanks given
    869
    Thanks received
    1,744
    Rep Power
    5000
    Looks really nice bro good job

    Quote Originally Posted by DownGrade View Post
    Don't let these no life creeps get to you, its always the same on here. They'd rather spend hours upon hours in the rune-server spam section then getting laid! ha ha!Its honestly pathetic i haven't seen so many lowlifes in my life its actually insane i wish that this section would just vanish its probably the only way to get these people out of the community...
    PLEASE BE AWARE OF IMPOSTERS MY DISCORD ID: 362240000760348683
    Reply With Quote  
     

  11. #10  
    Registered Member

    Join Date
    Jun 2008
    Posts
    1,957
    Thanks given
    7
    Thanks received
    256
    Rep Power
    445
    Since you had the post removed, I will post it again. You will have to come up with a better way to call the API than in a thread that directly modifies the players information. Perhaps a micro service that checks for payments and updates a database for the server to query against.
    Reply With Quote  
     

  12. Thankful user:


Page 1 of 4 123 ... LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 1260
    Last Post: Yesterday, 11:17 PM
  2. Replies: 0
    Last Post: 06-10-2016, 06:49 PM
  3. Replies: 6
    Last Post: 07-26-2011, 02:57 AM
  4. Buying Auto Donate System PI base
    By viality in forum Help
    Replies: 4
    Last Post: 02-22-2011, 11:47 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •