Paypal Problems

Author Message

Gregory Mann

Wednesday 04 January 2006 7:36:16 am

Hi
I'm using ezpublish 3.6.2 on a red hat machine.
In trying to get the paypal extension to work, I'm running into problems. I've searched the forums, and set up my site.ini.append's to recognize the extension. When I do a test checkout, I get redirected to the proper paypal account, but then when I go through and complete transaction, and then I'm redirected back to my site, I get the " waiting on paymet server" message. It retrys 3 times and then tells me to contact the site administrator.

Unders Standard workflows, I set up the following:
Name:shop
type: Event/Payment gateway
type: Paypal

In triggers, I selected the "shop" workflow for the shop/checkout/before trigger.

I got these instructions from the article in the documentation site by Raymond Bosman. The only thing was in the workflow, he said to use the "shop" event, and there wasn't a shop event in my workflows.

I check my var/logs/ and I'm seeing that paypal is sending the info back to my site, but I'm also seeing the following, and I'm not sure how to fix it:

in ezpaypaltype.log:

04-01-2006 10-17 eZPaypalGateway::eZPaypalGateway()
04-01-2006 10-17 execute
04-01-2006 10-17 case EZ_REDIRECT_GATEWAY_OBJECT_NOT_CREATED
04-01-2006 10-17 createPaymentObject
04-01-2006 10-17 createRedirectionUrl
04-01-2006 10-17 createShortDescription
04-01-2006 10-17 descText=Test Product 1
04-01-2006 10-17 business = ga%40thenatoma.com
04-01-2006 10-17 item_name = Test+Product+1
04-01-2006 10-17 custom = 12
04-01-2006 10-17 no_shipping = 1
04-01-2006 10-17 localHost = www.thenatoma.com
04-01-2006 10-17 amount = 0.5
04-01-2006 10-17 currency_code = USD
04-01-2006 10-17 notify_url = http://www.thenatoma.com/index.php/news/paypal/notify_url/
04-01-2006 10-17 return = http://www.thenatoma.com/index.php/news/shop/checkout/
04-01-2006 10-17 cancel_return = http://www.thenatoma.com/shop/basket/
04-01-2006 10-17 return EZ_WORKFLOW_TYPE_STATUS_REDIRECT_REPEAT

In ezpaymentgateway.log:

04-01-2006 09-57 ----------
04-01-2006 09-57 eZPaymentGatewayType()
04-01-2006 10-03 ----------
04-01-2006 10-03 eZPaymentGatewayType()
04-01-2006 10-04 ----------
04-01-2006 10-04 eZPaymentGatewayType()
04-01-2006 10-11 ----------
04-01-2006 10-11 eZPaymentGatewayType()
04-01-2006 10-11 ----------
04-01-2006 10-11 eZPaymentGatewayType()
04-01-2006 10-12 ----------
04-01-2006 10-12 eZPaymentGatewayType()
04-01-2006 10-12 ----------
04-01-2006 10-12 eZPaymentGatewayType()
04-01-2006 10-13 ----------
04-01-2006 10-13 eZPaymentGatewayType()
04-01-2006 10-13 ----------
04-01-2006 10-13 eZPaymentGatewayType()
04-01-2006 10-17 ----------
04-01-2006 10-17 eZPaymentGatewayType()
04-01-2006 10-17 execute
04-01-2006 10-17 execute: EZ_PAYMENT_GATEWAY_GATEWAY_NOT_SELECTED
04-01-2006 10-17 selectGateway: ezpaypal
04-01-2006 10-17 createGateway. gateway_difinition: array (
'class_name' => 'ezpaypalgateway',
'description' => 'Paypal',
)
04-01-2006 10-17 ----------
04-01-2006 10-17 eZPaymentGatewayType()
04-01-2006 10-17 ----------
04-01-2006 10-17 eZPaymentGatewayType()

Also then when I go into the webshop interface in the admin tool, it does not show any orders and the new customer that I'm using to test the cart.

Any help greatly appreciated.

Greg Mann

A child of five would understand this. Send someone to fetch a child of five.

Groucho Marx

kracker (the)

Wednesday 04 January 2006 9:15:28 pm

Right Then...

Last time I tested this extension I remember having to setup (unknown) settings in the company's paypal account to use the extension. You may have already done this and not mentioned it. <i>*shrugs*</i>

1) If your getting returned to your site's checkout page (Q: Is this the URI where you are returned ) ...
2) If your getting the "waiting on payment server" message +3 retries .... and then tells me to contact the site administrator ....

I would wager a guess; you might not be getting the expected response returned from paypal (payment success / failure code from paypal) after payment information entry and redirection back to your site's checkout. Though that guess is blind.

End result ... is because payment success is not being received upon return to checkout from paypal payment information entry. Since it's not being received the whole order/checkout is canceled at the end of 3 retries and the information is basically dumped as a failed transaction (I've run into this one before :P ).

//kracker

<i>Living Legends - The Truth (Swollen Members)</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

kracker (the)

Wednesday 04 January 2006 9:48:32 pm

I actually put in a test order to the site in your debug info (laughing @kracker ...)

I was able to start, add to cart, checkout, confirm, enter paypal payment information (using credit), submit payment information, print payment receipt, continue (back to checkout) to the Order 1 [Pending] screen.

From the user side this all looks like a successfully completed transaction.

If your missing backend records or other information I guess there could be more subtle problems...

Though it looks like you have already resolved your paypal payment breakdown ...

//kracker
<i>Cake - Shallow Hal - Building A Religion</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 04:27:09
Script start
Timing: Jan 31 2025 04:27:09
Module start 'layout'
Timing: Jan 31 2025 04:27:09
Module start 'content'
Timing: Jan 31 2025 04:27:09
Module end 'content'
Timing: Jan 31 2025 04:27:09
Script end

Main resources:

Total runtime0.0148 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.0078151.1953
Module start 'layout' 0.00510.0029 739.203136.6328
Module start 'content' 0.00800.0054 775.835994.1094
Module end 'content' 0.01330.0015 869.945337.9922
Script end 0.0148  907.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002617.5787140.0002
Check MTime0.00128.0844140.0001
Mysql Total
Database connection0.00053.303510.0005
Mysqli_queries0.002416.297530.0008
Looping result0.00000.147910.0000
Template Total0.00107.110.0010
Template load0.00095.777610.0009
Template processing0.00021.253910.0002
Override
Cache load0.00064.139510.0006
General
dbfile0.00117.531480.0001
String conversion0.00000.080440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs