Jump to content

Integrating a HTML Payment Button in a CMS page


Quenncy

Recommended Posts

How can I integrate a HTML payment button from my merchant "Payeezy" in to one of my CMS pages? Every time I try I continue to get an error "The Content Field is Invalid". I have googled allot on this prestashop error and have tried many solutions including editing my "tinymce.inc.js" file and "Validate.php" file along with turning ON my ALLOW IFrames on HTML Fields button and turning OFF my Use HTML Purifier Library button in my Preferences\General Menu. 

 

 

post-436663-0-43617000-1460994382_thumb.jpg

post-436663-0-42792900-1460994921_thumb.jpg

Link to comment
Share on other sites

I did in the Thumbnail attachments but I will again below if it will better help you help me.

 

Thanks Again,

Quenncy

 

 

Well I said I would but after finding this box is not Paste friendly in any form using I.E. browser I can't so I put it in another screen shoot in word so it can be seen.

 

So I Edited this POST using Chrome this time instead of I.E. and was able to Paste the HTML Code for the Button.

 

<div id="cp7aa7e32ed7" style="margin: 10px 0" onclick="document.getElementById('pay_now_form_a2893deaca').submit()"><div><div class='r-bg '><span class='r-fg r-fg-3'></span> <span class='r-fg r-fg-2'></span> <span class='r-fg r-fg-1'></span> <span class='r-fg r-fg-0'></span> </div><form action="https://globalgatewaye4.firstdata.com/pay" id="pay_now_form_a2893deaca" method="post"><input name="x_login" type="hidden" value="WSP-USPL-0d9j6QBogw" /><input name="x_show_form" type="hidden" value="PAYMENT_FORM" /><input name="x_fp_sequence" type="hidden" value="14608666032843235285" /><input name="x_fp_hash" type="hidden" value="PNB-1.0-0b1d3e6235e9c1fdb36ac5d0e975000a2443f925" /><input name="x_amount" type="hidden" value="" /><input name="x_currency_code" type="hidden" value="USD" /><input name="x_test_request" type="hidden" value="FALSE" /><input name="x_relay_response" type="hidden" value="" /><input name="donation_prompt" type="hidden" value="" /><input name="button_code" type="hidden" value="US Pawn and Loan" /><div class="cpwrap"><button type="button">US Pawn Payment Here</button></div></form><div class='r-bg '><span class='r-fg r-fg-0'></span> <span class='r-fg r-fg-1'></span> <span class='r-fg r-fg-2'></span> <span class='r-fg r-fg-3'></span> </div></div></div><style type="text/css">div#cp7aa7e32ed7{width: 200px; background-color: #FF9900;}div#cp7aa7e32ed7:hover{cursor: pointer}div#cp7aa7e32ed7 * {background-color: #FFAA00;}div#cp7aa7e32ed7 form{margin:0; padding:0;text-align:center}div#cp7aa7e32ed7 div.cpwrap {width: 90%;border:0;margin:0 auto;padding: 0px; background-color: #FF9900}div#cp7aa7e32ed7 button{width: 95%;border:0;margin:0;padding: 3px 0; background-color: #FF9900;text-align: center; color: #FFFFFF; }div#cp7aa7e32ed7:hover button {text-decoration: underline}div#cp7aa7e32ed7 button:focus,div#cp7aa7e32ed7 button:visited,div#cp7aa7e32ed7 button:active{border:none;outline: none}div#cp7aa7e32ed7 button {font-size: 16px}div#cp7aa7e32ed7 div.cpwrap {border-left: 3px solid #FFAA00; border-right: 3px solid #FFAA00}div#cp7aa7e32ed7 .r-fg{background-color: #FFAA00; border-color: #FFAA00}div#cp7aa7e32ed7 .r-bg{background-color: white}div#cp7aa7e32ed7 .r-fg{border-style: solid; border-width: 0px 1px; overflow: hidden; display: block; height: 1px; font-size: 1px}div#cp7aa7e32ed7 .r-fg-0{margin-left: 1px; margin-right: 1px; border-width: 0px 1px !important; height: 1px !important}div#cp7aa7e32ed7 .r-fg-1{margin-left: 2px; margin-right: 2px}div#cp7aa7e32ed7 .r-fg-2{margin-left: 3px; margin-right: 3px}div#cp7aa7e32ed7 .r-fg-3{margin-left: 5px; margin-right: 5px}</style>

post-436663-0-21215600-1461003760_thumb.jpg

Edited by Quenncy (see edit history)
Link to comment
Share on other sites

I think this is not allowed:

 

<form action="https://globalgatewa...rstdata.com/pay" id="pay_now_form_a2893deaca" method="post">
<input name="x_login" type="hidden" value="WSP-USPL-0d9j6QBogw" /><input name="x_show_form" type="hidden" value="PAYMENT_FORM" />
<input name="x_fp_sequence" type="hidden" value="14608666032843235285" />
<input name="x_fp_hash" type="hidden" value="PNB-1.0-0b1d3e6235e9c1fdb36ac5d0e975000a2443f925" />
<input name="x_amount" type="hidden" value="" />
<input name="x_currency_code" type="hidden" value="USD" />
<input name="x_test_request" type="hidden" value="FALSE" />
<input name="x_relay_response" type="hidden" value="" />
<input name="donation_prompt" type="hidden" value="" />
<input name="button_code" type="hidden" value="US Pawn and Loan" />
<div class="cpwrap">
<button type="button">US Pawn Payment Here</button>
</div>
</form> 
  • Like 1
Link to comment
Share on other sites

I found the answer here:

http://presta.[spam-filter]/index.php/prestashop-tips/6-extending-tinymce-editor-in-prestashop-1-6-the-full-story

 

#2 Specifically - Disable the html validation

 

a) in a clean text editor (e.g. notepad), create a clean file named Validate.php and copy paste the following code inside it:

<?php
class Validate extends ValidateCore {
public static function isCleanHtml($html, $allow_iframe = false)
{
return true;
}
}
?>

B) copy the file into the directory /override/classes/

c) delete the file /cache/class_index.php

 

 

Thanks for your help. This should be marked SOLVED.

Thanks again,

  • Like 1
Link to comment
Share on other sites

I found the answer here:

http://presta.[spam-filter]/index.php/prestashop-tips/6-extending-tinymce-editor-in-prestashop-1-6-the-full-story

 

#2 Specifically - Disable the html validation

 

a) in a clean text editor (e.g. notepad), create a clean file named Validate.php and copy paste the following code inside it:

<?php

class Validate extends ValidateCore {

public static function isCleanHtml($html, $allow_iframe = false)

{

return true;

}

}

?>

B) copy the file into the directory /override/classes/

c) delete the file /cache/class_index.php

 

 

Thanks for your help. This should be marked SOLVED.

Thanks again,

Don't use notepad. You need a editor that allows you to save "no BOM"

The notepad ++ by example.

I got a lot of issues before.

  • Like 1
Link to comment
Share on other sites

Don't use notepad. You need a editor that allows you to save "no BOM"

The notepad ++ by example.

I got a lot of issues before.

Thanks for the intel.  I just opened a new file in that directory location with c-panel file directory and pasted the content saved file and renamed it Validate.php and deleted file /cache/class_index.php.

 

Thanks,

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...