Post by sklein » Tue Mar 03, 2009 10:55 am

Hi,
I'm having some issues with the Paypal module (Opencart 1.1.8 ), hoping someone can shed some light.
1) Opencart is sending out the order 'thanks' emails before the order has actually been processed. That is, on the way out to Paypal., rather than after the payment has been processed.
2) The is no indication (at least in the Paypal Sandbox order notification emails) of the Opencart order id, thus no way to match up a received payment with an Opencart order.

Edit: I should add that I've tried setting the default order status to both 'pending' and 'processing', to no avail.

Thanks in advance,
Skye
Last edited by i2Paq on Thu Oct 14, 2010 3:20 pm, edited 1 time in total.
Reason: Topic moved

Newbie

Posts

Joined
Tue Mar 03, 2009 10:50 am

Post by MarkF » Mon Mar 23, 2009 3:41 am

Hi

did you resolve this?

Thanks,
Mark :)

New member

Posts

Joined
Tue Mar 17, 2009 9:54 pm

Post by hcnetworks » Mon Mar 23, 2009 5:23 am

Hi,
I have just stumbled upon OpenCart whilst looking for a nice lightweight shopping cart to use for a project I've just been asked to do.

To be honest I think it's fantastic, the templating system looks very easy to use and the admin area has just enough to keep the end user happy but not to much to drive them crazy!

Unfortunately I too have come across the PayPal problems listed above. In this state it pains me to say it will be unusable. However it seems such a shame as everything else looks so fantastic! so if anybody out there has already had a crack at this OR if anybody out there can point me in the right direction I'm more than willing to roll up my sleeves and have a go at resolving this issue.

you can always pm me on here or drop me an email to info@hypercore.co.uk

Matt

Newbie

Posts

Joined
Mon Mar 23, 2009 5:16 am

Post by JNeuhoff » Mon Mar 23, 2009 6:33 am

This sounds somewhat familiar. The old PayPal used to have similar issues in Opencart 0.7.9 before Qphoria sorted them out. Maybe we can port the PayPal module from Opencart 0.7.9 to Opencart 1.x, because that one is working fine now, including proper IPN support.

User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by Daniel » Mon Mar 23, 2009 6:34 am

As soon as the customer clicks the continue button to goto the paypal page the mail is sent and the order is registered.

You can not have the email sent on the success page because sometimes people just close their browser after making the payment.

You can not have the email sent on the call back sent from paypal to your store becuase the callback can be up to one month. It also takes time for the funds to be authrised.

Trust me this is not a bug. There is no other way of doing this 100%.

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Qphoria » Mon Mar 23, 2009 6:49 am

Daniel wrote: You can not have the email sent on the call back sent from paypal to your store becuase the callback can be up to one month. It also takes time for the funds to be authrised.

I think the likelyhood of this is low enough to be considered unrealistic. IPN is paypal's golden boy. They swear up and down by it, so yes they might "support" 1 month, but its more like 1 second in 99% of the cases.

The ajax-based email call on the confirm page is fine for a "Thanks for ordering, however your order will not be shipped until the paypal process is completed". Then after paypal callback occurs you can send another "Your paypal payment has been received". For 0.x, I am using the method that Paypals own dev forums recommend which is an IPN primary with a PDT backup. They refer to is as "Belt & Suspenders". Basically a system where each method backs up the other.

So I would certainly recommend following their guidelines, but you can still keep the ajax call for the initial received but not paid email.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by JNeuhoff » Mon Mar 23, 2009 6:57 am

Can't this thing be set up so that Paypal sends an instant message back to Opencart as soon as Paypal receives a newly submitted order? And the Opencart callback then sends an e-mail to the customer confirming the submission of the order. And when Paypal procesesses the payment, another message is sent to Opencart's callback function, and another e-mail is sent to the customer confirming the payment of the order. Just wondering...

In general, the callback function should be able to receive all sorts of important messages from the Payment gateway, including the initial order submission, successful credit card charge, order cancellation, etc, and process these messages in Opencart, including sending e-mails to the customer and automatically updating the order state in Opencart. That's how I basically did it with the Google Checkout, and though I haven't looked at the Paypal module I believe it could be done in a similar way.

User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by Daniel » Mon Mar 23, 2009 7:20 am

JNeuhoff wrote:Can't this thing be set up so that Paypal sends an instant message back to Opencart as soon as Paypal receives a newly submitted order? And the Opencart callback then sends an e-mail to the customer confirming the submission of the order. And when Paypal procesesses the payment, another message is sent to Opencart's callback function, and another e-mail is sent to the customer confirming the payment of the order. Just wondering...
It already does this. Just change the text on the order confirmed and order update mail page.
JNeuhoff wrote: In general, the callback function should be able to receive all sorts of important messages from the Payment gateway, including the initial order submission, successful credit card charge, order cancellation, etc, and process these messages in Opencart, including sending e-mails to the customer and automatically updating the order state in Opencart. That's how I basically did it with the Google Checkout, and though I haven't looked at the Paypal module I believe it could be done in a similar way.
I was planning on doing this aswell but thought just a basic paypal version for now would surfice.

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by MarkF » Mon Mar 23, 2009 8:20 am

