Edit: 03 February 2012, Please read the following post first! http://forum.ragezone.com/6810311-post15.html
Paymentwall provides more than 75 international online payment solutions.
Payment options include credit cards, debit cards, bank transfers, direct debit payments, eWallets, prepaid cards, mobile and land-line payments, payment kiosks/terminals – all in 1 easy to integrate payments platform.
This API also contains an auto-banning system when an user is charging back a payment.
1. Register here: Paymentwall - The All-in-One Monetization Suite
2. Go to "Account Settings" -> Edit the details.
3. Go to "Applications" -> "Application Settings" -> Edit the details.
4. Click on the left on "Payment systems" -> Enable the methods which you want to use.
5. Execute the following in GunzDB:
PHP Code:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[PaymentWall](
[ID] [int] IDENTITY(1,1) NOT NULL,
[UserID] [varchar](255) NOT NULL,
[Currency] [varchar](255) NOT NULL,
[Type] [varchar](255) NOT NULL,
[Date] [varchar](255) NOT NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
6. Move the paymentwall.api.php file to somewhere in your website files -> edit line 6, 7 and 33. Line 33 should be your secret key which can be found @"Application Settings".
7. Click on the left on "Pingback" -> URL = location to the paymentwall.api.php script.
8. Click on the left on "Widgets" -> Make a new widget.
9. Copy the iFrame to somewhere on your website.
EDIT THE iFRAME URL!
PHP Code:
<iframe src="http://wallapi.com/api/ps/?key=appkey&uid=[USER_ID]&widget=p3_1" width="750" height="2800" frameborder="0"></iframe>
The UserID of the user which is logged in needs to be @[USER_ID].
If $_SESSION['username'] contains the UserID, then you can do something like:
PHP Code:
<iframe src="http://wallapi.com/api/ps/?key=appkey&uid=<?php echo $_SESSION['username']; ?>&widget=p3_1" width="750" height="2800" frameborder="0"></iframe>
(In case short-tags are turned off.)
10. Once you're ready, go to "Applications" -> "List of applications" -> request the application to go live.
Notes:
- The staff of PaymentWall will check your site first before other users can "donate" for coins. If they checked it, then it will be set to "live".
- They can take high fees for mobile payments.
- It can take about 3 months before they will pay you out for the first time. (After that it will be every month if I'm correct.)
- You'll have to edit the queries if your database structure of the account table and coins column are different.
- You can test this API by going to "Pingback" -> "Test Pingback".
- Make sure only people which are logged in can view the iFrame, else the UserID will be empty and the user will not automatically receive his coins.
- Tip: You can also make the iFrame pop-up. Use Google to find out how.
Download: Download paymentwall.api.php from Sendspace.com - send big files the easy way
Hmm, I guess that's all. (If I forgot to mention anything, I'll update it tomorrow.)
Have fun!