Orders Module >> "unknown status" from PayPal

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
stainless
Forum Members
Forum Members
Posts: 27
Joined: Wed Apr 16, 2008 9:04 pm

Orders Module >> "unknown status" from PayPal

Post by stainless »

Hello!
When returning from PayPal checkout to My site, I get the message "Received an unknown status from the payment gateway".
Don't know what is correct variable which should be passed by PayPal to Orders Module. Now $status == 'SUCCESS' according to Gateway Complete Template and action.gateway_complete.php

Code: Select all

switch( $status )
  {
  case 'SUCCESS':
    {
This is the action is happening:

Code: Select all

default:
    // 1. Reset the gateway
    $gateway_module->reset();

    // 2. Display an error
    echo $this->DisplayErrorMessage($this->Lang('error_unknownstatus'));
    break;
It seemes that Orders don't recognize that the transaction was ok, so the order is stuck on "Proposed" while the customers money are gone :). No email is send to admin, Cart is not empty.
I'm using PayPal testing enviroment, to simulate the Buyer and the Seller.

I have just upgrade CMS ecommerce suite to the latest versions, now I'm running:
CMSMS 1.4.1
    * CGExtensions => 1.10.1
    * Cart => 1.1
    * FrontEndUsers => 1.5.3
    * Products => 2.1.2
    * CGSimpleSmarty => 1.3.1
    * PaypalGateway => 1.1
    * Orders => 1.1

Before that many things were wrong but PayPal step ironically worked well. Now everything is Ok despite PayPal checkout.
Can anyone know how to fix it by making changes in Orsers Module or some settings in PayPal?

Thanks!
Last edited by stainless on Wed Oct 01, 2008 9:11 pm, edited 1 time in total.
stainless
Forum Members
Forum Members
Posts: 27
Joined: Wed Apr 16, 2008 9:04 pm

Re: Orders Module >> "unknown status" from PayPal

Post by stainless »

IS this is such a mystery or is it so simple? :)
dinot
New Member
New Member
Posts: 5
Joined: Sun Nov 02, 2008 10:04 pm

Re: Orders Module >> "unknown status" from PayPal

Post by dinot »

I'm having the same issue. I've got everything working in the sandbox environment but when returning from paypal to the checkout page on my site I get this error:
Received an unknown status from the payment gateway

Did anyone else run into this and know the solution?
patty
New Member
New Member
Posts: 5
Joined: Tue Oct 31, 2006 4:09 pm

Re: Orders Module >> "unknown status" from PayPal

Post by patty »

I'm having the same error too ???
Duketown

Re: Orders Module >> "unknown status" from PayPal

Post by Duketown »

Hi,

I am by no means the developer on this module, but could someone share the total part of the source that starts with:

Code: Select all

switch( $status )
  {
  case 'SUCCESS':
    {
A bit technical, but ff no break is used, the next case situation is used or might be continueing with the 'default:' situation.
I doubt that this is the situation, but I'm not sure here.

Duketown
patty
New Member
New Member
Posts: 5
Joined: Tue Oct 31, 2006 4:09 pm

Re: Orders Module >> "unknown status" from PayPal

Post by patty »

This is it:

Code: Select all

{* gateway success template *}
{if $status == 'SUCCESS'}
<p>Your transaction ID:{$transaction_id} has been completed, and a receipt for your purchas has been emailed to you at {$email_address}. Thank you for shopping at {sitename}.</p>
<p>{$orders->Lang('gateway_success_message')}</p>
{else}
<p>Your transaction was not completed.  Either the operation was cancelled or some other error occurred.  Please confirm your payment information and try again.  Your cart has been emptied for your safety and convenience.  Thank you for your time.</p>
{/if}
Duketown

Re: Orders Module >> "unknown status" from PayPal

Post by Duketown »

Hi all,

Sorry beats me. First it's a switch in the source and next thing it is an if else situation.
If that solves the problem, please change the subject to include [Solved].

Duketown
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

[solved] Re: Orders Module >> "unknown status" from PayPal

Post by psy »

The following solved the issue for me...

There are some settings on the PayPal merchant account profile you need to configure.  If not set, the transaction ID is not returned which leads to the unknown payment status error message.


Activating Payment Data Transfer

To use PDT, you must activate PDT and Auto Return in your PayPal account profile. You must also acquire a PDT identity token, which is used in all PDT communication you send to PayPal.

Follow these steps to configure your account for PDT:

   1. Log in to your PayPal account.
   2. Click the Profile subtab.
   3. Click Website Payment Preferences in the Seller Preferences column.
   4. Under Auto Return for Website Payments, click the On radio button.
   5. For the Return URL, enter the URL on your site that will receive the transaction ID posted by PayPal after a customer payment.
   6. Under Payment Data Transfer, click the On radio button.
   7. Click Save.
   8. Click Website Payment Preferences in the Seller Preferences column.
   9. Scroll down to the Payment Data Transfer section of the page to view your PDT identity token.


See https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/howto_html_paymentdatatransfer for more info.


HTH
psy
Post Reply

Return to “Modules/Add-Ons”