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.