Hi,

sorry if I have this wrong, especially as I haven't actually tried this yet, but does this mean that the PayPal module in v1.x doesn't work properly?

After the customer hits continue and goes to PayPal to make payment, when PayPal returns back to OC are you saying that it doesn't necessarily mean that payment has been accepted (or declined)?

So how, as the store owner do I know that I can deliver the product to the customer, safe in the knowledge that payment has been made?

Thanks,
Mark :)

New member

Posts

Joined
Tue Mar 17, 2009 9:54 pm

Post by Daniel » Mon Mar 23, 2009 8:36 am

MarkF wrote:Hi,

sorry if I have this wrong, especially as I haven't actually tried this yet, but does this mean that the PayPal module in v1.x doesn't work properly?

After the customer hits continue and goes to PayPal to make payment, when PayPal returns back to OC are you saying that it doesn't necessarily mean that payment has been accepted (or declined)?

So how, as the store owner do I know that I can deliver the product to the customer, safe in the knowledge that payment has been made?

Thanks,
Mark :)
FFS if you don't know PHP don't come up with poor conclusions. Check the code yourself.

PayPal works fine I have tested it myself. Even if the order has been accepted or declined you need to keep a record of it.

The paypal extension works fine. It does the callback and if the payment has been confirmed it changes the status of the order to what ever status you set the paypal order status to be.

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Qphoria » Mon Mar 23, 2009 8:59 am

I dont think he was coming up with a "poor conclusion" I think he was just asking a question.... ::)

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by MarkF » Mon Mar 23, 2009 5:46 pm

Indeed I was... :o
All I'm after is some clarity on how this all hangs together as I go through the workflow step by step ...

Regards
Mark :(

New member

Posts

Joined
Tue Mar 17, 2009 9:54 pm

Post by Daniel » Mon Mar 23, 2009 6:32 pm

everythign works. Just because you see people discussing somethign or wanting some extra features dpoes not mean the cart does not work.

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Qphoria » Mon Mar 23, 2009 9:03 pm

Daniel wrote:the cart does not work.
Ah! See..... the cart doesn't work! >:D ;D

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by JNeuhoff » Tue Mar 24, 2009 1:05 am

For 0.x, I am using the method that Paypals own dev forums recommend which is an IPN primary with a PDT backup. They refer to is as "Belt & Suspenders". Basically a system where each method backs up the other.
How hard would it be to port your PayPal improvements it to Opencart 1.x?

User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by Qphoria » Tue Mar 24, 2009 1:20 am

easy peasy

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by jnixus » Sat May 02, 2009 5:14 am

Has anyone seen this before? I am trying to enable call back for PayPal but receive the below error in the ssl weblog. I get a confirmation that settings saved successfully but when going back into Paypal > Edit in the admin interface this setting is back to 'Check Out' rather than 'Callback'. I am using apache and OpenCart 1.2.6.

I just wonder if anyone else have seen this? Is there a value in the DB which gets set when enabling call back? Is anyone using call back with this version of OpenCart successfully?

I replaced my IP and web server directories below.

Error Msg:
[Fri May 01 21:28:49 2009] [error] [client IP ADDRESS] PHP Notice: Undefined variable: paypal_confirm in /<my installation directory>/admin/view/template/payment/paypal.tpl on line 38, referer: https://<site url>/admin/index.php?route=extension/payment


Cheers for your help.

User avatar
New member

Posts

Joined
Fri Apr 17, 2009 3:26 am
Location - London

Post by Daniel » Sat May 02, 2009 7:02 am

yeah thats a bug. it should be paypal_callback

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by jnixus » Sat May 02, 2009 4:53 pm

Thanks for that Daniel. What URL should I put in the IPN configuration for this to work?

I have set the installation directory of OpenCart as the IPN url but the sandbox just hangs when clicking on Pay now.

User avatar
New member

Posts

Joined
Fri Apr 17, 2009 3:26 am
Location - London

Post by jnixus » Sat May 02, 2009 5:13 pm

OK, not sure if this is correct yet but I entered the URL as below and this seems to work fine.

https://<domain>/<open cart installation directory>/index.php?route=extension/payment

Thanks a lot for this.

User avatar
New member

Posts

Joined
Fri Apr 17, 2009 3:26 am
Location - London
Who is online

Users browsing this forum: No registered users and 9 guests