FAS
Starting Member
USA
24 Posts Pre-sales questions only (More Details...)
|
Posted - 02/08/2018 : 13:50:24
I recently upgraded ECt to version v6.8.4. Prior to the upgrade I had configured inccart.asp to pass the Order IDs to paypal by adding "<InvoiceID>ASE-" & ordID & "</InvoiceID>" & to the below (around line 1713):
"<SetExpressCheckoutRequestDetails xmlns=""urn:ebay:apis:eBLBaseComponents"">" & _ IIfVs(checkoutmode="billmelater","<FundingSourceDetails><UserSelectedFundingSource>BML</UserSelectedFundingSource></FundingSourceDetails>") & _ "<OrderTotal currencyID=""" & countryCurrency & """>" & theestimate & "</OrderTotal>" & _ "<ReturnURL>" & storeurl & "cart.asp</ReturnURL><CancelURL>" & storeurl & "cart.asp</CancelURL>" & _ "<Custom>" & IIfVr(SESSION("clientID")<>"", "cid"&SESSION("clientID"), "sid"&thesessionid) & ":" & strip_tags2(getpost("PARTNER")) & "</Custom>" & _ "<InvoiceID>ASE-" & ordID & "</InvoiceID>" & "<PaymentAction>" & IIfVr(ppmethod=1, "Authorization", "Sale") & "</PaymentAction>"
and adding "&INVNUM=ASE-"&ordID & to below (around line 4667)
sXML=sXML & "&INVNUM=ASE-"&ordID & "&CUSTIP=" & REMOTE_ADDR & "&PWD=" & vs4 & "&USER=" & vs1 & "&CURRENCY=" & countryCurrency & "&AMT=" & FormatNumber((rs("ordShipping")+rs("ordStateTax")+rs("ordCountryTax")+rs("ordHSTTax")+rs("ordTotal")+rs("ordHandling"))-rs("ordDiscount"),2,-1,0,0) & "&BUTTONSOURCE=EcommerceTemplatesUS_Cart_PPA" & authorizeextraparams
I have tried modifying the new inccart.asp files but they only part passed to PayPal is Invoice ID: ASE - but no order number. Any suggestion as to how to pass the order id?
Janette
|
Sinbad
ECT Moderator
USA
65937 Posts |
Posted - 02/08/2018 : 14:24:56
|
dbdave
ECT Moderator
USA
10497 Posts |
Posted - 02/08/2018 : 14:42:02
Our order ID's are passed to Paypal with no hacks to the cart. Are you sure you still need that? We use Paypal payments Pro and Paypal, and both pass the order number to Paypal.
|
FAS
Starting Member
USA
24 Posts Pre-sales questions only (More Details...)
|
Posted - 02/09/2018 : 06:37:10
The emails I receive from PayPal stating that a Payment has been received do not show the Order Id or the reports I print from PayPal. Before upgrading, I added the below to inccart.asp. which added it to both the email and my reports. See image attached. I have added the same code to the upgraded files but the order number is not posted only "Invoice ID: ASE - "
"<InvoiceID>ASE-" & ordID & "</InvoiceID>" & to the below (around line 1713):
"<SetExpressCheckoutRequestDetails xmlns=""urn:ebay:apis:eBLBaseComponents"">" & _ IIfVs(checkoutmode="billmelater","<FundingSourceDetails><UserSelectedFundingSource>BML</UserSelectedFundingSource></FundingSourceDetails>") & _ "<OrderTotal currencyID=""" & countryCurrency & """>" & theestimate & "</OrderTotal>" & _ "<ReturnURL>" & storeurl & "cart.asp</ReturnURL><CancelURL>" & storeurl & "cart.asp</CancelURL>" & _ "<Custom>" & IIfVr(SESSION("clientID")<>"", "cid"&SESSION("clientID"), "sid"&thesessionid) & ":" & strip_tags2(getpost("PARTNER")) & "</Custom>" & _ "<InvoiceID>ASE-" & ordID & "</InvoiceID>" & "<PaymentAction>" & IIfVr(ppmethod=1, "Authorization", "Sale") & "</PaymentAction>"
and adding "&INVNUM=ASE-"&ordID & to below (around line 4667)
sXML=sXML & "&INVNUM=ASE-"&ordID & "&CUSTIP=" & REMOTE_ADDR & "&PWD=" & vs4 & "&USER=" & vs1 & "&CURRENCY=" & countryCurrency & "&AMT=" & FormatNumber((rs("ordShipping")+rs("ordStateTax")+rs("ordCountryTax")+rs("ordHSTTax")+rs("ordTotal")+rs("ordHandling"))-rs("ordDiscount"),2,-1,0,0) & "&BUTTONSOURCE=EcommerceTemplatesUS_Cart_PPA" & authorizeextraparams
[img]https://www.allsecurityequipment.com/images/PayPal.jpg[/img]
Janette
Edited by - FAS on 02/09/2018 06:54:36
|
dbdave
ECT Moderator
USA
10497 Posts |
Posted - 02/09/2018 : 11:20:00
Email from paypal. No hacking to cart  
Edited by - dbdave on 05/06/2023 08:01:25
|
FAS
Starting Member
USA
24 Posts Pre-sales questions only (More Details...)
|
Posted - 02/09/2018 : 12:20:30
Lucky you, unfortunately, it doesn't work for me. What version of ECT are you on? What does your inccart.asp file look like?
Janette
|
Sinbad
ECT Moderator
USA
65937 Posts |
Posted - 02/09/2018 : 12:26:22
|
FAS
Starting Member
USA
24 Posts Pre-sales questions only (More Details...)
|
Posted - 03/22/2018 : 14:11:59
Hello Sinbad,
From dbdave post it look like the order ID should pass to PayPal. Any reason why my order ID's are not passing show on the images I posted in my previous message?
Janette
|
Andy
ECT Moderator
95440 Posts |
Posted - 03/23/2018 : 00:55:56
|
FAS
Starting Member
USA
24 Posts Pre-sales questions only (More Details...)
|
Posted - 03/23/2018 : 06:53:41
Hello Andy,
We use PayPal Express. I need it to show like in the messages above.
I used the below code in inccart.asp but only "Invoice ID: ASE - " is passed not the order number.
"<SetExpressCheckoutRequestDetails xmlns=""urn:ebay:apis:eBLBaseComponents"">" & _ IIfVs(checkoutmode="billmelater","<FundingSourceDetails><UserSelectedFundingSource>BML</UserSelectedFundingSource></FundingSourceDetails>") & _ "<OrderTotal currencyID=""" & countryCurrency & """>" & theestimate & "</OrderTotal>" & _ "<ReturnURL>" & storeurl & "cart.asp</ReturnURL><CancelURL>" & storeurl & "cart.asp</CancelURL>" & _ "<Custom>" & IIfVr(SESSION("clientID")<>"", "cid"&SESSION("clientID"), "sid"&thesessionid) & ":" & strip_tags2(getpost("PARTNER")) & "</Custom>" & _ "<InvoiceID>ASE-" & ordID & "</InvoiceID>" & "<PaymentAction>" & IIfVr(ppmethod=1, "Authorization", "Sale") & "</PaymentAction>"
Janette
Edited by - FAS on 03/23/2018 06:56:16
|
Andy
ECT Moderator
95440 Posts |
Posted - 03/23/2018 : 08:55:16
I just double checked an order in PayPal and the order id is passed under Invoice ID and Custom when you view an order summary - do you see it there in your PayPal account when clicking on a recent order? Andy Please feel free to review / rate our software
|
FAS
Starting Member
USA
24 Posts Pre-sales questions only (More Details...)
|
Posted - 03/23/2018 : 08:59:15
I need it on the email PayPal sends me like the image I posted in my message above.
Janette
|
Phil
ECT Moderator
United Kingdom
7737 Posts |
Posted - 03/24/2018 : 05:21:36
|
|
|