Post by japan » Sun Apr 19, 2009 7:07 am

HI, I made payment by paypal on test site.
there are a few question.

If I cancel paypal payment on the way, the cancellation of paypal is OK.
But opencart payment is made and send e-mail to account to confirm the order.
(In the situation, the order is made and paypal payment is not made.and I have to inform account to re-order
because paypal payment is not made.)

Is this a feature or bug?

regards

Newbie

Posts

Joined
Mon Apr 13, 2009 6:17 pm

Post by Daniel » Sun Apr 19, 2009 8:38 am

ok i'll fix it.

I only put one callback response type in which was to confirm an order.

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by japan » Sun Apr 19, 2009 12:05 pm

Thank you for your response.
I checked the setting of paypal module.
My setting is checkout mode on display.
Next, when I change the setting with callback mode,
confirm order status is displayed checkout, not callback.

When I ckecked if the setting of callback status is active on database,
the result is on active.(the value of paypal_callback is 1)
Therefore,selectable field on confirm order seem to be moved first value (not selected value) after saving it.

Newbie

Posts

Joined
Mon Apr 13, 2009 6:17 pm

Post by japan » Sun Apr 19, 2009 2:01 pm

I retested paypal payment module on callback status.
When I made paypal payment, payment is made, and back to mypage to confirm order.
But order confirmation is not sent to account and orders info of admin page is not reflected it.( filter is not used.all order should be displayed.)

When I check order table in database, order is done and data is stored.
order status value(order_status_id) of this data is 0
Value 0 of order status is not used on my test and I set order status to pending(Value of pending status is 1) after paypal payment is done.

it seem to be unable to function normally on the paypal callback mode.

COD and Bank Transfer mode is functioned correctly on setup condition.

Newbie

Posts

Joined
Mon Apr 13, 2009 6:17 pm

Post by tommix » Tue Apr 21, 2009 9:57 am

japan wrote: Next, when I change the setting with callback mode,
confirm order status is displayed checkout, not callback.
Yes this is bug... changes not saved...i tried many times, but only Checkout always stays.

And how does IPN works if i do not know what to write in paypal's Notification URL ? do i need to enter URL? cause i can't find info should i write URL and what url?



And thanks Daniel for your really hard work, OpenCart is really very nice and easy to understand cart.. I've used magento..but it's too heavy, to complicated, but now today i've moded opencart and made it my dream shop cart..i'm selling digital goods.

when i receive my first money- i will donate to you guys.. I hope it will became one of the most coolest shop scripts. You should more advertise your script..maybe someday you'll will bets opensource shopping cart awards :)

Active Member

Posts

Joined
Mon Apr 20, 2009 5:21 am

Post by Qphoria » Tue Apr 21, 2009 10:43 am

tommix wrote:
japan wrote: Next, when I change the setting with callback mode,
confirm order status is displayed checkout, not callback.
And how does IPN works if i do not know what to write in paypal's Notification URL ? do i need to enter URL?
No need to enter an IPN return url in your paypal account. The module should include the "returnurl" value which overrides that setting from the backend.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by tommix » Wed Apr 22, 2009 9:05 am

i found this code:

Code: Select all

// read the post from PayPal system and add 'cmd'
if($_SERVER['REQUEST_METHOD']!="POST") die("No data");
$req = 'cmd=_notify-validate';
foreach ($_POST as $key => $value) {
$value = urlencode(stripslashes($value));
$req .= "&$key=$value";
}

// post back to PayPal system to validate
$url=(!isset($_POST['test_ipn'])) ? 'https://www.paypal.com/cgi-bin/webscr' : 'https://www.sandbox.paypal.com/cgi-bin/webscr';

    $curl_result=$curl_err='';
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL,$url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $req);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/x-www-form-urlencoded", "Content-Length: " . strlen($req)));
    curl_setopt($ch, CURLOPT_HEADER , 0);   
    curl_setopt($ch, CURLOPT_VERBOSE, 1);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt($ch, CURLOPT_TIMEOUT, 30);

    $curl_result = @curl_exec($ch);
    $curl_err = curl_error($ch);
    curl_close($ch);

//are we verified? If so, let's process the IPN
if (strpos($curl_result, "VERIFIED")!==false) 
{
//do your IPN stuff here
}
it uses curl not fsockopen, and people says -it's working, so maybe need to move on to curl? :) who created paypal module-let's remake it to curl :)

Active Member

Posts

Joined
Mon Apr 20, 2009 5:21 am

Active Member

Posts

Joined
Mon Apr 20, 2009 5:21 am

Post by Daniel » Sat Apr 25, 2009 9:20 am

