Help - Search - Members - Calendar
Full Version: Problems with Paypal Cart
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
Boonteung69
Hi all,

I'm a newbie here and HTML is not really my expertise but I do have a basic website that makes some money selling drums and percussion instruments. I'm experiencing some problems and I would be extremely grateful if someone could please help me out here.....

I integrated a Paypal cart into my site and it worked very well for years. Then, one day, I changed the Paypal primary email address from 'drumculture@gmail.com' to 'drumculture.sales@gmail.com'.

Then I started hitting problems with my shop partially not working. Because I changed the primary email address, I started pasting the new code for some of my 'buy now' buttons. Then I started getting some problems. The buttons that I didn't change seem to still be working ok but for the ones I changed, when I tried to go ahead and 'buy now' for that item (as a test), it took me to my personal Paypal account but gave me the error "PayPal cannot process this transaction because of a problem with the seller's website. Please contact the seller directly to resolve this problem."

I have tried changing the primary email address back to ''drumculture@gmail.com' and repasting the code - no joy
I have tried changing the button option from 'Use my secure merchant account ID' to 'Use my primary email address' (which I have made sure is drumculture@gmail.com) - no joy

Here is the code:

Page URL: http://www.african-drumming.co.uk/buy-prof...nal-djembe.html

1. View Cart Button

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" >
<div align="right">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7----- MIIG1QYJKoZIhvcNAQcEoIIGxjCCBsICAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJ
BgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEG
A1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBh
bC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCIxh0HrMJBTImX5x1Og+ZJ2H5GfITSbkIwmQ+e8exWM1oS
GpYwbk5lo5pS8Cqxb/PgWghEmMVZnkhq19J3Fu0lgPdJktCJhm2MVotKNoAmp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3Vu
dGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UE
AxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/ cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1
vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwY
DVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0
wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTYxMDI0MDQ0MDE1WjAjBgk
qhkiG9w0BCQQxFgQUzir3/ 25hGpxfSERqCYj6wvTRUDEwDQYJKoZIhvcNAQEBBQAEgYC17wm0BP0pF2GIfCIk6TOgNeSycKx+yXNRv
rHrw34rotqzlIGwhiwA7qORNiNvwcPZnuak5H9b8RRzEYdMsVsJjROg+Qquy1B0xSc+4Wpq8NsofKClO
yDI7KAIty6st1/hqUn94lTZZZoruFzDJEE6xEtvbm4l7rxHh43WtT+zbQ==-----END PKCS7-----">
<input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_viewcart_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_GB/i/scr/pixel.gif" width="1" height="1">
</div>
</form>


2. This Button Doesn’t Work (Kambala Solo Djembe)(has dropdowns)

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="X5XFXRFKA6U3E">
<table>
<tr><td><input type="hidden" name="on0" value="Sizes">Sizes</td></tr><tr><td><select name="os0">
<option value="KDJ11802 - 14" head">KDJ11802 - 14" head £225.00 GBP</option>
<option value="KDJ11602 - 12" head">KDJ11602 - 12" head £210.00 GBP</option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="GBP">
<input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_cart_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_GB/i/scr/pixel.gif" width="1" height="1">
</form>

3. This Button Works (Kambala Master Series) (has no dropdowns)

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<div align="center">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="ERLCZD24HH6QU">
<input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_cart_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_GB/i/scr/pixel.gif" width="1" height="1">
</div>
</form>

Thanking you in advance guys sad.gif sad.gif
Christian J
QUOTE(Boonteung69 @ Oct 28 2016, 03:54 AM) *

Because I changed the primary email address, I started pasting the new code for some of my 'buy now' buttons.

Didn't you change the View Cart button code as well? My impression is that's the most important one, with its encrypted field and all. That said I'm not familiar with Paypal's shopping carts.

QUOTE
I have tried changing the button option from 'Use my secure merchant account ID' to 'Use my primary email address' (which I have made sure is drumculture@gmail.com) - no joy

According to https://developer.paypal.com/docs/classic/p...-paypal-account it seems your email address will be visible in the HTML if you use the "Use my primary email address" option, but I don't see any such buttons in your code examples. Anyway it seems using the merchant account ID is a better choice, even according to Paypal.

QUOTE
<option value="KDJ11802 - 14" head">KDJ11802 - 14" head £225.00 GBP</option>

The above is invalid HTML, you can't use double quotes both around and inside the VALUE string, since the second one will end the VALUE string (as a result, the form will send the value KDJ11802 - 14, while head" is probably ignored as stray code). Instead you might use an HTML entity inside VALUE:

CODE
<option value="KDJ11802 - 14&quot; head">KDJ11802 - 14" head £225.00 GBP</option>

The same error seems to appear in all OPTION elements on the linked page.
Christian J
Or you might simply write inch literally in the value:

