Save $50 on Dreamhost Hosting - Any Plan

As a preferred visitor, you can get $50 off of any Dreamhost hosting plan by using coupon code CWD50 when you check out, for a limited time. Dreamhost is a reliable hosting provider with solid customer service and a proven track record.

1 Month Free E-Faxing - Packetel Promo Code

Packetel provides by far the most reliable and affordable electronic faxing service. For a limited time, you can use Packetel promo code qgxhd32649 (case sensitive) to get your first month of faxing free. For more info, read our article on Packetel's Promotion Code.



Feb 20 2008

We were unable to decrypt the certificate id


Filed under: E-Commerce » Paypal,
Tools:

Paypal payment buttons not working?

The error We were unable to decrypt the certificate id has become quite common recently.  Most commonly it's a result of a WYSIWYG (What You See Is What You Get) editor such as FCKEditor or TinyMCE.  Basically, you obtain the button code for your Paypal Buy It Now or Subscription or other similar button to place in your webpage.  If you were copying and pasting this into raw HTML it would most likely work fine.  The problem with the WYSIWYG editors is that they, by default, when the page is processed, insert certain code elements.  For example, in the case of FCKEditor, a linebreak (<br />) element was inserted towards the end of the button code.

WYSIWYG Editors Changing Your Paypal Button Code

To resolve this, examine your button code by viewing the source code of your webpage, and compare it to the original code in Paypal.  If you notice anything different, particularly if there's a linebreak (<br />) or newline ("\n") element inserted, this is most likely causing the we were unable to decrypt the certificate id error.

Solution to Get Your Paypal Button Working Again

To get your Paypal button working again, try:

  • Turning off your WYSIWIG editor while you insert the code and save the page (or simply disabling the editor for that particular page)
  • Editing the source code (FCKEditor, for example, offers a "view source" button to users with that privilege) and backspacing content so it occurs side-by-side, and not on a separate line.  The editor may parse the new line by inserting a line break element (<br />), which will disrupt the button code. 

When you save the page and view its source compare the button code to the Paypal original button code again.  If they're the same, you should not be getting the above error anymore.

Average: 5 (3 votes)
Select your preferred way to display the comments and click "Save settings" to activate your changes.

Solution to Paypal button problem

I had to solve this problem to get a button working on my own site, which is powered by Drupal.

  1. Generate the button code on the Paypal site.
  2. Copy the code and paste it into notepad or another text editor.
  3. Make the entire code one line long - Notepad automatically wraps text at a certain length, just make sure no extra spaces exist in the code. Be sure "word wrap" is disabled, too.
  4. Copy this code and paste it into your WYSIWYG editor. The problem should be solved.

Compare Paypal button codes

When you save the page and view its source compare the button code to the Paypal original button code again. If they're the same, you should not be getting the above error anymore.

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options

CAPTCHA
This question is used to make sure you are a human visitor and to prevent spam submissions.