<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>28 Nov 2015 18:44:00 Z</lastBuildDate><pubDate>27 Nov 2015 23:09:00 Z</pubDate><description>Hi Guys,&#13;
&#13;
A really strange occurrence - the code below is the page initialisation of PAGE_CHECKOUT_SUCCESSFUL.&#13;
&#13;
The procedure is -&#13;
select goods&#13;
confirm customer (new or returning)&#13;
go to payment provider&#13;
return with parameter if successful.&#13;
&#13;
As you can see below, if it is a returning customer they already have a number. I perform the whole procedure once and it all works fine. If I do a second transaction, it performs everything correctly UNTIL it displays the PAGE_CHECKOUT_SUCCESSFULpage and then IGNORES all of the code below.&#13;
&#13;
Getting very confused and all help greatly appreciated.&#13;
&#13;
&#13;
// this all gets the successful from Worldpay or paypal. If buffer has Y - must have come from worldpay, P - comes from paypal&#13;
Edit_paid_by=""&#13;
g_transId is string = PageParameter("payment")&#13;
IF g_transId &gt;"" THEN&#13;
Edit_paid_by=g_transId&#13;
END&#13;
&#13;
&#13;
IF Edit_paid_by = "Y" THEN&#13;
ws_invoice_paymethod="Paid With Worldpay"&#13;
ELSE&#13;
ws_invoice_paymethod="Paid With Paypal"&#13;
END&#13;
&#13;
&#13;
&#13;
Static_telephone_no..Caption="TEL : "+w_location_phone&#13;
proc_invoice_from_all_false()&#13;
&#13;
// add new customer to system&#13;
IF ws_customer_key &lt; 1 THEN&#13;
// led_customer_header.led_customer_key=ws_customer_key&#13;
led_customer_header.led_customer_password=w_password&#13;
led_customer_header.led_customer_email=w_email&#13;
led_customer_header.led_customer_mobile=w_mobile&#13;
led_customer_header.led_customer_telephone=w_phone&#13;
led_customer_header.led_customer_address2=w_address2&#13;
led_customer_header.led_customer_town=w_town&#13;
led_customer_header.led_customer_postcode=w_postcode&#13;
led_customer_header.led_customer_county=w_county&#13;
led_customer_header.led_customer_country=w_country&#13;
led_customer_header.led_customer_address1=w_address1&#13;
led_customer_header.led_customer_business_name=w_business_name&#13;
led_customer_header.led_customer_surname=w_surname&#13;
led_customer_header.led_customer_forename=w_firstnames&#13;
led_customer_header.led_customer_title=w_title&#13;
led_customer_header.led_customer_date=DateSys()&#13;
led_customer_header.led_customer_time=Left(TimeSys(), 4)&#13;
HAdd(led_customer_header)&#13;
HReadLast(led_customer_header, led_customer_key)&#13;
ws_customer_key=led_customer_header.led_customer_key&#13;
END&#13;
&#13;
&#13;
//add invoice header&#13;
HReadSeek(led_customer_header,led_customer_key,ws_customer_key)&#13;
IF HFound(led_customer_header) THEN&#13;
led_invoice_header.led_invoice_customer_key=ws_customer_key&#13;
led_invoice_header.led_invoice_password=led_customer_header.led_customer_password&#13;
led_invoice_header.led_invoice_email=led_customer_header.led_customer_email&#13;
led_invoice_header.led_invoice_mobile=led_customer_header.led_customer_mobile&#13;
led_invoice_header.led_invoice_telephone=led_customer_header.led_customer_telephone&#13;
led_invoice_header.led_invoice_address2=led_customer_header.led_customer_address2&#13;
led_invoice_header.led_invoice_town=led_customer_header.led_customer_town&#13;
led_invoice_header.led_invoice_postcode=led_customer_header.led_customer_postcode&#13;
led_invoice_header.led_invoice_county=led_customer_header.led_customer_county&#13;
led_invoice_header.led_invoice_country=led_customer_header.led_customer_country&#13;
led_invoice_header.led_invoice_address1=led_customer_header.led_customer_address1&#13;
led_invoice_header.led_invoice_business_name=led_customer_header.led_customer_business_name&#13;
led_invoice_header.led_invoice_forename=led_customer_header.led_customer_forename&#13;
led_invoice_header.led_invoice_title=led_customer_header.led_customer_title&#13;
&#13;
IF W_checkout_address_CheckBox=False THEN&#13;
led_invoice_header.led_invoice_shipping_address1=w_shipping_address1&#13;
led_invoice_header.led_invoice_shipping_address2=w_shipping_address2&#13;
led_invoice_header.led_invoice_shipping_town=w_shipping_town&#13;
led_invoice_header.led_invoice_shipping_county=w_shipping_county&#13;
led_invoice_header.led_invoice_shipping_country=w_shipping_country&#13;
led_invoice_header.led_invoice_shipping_postcode=w_shipping_postcode&#13;
led_invoice_header.led_invoice_shipping_surname=w_shipping_surname&#13;
led_invoice_header.led_invoice_shipping_forename=w_shipping_firstnames&#13;
led_invoice_header.led_invoice_shipping_title=w_shipping_title&#13;
END&#13;
&#13;
led_invoice_header.led_invoice_date=DateSys()&#13;
led_invoice_header.led_invoice_time=Left(TimeSys(), 4)&#13;
// web booking has staff 999&#13;
led_invoice_header.led_invoice_staff_taking_booking=999&#13;
// full payment taken by web booking&#13;
led_invoice_header.led_invoice_basket_value=ws_basket_basketvalue&#13;
led_invoice_header.led_invoice_basket_discount=ws_basket_promotion_discount&#13;
led_invoice_header.led_invoice_delivery_charge=ws_basket_delivery_charge&#13;
led_invoice_header.led_invoice_total=ws_basket_invoice_total&#13;
led_invoice_header.led_invoice_status="N"&#13;
led_invoice_header.led_invoice_del_collected=ws_collection_by_customer&#13;
led_invoice_header.led_invoice_payment_method=ws_invoice_paymethod&#13;
&#13;
IF ws_basket_delivery_charge &gt; 0&#13;
led_invoice_header.led_invoice_delivery_charge=ws_basket_delivery_charge&#13;
led_invoice_header.led_invoice_delivery_quoteID=ws_basket_carrier_QuoteID&#13;
led_invoice_header.led_invoice_delivery_ServiceID=ws_basket_carrier_ServiceID&#13;
led_invoice_header.led_invoice_extra_notes= ws_basket_carrier_ServiceName + CRLF&#13;
ELSE&#13;
led_invoice_header.led_invoice_delivery_charge=0&#13;
led_invoice_header.led_invoice_delivery_quoteID=0&#13;
led_invoice_header.led_invoice_delivery_ServiceID=0&#13;
END&#13;
&#13;
HAdd(led_invoice_header)&#13;
END&#13;
&#13;
&#13;
TIA&#13;
&#13;
Mike</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55184-wb17-passing-parameters/read.awp</link><title>WB17 - Passing Parameters</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55184-wb17-passing-parameters-workaround-sorted-55194/read.awp</comments><pubDate>28 Nov 2015 18:44:00 Z</pubDate><description>Hi Allard,&#13;
&#13;
Thanks for the reply.&#13;
&#13;
What I have done is created 2 identical pages and the relevant page is opened depending t…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55184-wb17-passing-parameters-workaround-sorted-55194/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55184-wb17-passing-parameters-workaround-sorted-55194/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55184-wb17-passing-parameters/read.awp">WB17 - Passing Parameters</source><title>Re: WB17 - Passing Parameters *** WORKAROUND SORTED ***</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55184-wb17-passing-parameters-55186/read.awp</comments><pubDate>28 Nov 2015 03:02:00 Z</pubDate><description>HI&#13;
&#13;
What doe this procedure do ?&#13;
&#13;
proc_invoice_from_all_false()&#13;
&#13;
&#13;
Maybe try :&#13;
&#13;
IF g_transId &lt;&gt;"" THEN ( meaning not equ…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55184-wb17-passing-parameters-55186/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55184-wb17-passing-parameters-55186/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55184-wb17-passing-parameters/read.awp">WB17 - Passing Parameters</source><title>Re: WB17 - Passing Parameters</title></item></channel></rss>