CODE
<option value="KDJ11802 - 14inch head">KDJ11802 - 14" head £225.00 GBP</option>
Boonteung69
Hi Christian,

Thank you so much for helping me; that's very kind of you :-)

I tried making all the changes you suggested, and replaced <"> with <in.> in the coding.

It hasn't worked :-(
Boonteung69
I have been playing around with dummy (blank) pages on the website and it's definitely the drop-down coding that's causing a problem.

Very strange and very frustrating!
Boonteung69
I have found a way of fixing the problem, but I don't understand why it's working!

I was using the 'edit button' function within the paypal button creator, expecting the edit button function to work, and that has not been working. But this time I created a completely new button and that is working fine!

Thank you again for helping me :-)
Boonteung69
I figured it out, and you were absolutely correct Christian, it was to do with me using <"> within the paypal coding.

When I tried to fix the problem as you suggested, I was modifying the code in my website rather than amending the coding using the Paypal 'edit button' facility and that wasn't working (probably because of a mismatch between the coding on my website and the coding held on the Paypal server for that button). But now I have discovered that I need to change the coding in the Paypal editing facility, removing <"> in there, and then copying and pasting the amended code into my website html.

What's weird is that the site (and buttons) worked ok for about 2 years, and it was only when I made the changes because of having a new email address that things started to go wrong.

Anyway, I'm working on updating all of the shopping cart and once again, thank you very much indeed for your assistance

biggrin.gif

Christian J
QUOTE(Boonteung69 @ Oct 30 2016, 05:28 AM) *

I figured it out, and you were absolutely correct Christian, it was to do with me using <"> within the paypal coding.

When I tried to fix the problem as you suggested, I was modifying the code in my website rather than amending the coding using the Paypal 'edit button' facility and that wasn't working (probably because of a mismatch between the coding on my website and the coding held on the Paypal server for that button). But now I have discovered that I need to change the coding in the Paypal editing facility, removing <"> in there, and then copying and pasting the amended code into my website html.

What was different in the code Paypal generated? Only thing that stands out to me is the value in this field:

CODE
<input type="hidden" name="hosted_button_id" value="X5XFXRFKA6U3E">

Maybe such values are generated from the rest of the button codes and used as a checksum (just speculating). unsure.gif

QUOTE
Anyway, I'm working on updating all of the shopping cart and once again, thank you very much indeed for your assistance

You're welcome! smile.gif Interesting website, I've been involved a little with gambian drummers though I don't play drums myself.

There are a lot of links at the bottom of each page, that are easily missed. Can you reach all those pages from the menu at the top as well?



Boonteung69
"There are a lot of links at the bottom of each page, that are easily missed. Can you reach all those pages from the menu at the top as well?"

Yes, do you think that's a poor SEO strategy?
Christian J
Having a navigation menu both at the top and bottom shouldn't matter, AFAIK.

However, some of the links and pages at the bottom are almost identical, e.g.
african djembe and african djembe drum.
If that's done for SEO purposes I'm not sure how it's supposed to work --perhaps the different link texts are meant to enhance the Google PageRank slightly for each phrase, but that seems like a stretch.

See also
https://support.google.com/webmasters/answer/66359?hl=en
https://support.google.com/webmasters/answe...f_topic=6002025
Boonteung69
QUOTE(Christian J @ Oct 30 2016, 11:27 PM) *

Having a navigation menu both at the top and bottom shouldn't matter, AFAIK.

However, some of the links and pages at the bottom are almost identical, e.g.
african djembe and african djembe drum.
If that's done for SEO purposes I'm not sure how it's supposed to work --perhaps the different link texts are meant to enhance the Google PageRank slightly for each phrase, but that seems like a stretch.

See also
https://support.google.com/webmasters/answer/66359?hl=en
https://support.google.com/webmasters/answe...f_topic=6002025


My strategy (I built the site about 10 years ago) was to create many pages with specific keyword phrases. The pages are named differently and I tried to make the content different on each page so that it wouldn't appear to Google that it was duplicated text. Some of this uniquely named pages are ranking well in the organic search results.

I'll never know if this is scoring me down in the Google algorithm.

What was your connection with Gambia drumming?
Christian J
QUOTE(Boonteung69 @ Oct 31 2016, 01:39 AM) *

I'll never know if this is scoring me down in the Google algorithm.

Yeah, it's hard to gauge the effect, especially these days when Google changes the search results depending on where in the world it thinks the browser and website are located, and even your previous search history.

If you're still getting good search results I guess it doesn't harm anything SEO-wise (though it may confuse human visitors).

QUOTE
What was your connection with Gambia drumming?

I jammed a little with gambian drummers/musicians here in Sweden many years ago, but we mostly played reggae.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.