Community discussions

MikroTik App
 
andreas140265
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Tue Jan 15, 2013 4:57 pm
Location: Greece

Paypal newbie questions

Thu Jan 16, 2014 4:59 am

Hi
So far I have achieved to use the signup page, so my users can create an account, and then they are redirected to paypal.
The user pays, Customer and user get emails from paypal but Payment status in UM remains "Started".

Seems that paypal does not inform UM for the payment,so UM does not activate the user.

What am I missing?

Do I have to enable the paypal IPN (Instant Payment Notification) ? But then what is the notification url????

My router is behind a dsl modem. The modem is geting dynamic public address.

I can use a dynamic DNS service, get a url to use in paypal (if this is the problem) but then the url will point to the modem.
Do I have to forward the paypal traffic? If yes what ports?

Feel so confused....
 
andreas140265
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Tue Jan 15, 2013 4:57 pm
Location: Greece

Re: Paypal newbie questions

Thu Jan 16, 2014 5:09 am

ROS v6.7
 
raptorx
just joined
Posts: 15
Joined: Fri Jan 02, 2015 7:32 pm

Re: Paypal newbie questions

Tue Feb 03, 2015 4:32 pm

Hello, I'm on the same road you are, but I've seen you've went further from http://forum.mikrotik.com/viewtopic.php ... 0&p=445582
I can't find any guides how to implement IPN in mikrotik, I've read it's a PHP file executed on payment but how to connect it with ROS?
And is it a MUST step to do if I want paypal payments? Because the wiki doesn't say anything like that...
I have connected mikrotik to my main router and made port forwarding from the main to the RB. So when I enter my public IP from outside the network I'm redirected to webfig. I have done the <form name="payform" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> trick. My public host is my public ip, I can make the payment, I get the money, but the account doesn't get activated. I'm using 6.25, you said it doesn't have problems with payments?
Hope you can help me, I'm having troubles from long time :(
 
andreas140265
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Tue Jan 15, 2013 4:57 pm
Location: Greece

Re: Paypal newbie questions

Wed Feb 04, 2015 8:50 am

Hello, I'm on the same road you are, but I've seen you've went further from http://forum.mikrotik.com/viewtopic.php ... 0&p=445582
I can't find any guides how to implement IPN in mikrotik, I've read it's a PHP file executed on payment but how to connect it with ROS?
And is it a MUST step to do if I want paypal payments? Because the wiki doesn't say anything like that...
I have connected mikrotik to my main router and made port forwarding from the main to the RB. So when I enter my public IP from outside the network I'm redirected to webfig. I have done the <form name="payform" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> trick. My public host is my public ip, I can make the payment, I get the money, but the account doesn't get activated. I'm using 6.25, you said it doesn't have problems with payments?
Hope you can help me, I'm having troubles from long time :(
It seems that you've done everything right. My recomentation is to check paypal's IPN history page.
There you will find information for the communication failure between paypal and UM.
About v6.25 : I use certificates for secure connections and after v6.19 there was a problem with paypal which was fixed in v6.25
 
raptorx
just joined
Posts: 15
Joined: Fri Jan 02, 2015 7:32 pm

Re: Paypal newbie questions

Wed Feb 04, 2015 6:17 pm

Ok, I used http://publicIP/user for the IPN setting, the IPN simulator said it's OK, I can reach the usermanager from Internet using the same public IP, I get
"OK to complete the transaction
Payment Status: Completed
What should I do now?
Contact the buyer to confirm the purchase
Save all correspondence with the buyer " in sandbox PayPal history...
And ... my router crashed... the last thing the log says is:
FAIL: paypal resp != "VERIFIED" (INVALID)
WARNING: Potentially malicious payment received!
And of course the user stays with inactivated account and timeout payment after some time.
What am I missing?! :(
 
User avatar
bax
Member Candidate
Member Candidate
Posts: 268
Joined: Mon Dec 20, 2004 8:45 pm
Location: Croatia

Re: Paypal newbie questions

Wed Feb 04, 2015 7:57 pm

upgrade to latest vesion
 
User avatar
bax
Member Candidate
Member Candidate
Posts: 268
Joined: Mon Dec 20, 2004 8:45 pm
Location: Croatia

Re: Paypal newbie questions

Wed Feb 04, 2015 8:53 pm

 
raptorx
just joined
Posts: 15
Joined: Fri Jan 02, 2015 7:32 pm

Re: Paypal newbie questions

Wed Feb 04, 2015 9:32 pm

I hadn't, does it matter? Isn't it only the link you are redirected after clicking the button? I'm going to check with authorize.net too,..
I'm on the latest version. Thanks for the suggestion! Keep them coming, maybe I'm missing something crucial :|
The thing I'm wondering about is, except port forwarding from my first router to mikrotik's local address, do I have to add something?
 
User avatar
bax
Member Candidate
Member Candidate
Posts: 268
Joined: Mon Dec 20, 2004 8:45 pm
Location: Croatia

Re: Paypal newbie questions

Wed Feb 04, 2015 11:11 pm

I have something like you .... and my first router is forward https (443 port) to mikrotik ... does your mikrotik have valid certificate and good setup?
does you access your userman via https like this https://youtdomain.com(or IP)/userman ?
 
raptorx
just joined
Posts: 15
Joined: Fri Jan 02, 2015 7:32 pm

Re: Paypal newbie questions

Thu Feb 05, 2015 12:57 pm

I'm actually not using certificate, if I'm just testing with sandbox, do I need to? And can it be self-signed? With one test certificate it doesn't let me in via https://routerIP.
And I'm port forwarding port 80 from my first router.
 
User avatar
bax
Member Candidate
Member Candidate
Posts: 268
Joined: Mon Dec 20, 2004 8:45 pm
Location: Croatia

Re: Paypal newbie questions

Thu Feb 05, 2015 1:05 pm

if you dont use https the it will probably must work ... just check from internet that you see your userman page ...
Problem is security and if you later need for real web server ... you canot forward same ip address with same port ...
 
raptorx
just joined
Posts: 15
Joined: Fri Jan 02, 2015 7:32 pm

Re: Paypal newbie questions

Thu Feb 05, 2015 6:43 pm

I won't need SSL because I'm making this for school purposes (thesis), it would be cool if I can use payments but vouchers are option too.
I can access the userman page from outside network through my public ip.
--
While writing, I checked again the guide about the sandbox configuration (http://forum.mikrotik.com/viewtopic.php?f=10&t=81153).. I've missed the part about adding not only the ip, but http://ip/user in the Public Host field. So I've changed that and now my router doesn't crash, but it stops at "Transaction successfully started". IPN history says "Retrying". Still not working, but maybe I'm a step closer?

Who is online

Users browsing this forum: No registered users and 3 guests