Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 02-07-2017 12:30:41

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 936

PayPal orders are "completed" with paypalpp

My client just reported that orders coming back from PayPal paypalpp are marked as completed.
They should be "Pending Shipping".

I see this in ecom_gateway incdisp
$url_good  = $url_relay . '?payment_status=Completed&item_number=' . $order['order']['id'];

Is this the culprit?
If so, what should payment_status be? Pending%20Shipping? or what?
If not, where is that set so that we can change it?

Thanks!

Last edited by Blitzen (02-07-2017 12:32:51)

Offline

 

#2 02-08-2017 19:37:05

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19831
Website

Re: PayPal orders are "completed" with paypalpp

That is the PayPal status for the payment, not the V8 order status.


Nick Hendler

Offline

 

#3 02-09-2017 14:09:18

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 936

Re: PayPal orders are "completed" with paypalpp

Where is V8 payment set so that we can look at it?

Offline

 

#4 02-10-2017 08:55:55

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19831
Website

Re: PayPal orders are "completed" with paypalpp

I'm not sure I understand what you're looking for.  You can edit the PayPal Standard gateway using Store / Commerce / Processing Gateways.  The actual response codes handled are all listed there.


Nick Hendler

Offline

 

#5 02-10-2017 10:42:44

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 936

Re: PayPal orders are "completed" with paypalpp

When the data comes back from paypal, where is the order status set?

Offline

 

#6 02-13-2017 09:55:28

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19831
Website

Re: PayPal orders are "completed" with paypalpp

{private}/apps/ecom/ECOM_Order/ext/0000_status.php


Nick Hendler

Offline

 

#7 02-14-2017 12:52:39

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 936

Re: PayPal orders are "completed" with paypalpp

Okay - I'm confused. Is function exec called only by the return gateway program or other actions?

Is the status set when function exec is called after the data are returned from the payment provider? Where would that be set before entering function exec?

Same question about $item['shipstatus']?

Offline

 

#8 02-15-2017 08:38:49

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19831
Website

Re: PayPal orders are "completed" with paypalpp

(1) Yes, the functions in {private}/apps/ecom/ECOM_Order/ext are only processed once the gateway approves the order.

(2) It is only called during order processing after a valid gateway response.

(3) Both order status and item shipstatus are set using the referenced script, and they are set nowhere else, unless you modify the order in the management interface yourself.


Nick Hendler

Offline

 

#9 02-15-2017 19:23:20

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 936

Re: PayPal orders are "completed" with paypalpp

Thank you. That helps smile

Offline

 

Board footer