Hello! I'm setting up paypal standard for my ecommerce. Everything is fine except i can't send the shop logo to the paypal page.
Logo is set correctly (see attachment) and of right size: 190x60
I've enable the debug and this is the result:
PayPal request::
Array
(
[cmd] ⇒ _ext-enter
[redirect_cmd] ⇒ _xclick
[paymentaction] ⇒ sale
[upload] ⇒ 1
[business] ⇒ ***@***.com
[receiver_email] ⇒ ***@***.com
[order_number] ⇒ 9QU5011
[invoice] ⇒ ***
[custom] ⇒ ***
[currency_code] ⇒ EUR
[address_override] ⇒ 0
[first_name] ⇒ ***
[last_name] ⇒ ***
[address1] ⇒ ***
[address2] ⇒
[zip] ⇒ ***
[city] ⇒ ***
[state] ⇒ ***
[country] ⇒ IT
[email] ⇒ ***
[night_phone_b] ⇒
[return] ⇒ https://***/index.php?option=com_virtuemart&view=vmplg&task=pluginresponsereceived&on=9QU5011&pm=1&Itemid=567
[notify_url] ⇒ https://***/index.php?option=com_virtuemart&view=vmplg&task=notify&tmpl=component&lang=
[cancel_return] ⇒ https://***/index.php?option=com_virtuemart&view=vmplg&task=pluginUserPaymentCancel&on=9QU5011&pm=1&Itemid=567&lang=
[rm] ⇒ 2
[bn] ⇒ VirtueMart_Cart_PPA
[no_shipping] ⇒ 1
[no_note] ⇒ 1
[cpp_header_image] ⇒ https://***//images/virtuemart/payment/ameslogopaypal.jpg
[item_name] ⇒ Ordine Numero: 9QU5011
[amount] ⇒ 1478.64
)
(i've removed informations with *** but they are all there).
The only odd thing is that the cpp_header_image has an additional slash after the domain: https://***//images/virtuemart/payment/ameslogopaypal.jpg
Can this be the problem?
Thank you
QuoteThe only odd thing is that the cpp_header_image has an additional slash after the domain: https://***//images/virtuemart/payment/ameslogopaypal.jpg
try the link in a browser-- does it work?
yes it works, but i don't know if it's parsed by paypal.. i've never seen 2 slashes after the domain, don't know if it's ok :D
look in \plugins\vmpayment\paypal\paypal\helpers\paypal.php ~ line 355 function getLogoImage()
$rUrl = '/images/virtuemart/payment/' . $img;
if(!JFile::exists(VMPATH_ROOT .$rUrl)){
$rUrl = '/images/stories/virtuemart/payment/' . $img;
if(!JFile::exists(VMPATH_ROOT .$rUrl)) {
$rUrl = false;
}
}
try removing the 1st forward slashs on the /images/......
No solution sorry... now the url is right:
[image_url] ⇒ https://***.it/images/stories/virtuemart/vendor/ameslogovm.png
but still no image is passed to PP...
First You show:
Quotecpp_header_image] ⇒ https://***//images/virtuemart/payment/ameslogopaypal.jpg
Now you show .png ?
Quote[image_url] ⇒ https://***.it/images/stories/virtuemart/vendor/ameslogovm.png
Which is the correct URL to image, and what are You actually sending ?
Jörgen @ Kreativ Fotografi