Post by zeeb100 » Tue Sep 29, 2009 9:04 pm

Hi guys I wanted to know as a double having carried out a PayPal transaction after the transaction does not call the callback function ()

ipn as I set:


http://www.mysite.com/store/index.php?r ... d/callback


the server is aruba

please help :-[

New member

Posts

Joined
Tue Sep 15, 2009 11:18 pm

Post by Daniel » Tue Sep 29, 2009 9:14 pm

version?

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by zeeb100 » Tue Sep 29, 2009 10:16 pm

open cart version 1.3.2 the last version

New member

Posts

Joined
Tue Sep 15, 2009 11:18 pm

Post by Qphoria » Wed Sep 30, 2009 12:12 am

Are you testing that the actual ipn isn't getting called with debug code in the callback function? or are you just assuming since the order didnt update, the function wasn't called?

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by zeeb100 » Wed Sep 30, 2009 12:54 am

ipn isn't getting called with debug code in the callback function

because I inserted the lines of code that generates a blank text file:

Code: Select all

file_put_contents ( 'ipndebug.txt', 'test');
and the file not generate ...

if i click the link
http://www.mysite.com/store/index.php?r ... d/callback
in any browser, the file is generated

New member

Posts

Joined
Tue Sep 15, 2009 11:18 pm

Post by Qphoria » Wed Sep 30, 2009 2:10 am

Are you on a localhost test machine or a real webhost? IPN certainly won't work on a localhost box.

Does this happen for every transaction with paypal? 5 out of 5 times?

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by zeeb100 » Wed Sep 30, 2009 6:47 pm

obviously on a real webhost However I still do not understand why the function not call :-\

New member

Posts

Joined
Tue Sep 15, 2009 11:18 pm

Post by Qphoria » Wed Sep 30, 2009 7:08 pm

zeeb100 wrote:obviously on a real webhost
You'd be surprised how many think it will work on their localhost. But the callback is really just a simple post to a link on your site. There should be no problem with actually getting there.

Try the Paypal IPN Simulator and goto that address via the simulator, does it work there?

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by zeeb100 » Wed Sep 30, 2009 7:20 pm

I tested the simulator and said ipn sent with success but nothing...


recapitulate
1. Installation Open cart
2. paypal account set url (if correct) and enable IPN
3. paypal standard skill set and test mode
4. create a test user on PayPal
5. make the transaction
6. pay by paypal
7. on completion of payment click on the button after confirmation
8. returns to order history Blank and callback() function not called and no textfile generated

New member

Posts

Joined
Tue Sep 15, 2009 11:18 pm

Post by Qphoria » Wed Sep 30, 2009 7:26 pm

zeeb100 wrote:I tested the simulator and said ipn sent with success but nothing...


recapitulate
1. Installation Open cart
2. paypal account set url (if correct) and enable IPN
3. paypal standard skill set and test mode
4. create a test user on PayPal
5. make the transaction
6. pay by paypal
7. on completion of payment click on the button after confirmation
8. returns to order history Blank and callback() function not called and no textfile generated
2. unnecessary as the ipn control is handled by the cart, but won't hurt anything
3. Ive never used test mode

I dont really use their test system as I've never had luck with it. I found it easier to test with my 2 live paypal accounts using 0.01 transactions.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by zeeb100 » Wed Sep 30, 2009 8:39 pm

I switched to test mode after making two actual transactions. after completing the transaizoni I found that order status is blank then check the database the column with order_status was set to zero and in the admin section does not appear any order.

New member

Posts

Joined
Tue Sep 15, 2009 11:18 pm

Post by Daniel » Wed Sep 30, 2009 9:01 pm

have you got any order statuses?

or did you delete them all?

some one else on this forum deleted all there order statuses and expected paypal to work.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by zeeb100 » Wed Sep 30, 2009 9:07 pm

yes i have 1 order status ... now try to delete all order status ...

New member

Posts

Joined
Tue Sep 15, 2009 11:18 pm

Post by Qphoria » Wed Sep 30, 2009 9:45 pm

no don't delete them... daniel was saying that does not work. he was being facetious.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by zeeb100 » Wed Sep 30, 2009 10:08 pm

this is the code button of paypal that return to the site:

Code: Select all

<form id="merchantReturn" action="http://www.xxxxxxx.com/store2/index.php?route=checkout/success" name="merchant_return" method="post">
<input type="hidden" value="60.00" name="mc_gross"/>
<input type="hidden" value="42 - Marco Grimaldi" name="invoice"/>
<input type="hidden" value="Ineligible" name="protection_eligibility"/>
<input type="hidden" value="confirmed" name="address_status"/>
<input type="hidden" value="KK6WVWMLN3NES" name="payer_id"/>
<input type="hidden" value="0.00" name="tax"/>
<input type="hidden" value="1 Main St" name="address_street"/>
<input type="hidden" value="06:40:46 Sep 30, 2009 PDT" name="payment_date"/>
<input type="hidden" value="Pending" name="payment_status"/>
<input type="hidden" value="windows-1252" name="charset"/>
<input type="hidden" value="95131" name="address_zip"/>
<input type="hidden" value="Test" name="first_name"/>
<input type="hidden" value="US" name="address_country_code"/>
<input type="hidden" value="Test User" name="address_name"/>
<input type="hidden" value="2.8" name="notify_version"/>
<input type="hidden" value="aGs=" name="custom"/>
<input type="hidden" value="verified" name="payer_status"/>
<input type="hidden" value="United States" name="address_country"/>
<input type="hidden" value="San Jose" name="address_city"/>
<input type="hidden" value="1" name="quantity"/>
<input type="hidden" value="zeeb_1253879820_per@inwind.it" name="payer_email"/>
<input type="hidden" value="AmWDa127nMyNwVvgndp45pkR6Vo8ArDcKJuxOL4ZU9iNcKzWIxWiFtIk" name="verify_sign"/>
<input type="hidden" value="38Y38002VD8956746" name="txn_id"/>
<input type="hidden" value="instant" name="payment_type"/>
<input type="hidden" value="User" name="last_name"/>
<input type="hidden" value="CA" name="address_state"/>
<input type="hidden" value="info@xxxx.com" name="receiver_email"/>
<input type="hidden" value="unilateral" name="pending_reason"/>
<input type="hidden" value="web_accept" name="txn_type"/>
<input type="hidden" value="xxxxxx" name="item_name"/>
<input type="hidden" value="EUR" name="mc_currency"/>
<input type="hidden" value="" name="item_number"/>
<input type="hidden" value="US" name="residence_country"/>
<input type="hidden" value="1" name="test_ipn"/>
<input type="hidden" value="aGs=" name="transaction_subject"/>
<input type="hidden" value="0.00" name="handling_amount"/>
<input type="hidden" value="" name="payment_gross"/>
<input type="hidden" value="0.00" name="shipping"/>
<input id="merchantReturn" class="continue" type="submit" value="Return to Merchant" name="merchant_return_link"/>
</form>
i see that
I noticed that the user information test than the registered user of PayPal on open cards are odiverse ... this means something?

New member

Posts

Joined
Tue Sep 15, 2009 11:18 pm

Post by Qphoria » Wed Sep 30, 2009 10:13 pm

The POST reply data isn't used (tho I think it should be as a backup method to ipn).. That data is just ignored and the IPN background reply is what is expected to trigger the order. But as you said the ipn post back isn't getting to you for some reason.

I can modify the module to utilize the POST back data on return to merchant, but it will only work if the user actually goes back to your site after payment. Best way to do this is to set "Auto return" to yes in your paypal account settings.

It's not a full solution to your problem, but it will at least provide backup.

Another thing I can add is the ajax pre-confirm option back. So that you can set the order to a "Pending" state when going to the paypal process, and then when the payment updates it can update it to a Processing state so you know the order confirmation went through. This will prevent you from losing your orders.

But its just another bandaid... I would try another webhost to see if you get ipn working there. A simple url post link should not be a problem for any server, but I've not heard of the ipn not getting back at all before.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by zeeb100 » Thu Oct 01, 2009 3:59 am

yes .... when the transaction is finalized users vengno redirected to my site in the checkout page confirming the transaction

New member

Posts

Joined
Tue Sep 15, 2009 11:18 pm
Who is online

Users browsing this forum: No registered users and 71 guests