Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 ASP (Windows server) versions
 Pass Order ID to PayPal
Author « Topic »  

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  
Hi Janette, custom edits to the inccart are out of the scope of the support forum, you can try contacting one of the third party developers listed here https://www.ecommercetemplates.com/developers.asp

Winners never quit, quitters never win
CSS and Responsive Designs
User Manual for Ecommerce Templates

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  
Hi Janette, the order id is the invoice number and has been for a while. Are you trying to use a different number for invoice number?

Winners never quit, quitters never win
CSS and Responsive Designs
User Manual for Ecommerce Templates

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  
Hi Janette

Which PayPal method are you using as the Order Number really should be passed on.

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 :  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  
You should also get it on the PayPal email

Here's a copy of what I receive:

Receipt No: 0834-0418-5841-0166
Please keep this number for future reference, as your customer doesn't have a PayPal Transaction ID for this payment.
Invoice ID:549




* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000