its nothing to do with CURL. Curl might not be installed on your system.

I think i just left a setting out. Forget the callback for now. I'll fix it in the next release. I'm just working on updating the main site now then I will move back on opencart releases.

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by tommix » Sat Apr 25, 2009 6:54 pm

Daniel wrote:its nothing to do with CURL. Curl might not be installed on your system.

I think i just left a setting out. Forget the callback for now. I'll fix it in the next release. I'm just working on updating the main site now then I will move back on opencart releases.
I understand you, i know you're busy guy. But why you making new updated -new release, why just not quick hotfixes-patchs ?

if you know how to fix paypal-so why wait 2months when you'll finish main script bug fixes and release if you can fix the paypal, we just upload the files and that's it..and you''ll include it in new opencart version too.

And i don't know hosting who doesn't have cURL installed :) it's like MySQL -must have these days.

Active Member

Posts

Joined
Mon Apr 20, 2009 5:21 am

Post by japan » Sun Apr 26, 2009 10:57 am

Hi, Daniel.
Thank you for your response and your work.
It is OK because Paypal is option payment for mysite and my original payment is made correctly.
Please tell me if you complete it.

To tommix
Would you ask him for commercial offer if it is a important issue for you.
This program is opensource and many people will fix themselves to use it.
Source code is very simple and easy to understand.
You should make a commercial offer to him or other people if you cannot develop yourself.

Newbie

Posts

Joined
Mon Apr 13, 2009 6:17 pm

Post by tommix » Mon Apr 27, 2009 12:31 am

japan wrote:Hi, Daniel.
Thank you for your response and your work.
It is OK because Paypal is option payment for mysite and my original payment is made correctly.
Please tell me if you complete it.

To tommix
Would you ask him for commercial offer if it is a important issue for you.
This program is opensource and many people will fix themselves to use it.
Source code is very simple and easy to understand.
You should make a commercial offer to him or other people if you cannot develop yourself.
ye si will offer him 100000000$ for that. I KNOW IT IS A FREEWARE project, but if he want to make it popular (popular = MONEY even if it's free - it's = money) So he is interested to make it good, and it's a GENERAL problem, not mine. I'm helping him so i need to get paid, not me to pay. If you people don't understand it -it's your problems. This is BUG REPORT section so please shut up if you not making any good post to report bugs. I'm just reporting bugs, as everyone else for 100 times already about paypal.

Active Member

Posts

Joined
Mon Apr 20, 2009 5:21 am

Post by japan » Mon Apr 27, 2009 5:12 pm

Your bugs report is result in your lack of programming skill.
Mayn things of the bugs is mistaken by you and cannot be understood

I have posted the bug and fix of it( download problem , see below)
http://forum.opencart.com/viewtopic.php ... 909#p17909

You should post the fix report of you in detail,if you can.
Otherwise, Please refrain from posting not to be mixed up.

As for paypal bug, Latest version is released on april, and he understand the bug.

Your reports seem to be very strange and useless from the standpoint of developer
and you hurry him up for your own convenience.

Newbie

Posts

Joined
Mon Apr 13, 2009 6:17 pm

Post by tommix » Tue Apr 28, 2009 10:58 pm

japan wrote:Your bugs report is result in your lack of programming skill.
Mayn things of the bugs is mistaken by you and cannot be understood

I have posted the bug and fix of it( download problem , see below)
http://forum.opencart.com/viewtopic.php ... 909#p17909

You should post the fix report of you in detail,if you can.
Otherwise, Please refrain from posting not to be mixed up.

As for paypal bug, Latest version is released on april, and he understand the bug.

Your reports seem to be very strange and useless from the standpoint of developer
and you hurry him up for your own convenience.

Please learn to read then write me. cause you're talking nonsense. My programming knowledge i can bet is better then yours. So it's not my dumb head, but all my reports was real and i know when i make mistakes when script. I'm running the same system on local machine and on web server i always check twice if both does the same-it's not my fault.

And i DO NOT hurry up any dev. So please bug off from me.

Active Member

Posts

Joined
Mon Apr 20, 2009 5:21 am

Post by japan » Wed Apr 29, 2009 3:05 pm

I never learned php..all did by basic knowledge.. This comment is written by you!

I doubt that you have programming experience. and nobody seem to be able understand your comment because nobody have not replied it and adviced.

Would you make a modification by yourself without comment if you have a better skill than me.
I don't want to coorperate with you and contribute with you ! and won't advice to you how to fix the bugs
because you are an insufferable know-it-all !

Newbie

Posts

Joined
Mon Apr 13, 2009 6:17 pm
Who is online

Users browsing this forum: Semrush [Bot] and 20 guests