Paypal Buy Now Button Issue

5 posts by 2 authors in: Forums > CMS Builder
Last Post: January 2, 2012   (RSS)

By KCMedia - January 2, 2012

Hi all

i have this page on this website that i need to have Buy Now button from paypal i have setup the products in cmsb and one field is textbox with the paypal code but it wont work the page just keeps not displaying any code.

here is the code from paypal below and also i have uploaded the shop page.

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHVwYJKoZIhvcNAQcEoIIHSDCCB0QCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYAkgyHQPQsPfRUhAnTZsA7lDJrQ+cgDpy4mkRe+hNIpUoA5jni+AXLXjlSD4u/c+PIMDHv2uHSvtjI4wMz0NUyLiYRHh5AqyWKHl6PWu0wIdIkBn4ddl+D80tUIN3BSQyOlUSG+2FsTWdVAzgE39mmW4/Ls60vwM7BoKj46djtwdzELMAkGBSsOAwIaBQAwgdQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIhl+WFfwlJR6AgbCTZVEfqqfkVaRSKFjZg0a24FBcFrWV+ZqAHGtVhVePj/HCIPhBAwxdDTXYUNVk6HnX2/bMqhMDxj5XV2+DL+omeo/qR4omxdFnzUtyHQWzFLhTFU2sm2ob04B24j23wpRk3ShMtsZzjMRzVmpya498EOPmKe/CgDFdlNWr5QzcFTasW3ol9oLr7dm6c8sbVb8MLuu7XkQ4fPLCZboUBTdUdPaAAaHGOTlMlnRWsISffaCCA4cwggODMIIC7KADAgECAgEAMA0GCSqGSIb3DQEBBQUAMIGOMQswC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Xb048hsP16l2vi0k5Q2JKiPDsEfBhGI+HnxLXEaUWAcVfCsQFvd2A1sxRr67ip5y2wwBelUecP3AjJ+YcxggGaMIIBlgIBATCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTEyMDEwMjEwMDYyNFowIwYJKoZIhvcNAQkEMRYEFADJki0NdIIpPzlFIqTm/0xyufFfMA0GCSqGSIb3DQEBAQUABIGAZ4oAsHVgIGPs8U1ICNZbjipbchSYR6+2Atcn4UReSSUOnkZBtQH2sRZ+f/uQ5iXhPJG6IpOIS71n+rLag/m6CNDumRcHEls5kQ5Z+MxrZct/sSvGAeXgwelprWDxIgQScAWBm3CehaoYz7clA5Mn5eHei50lqlWU3UoyIUwDQ6c=-----END PKCS7-----
">
<input type="image" src="https://www.paypalobjects.com/en_AU/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal — The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_AU/i/scr/pixel.gif" width="1" height="1">
</form>
Thanks



Craig

KC Media Solutions

www.kcmedia.biz
Attachments:

shop.php 5K

Re: [kcmedia] Paypal Buy Now Button Issue

By Jason - January 2, 2012

Hi Craig,

That is strange. There are a couple of things you can try.

The first I would try would be to hard code most of the form. Probably the only part of the form that would need to be dynamic would be the value of the "encrypted" field, the rest is probably static. So it would look something like this:


<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="encrypted" value="<?php echo $record['paypal_encrypted_value'];?>">
<input type="image" src="https://www.paypalobjects.com/en_AU/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal � The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_AU/i/scr/pixel.gif" width="1" height="1">
</form>


I would make the "paypal_encrypted_value" field a textfield (or if you wanted to use a text box, make sure you disable auto-formatting).

Give that a try and let us know what happens.

Thanks
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Paypal Buy Now Button Issue

By KCMedia - January 2, 2012

Hi Jason

anyway i do it and it wont work it just work with cmsb at all.

I have even tried putting the paypal code into a standard blank page and it works ok no issues but when i put the whole code into the cmsb code the page wont load.
Thanks



Craig

KC Media Solutions

www.kcmedia.biz

Re: [Jason] Paypal Buy Now Button Issue

By KCMedia - January 2, 2012

Hi Jason

i just emailed you the details.
Thanks



Craig

KC Media Solutions

www.kcmedia.biz