• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Znote ACC Paypal not applying points?

pink_panther

Excellent OT User
Joined
Sep 10, 2016
Messages
1,171
Solutions
13
Reaction score
613
Location
Kazordoon
Just wondering if there is an issue with the Shop?

It seems to send me money when people buy points, but the points are not adding to their accounts.

Using Znote 1.5 from the latest git repo and paypal with a 7.72 client.
 
Just wondering if there is an issue with the Shop?

It seems to send me money when people buy points, but the points are not adding to their accounts.

Using Znote 1.5 from the latest git repo and paypal with a 7.72 client.
Just describing the issue isn't enough at least post your config file so that someone if not myself can help resolve the issue or tag @Znote in your post since he is the one who made it.
 
The Buy Points page is literally just this: Znote/ZnoteAAC (https://github.com/Znote/ZnoteAAC/blob/master/buypoints.php)

My config.ph file:
// Write your paypal address here, and what currency you want to recieve money in.
$config['paypal'] = array(
'enabled' => true,
'email' => '[email protected]', // Example: [email protected]
'currency' => 'USD',
'points_per_currency' => 10, // 1 currency = ? points? [ONLY used to calculate bonuses]
'success' => "http://".$_SERVER['HTTP_HOST']."/success.php",
'failed' => "http://".$_SERVER['HTTP_HOST']."/failed.php",
'ipn' => "http://".$_SERVER['HTTP_HOST']."/ipn.php",
'showBonus' => true,
);

$config['paypal_prices'] = array(
// price => points,
1 => 9, // -10% bonus
10 => 100, // 0% bonus
15 => 165, // +10% bonus
20 => 240, // +20% bonus
25 => 325, // +30% bonus
30 => 420, // +40% bonus
);


What else would you need to know?
 
1:
Have you installed/enabled PHP curl?

2:
In /engine/init.php
below line:
PHP:
require_once 'function/users.php';

Add this:
PHP:
if (isset($_GET['debug'])) {data_dump($config['paypal'], false, "Rendered paypal config");}
And enter your website with ?debug in URL. etc http:://mywebsite.com?debug

You should see the rendered config for paypal.

Is the success/failed/ipn URL correct?
(Remove the added init.php code after you have checked this)

3:
Login on paypal.com and check IPN history log, does the paypal server successfully reach your ipn.php file?

Does the account that is buying points, exist in the znote_accounts table in the database?
accounts.id should match znote_accounts.account_id
 
Thanks for your reply.

Curl is Enabled

This line does exist in the engine/init.php file: require_once 'function/users.php';

Checking the debug shows the paypal info. The success and failure pages load, but the ipn is a blank page if I just browse to it directly? The file is exactly the same as from your git too though.

I don't know how to tell if paypal reached my IPN.php after transaction? All I can see is t hat I successfully receive the money. Can you further explain how to check this?

And yes, the account that bought points exists in the znote_accounts table with 0 points.
 
When you try to enter the ipn file manually the page it blank because the ipn file doesn't render a page, which is normal.

I don't remember exacly where, but paypal has some settings related to IPN / Instant payment notification. You need to configure the URL to your website/ipn.php file, so paypal know where to send payment status notifications, and so your website can add the points to the buying account.

Somewhere in these settings, there should also be an IPN history log, where you can see previous notification attempts, to see if the notification was successfully sent to the server.
 
When you try to enter the ipn file manually the page it blank because the ipn file doesn't render a page, which is normal.

I don't remember exacly where, but paypal has some settings related to IPN / Instant payment notification. You need to configure the URL to your website/ipn.php file, so paypal know where to send payment status notifications, and so your website can add the points to the buying account.

Somewhere in these settings, there should also be an IPN history log, where you can see previous notification attempts, to see if the notification was successfully sent to the server.

Does it require a buisness paypal account? I've just got a regular papal account and can't see anything about resending IPN data.

Am I required to make any changes in my ipn.php file?
 
I don't think I run a business account.
This is where I found it:

34977

34978

34979

34980

34981

34982

I havent actually used the paypal IPN system in years so I got no data to show.
Don't think any changes to the ipn file is neccesary, but might be wrong. (its getting old).
 
I don't think I run a business account.
This is where I found it:

View attachment 34977

View attachment 34978

View attachment 34979

View attachment 34980

View attachment 34981

View attachment 34982

I havent actually used the paypal IPN system in years so I got no data to show.
Don't think any changes to the ipn file is neccesary, but might be wrong. (its getting old).


Yeah.. Pretty sure it requires a business account.

I don't have that option and if I fudge the URL to take me there, I have only 2 options for PayPal Buttons and Invoice Templates.

Oh well.
 
Yeah.. Pretty sure it requires a business account.

I don't have that option and if I fudge the URL to take me there, I have only 2 options for PayPal Buttons and Invoice Templates.

Oh well.

You need to upgrade your account to a "Premier Account". This is free, but requires some extra verification. Then you should be able to use IPN settings.
Source: Receive payment notifications - PayPal Developer (https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/get-notifications/?mark=premier)
 
Last edited:
You need to upgrade your account to a "Premier Account". This is free, but requires some extra verification. Then you should be able to use IPN settings.
Source: Receive payment notifications - PayPal Developer (https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/get-notifications/?mark=premier)

Yeah, paypals developer documentation is out of date. A Premier account is just a normal account and does not have that option.


You can have a standard account to receive IPN's from paypal, your config is configured as "http" which means you probably don't have SSL/TLS certificate. Paypal from 2018 don't accept normal "http" IPN url's anymore.
IPN Verification Postback to HTTPS - PayPal (https://www.paypal.com/sg/webapps/mpp/ipn-verification-https)
"In the past, PayPal has allowed the use of HTTP for these postbacks. For increased security going forward, only HTTPS will be allowed for postbacks to PayPal. "

But where/how do i configure the ipn then?
 
Back
Top