close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

PayPal Advanced passing item Name and/or Description

Thread began 6/05/2017 7:57 pm by TroyD | Last modified 6/22/2017 12:43 pm by TroyD | 279 views | 18 replies

Ray BorduinWebAssist

Looking at their API it seems that the number should start with 1 and not 0 when indexing the items. Actually that is a bit vague. I also see they have changed the name of L_AMT to L_COST it appears, and L_NUMBER to L_SKU. Although lower on the page it says to use L_AMT for amex transactions and says it only allows up to 6 items. The doc is a bit confusing:

https://developer.paypal.com/docs/classic/payflow/integration-guide/#payflow-connection-parameters

I think we should try changing the variable names and the indexing:

php:
$vars[] = 'L_NAME' . ($item_count+1) . '=' . urlencode(substr(strip_tags($cart->DisplayInfo("Name")), 0, 127));

      $vars[] = 'L_SKU' . ($item_count+1) . '=' . urlencode(substr($cart->DisplayInfo("ID"), 0, 127));
      $vars[] = 'L_DESC' . ($item_count+1) . '=' . urlencode(substr(strip_tags($cart->DisplayInfo("Description")), 0, 127));
      $vars[] = 'L_COST' . ($item_count+1) . '=' . urlencode(number_format($cart->DisplayInfo("Price"), 2, '.', ''));
      $vars[] = 'L_QTY' . ($item_count+1) . '=' . urlencode($cart->DisplayInfo("Quantity"));



If that doesn't work, maybe leave the indexing and change just the variable names:

php:
$vars[] = 'L_NAME' . ($item_count) . '=' . urlencode(substr(strip_tags($cart->DisplayInfo("Name")), 0, 127));

      $vars[] = 'L_SKU' . ($item_count) . '=' . urlencode(substr($cart->DisplayInfo("ID"), 0, 127));
      $vars[] = 'L_DESC' . ($item_count) . '=' . urlencode(substr(strip_tags($cart->DisplayInfo("Description")), 0, 127));
      $vars[] = 'L_COST' . ($item_count) . '=' . urlencode(number_format($cart->DisplayInfo("Price"), 2, '.', ''));
      $vars[] = 'L_QTY' . ($item_count) . '=' . urlencode($cart->DisplayInfo("Quantity"));



If that still doesn't work we will want to send that request to paypal support and see if they can shed some light on why it doesn't work at that point since their documentation is a bit confusing on the subject.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...