[INC] PayPal
2 Attachment(s)
PayPal
Enables transactions through MOTD. I am not responsible for errors or failed transactions! Use this at your own risk. Credits: xPaw for SourceQuery. bboygrun for the tutorial on how to use SourceQuery. Exolent[jNr] for the stock str_explode() that I stole from his String Stocks library. Requirements: * A PayPal account that has the following enabled under "Website Payment Preferences": - Auto Return. - Payment Data Transfer. - An Identity Token, found on the same page after PDT is enabled. * SourceQuery. - Place the files from SourceQuery in a folder named "SourceQuery". - Place that folder in the same folder as the PHP file. * HTTP2 v2.21(or higher) for payment verification. * A webserver to host the PayPal.php. How it works: As promised, I will explain. You start a session using PayPal_Start(). This will format the PayPal link and open a MOTD that will redirect the user to the PayPal link. When the user completes the payment he/she will be redirected to the PayPal.php that you host and specified earlier. The .php utilizes SourceQuery to execute a command on your server, passing the Transaction ID to the server. The server receives the command and verify the payment using HTTP2. HTTP2 will pass the Transaction ID and the Identity Token as POST variables directly to a PayPal verification link. This prevents tampering. This will result in a text-based page that gives specifics about the payment and if it was successful. HTTP2 will download that like any file and then the PayPal.inc will parse the information calling the PayPal_Complete() forward on success. If a user leaves the server before the process is completed the SteamID will be saved in a que file, so when the person reconnects PayPal_Complete() will be called. Once a transaction is verified it will blacklist that Transaction ID in a file so people won't be able to receive whatever "benefits" by refreshing the page over and over. If the transaction fails or gets aborted nothing will be called. Functions: Code:
Examples: Code:
Code:
Inc logging: http://digitaldecay.eu/forums/AM/PayPal/Payment.png Donation design (Amount = 0.0): http://digitaldecay.eu/forums/AM/PayPal/Donation.png Additional notes: As always, you're not forced to use this as an include. You can use this in any way you want to. You can, if you want, copy the whole thing into your .sma without even crediting me. My goal is not credit, It's to help. I'm always open to suggestions, feedback and criticism. I aim to add as much support as possible. Please share your thoughts. |
Re: [Example] PayPal transactions from MOTD
Good job :up:
|
Re: [Example] PayPal transactions from MOTD
Great! Thanks for share :)
|
Re: [Example] PayPal transactions from MOTD
I don't think this is related to this plugin, but I can't make dots in the "Email" field at the step when you have to login to donate for the item.
But all other symbols is working. , and - works fine which is the keys beside of the dot key on the keyboard, so what the hell do not dot key work? |
Re: [Example] PayPal transactions from MOTD
wow, that`s awesome :O
great job! it seems that http2 is really 'powerfull' |
[INC] PayPal
Quote:
Quote:
You can still paste strings from console or even copy the URL to make the transaction from your browser |
Re: [Example] PayPal transactions from MOTD
|
Re: [INC] PayPal
Hey i need something like this, but it isnt with paypal.
Can i pm you about it? Because if i give the link here, it is publicity of my server host at same time. (Is page for donations via allopass, but is a page from my host and the money is redirected to my account) |
Re: [INC] PayPal
I'm very bad at French.
But yes, PM away and we'll see what we can do. EDIT: Now I found the way to switch language. |
Re: [INC] PayPal
Great work. :)
Will definitely make use of it. |
All times are GMT -4. The time now is 06:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.