News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Unable to send logo to paypal

Started by jabba, May 07, 2020, 12:36:33 PM

Previous topic - Next topic

jabba

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
Gianluca Gabella - CEO & Web Developer @ Pixed - www.pixed.it

GJC Web Design

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?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jabba

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
Gianluca Gabella - CEO & Web Developer @ Pixed - www.pixed.it

GJC Web Design

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/......
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jabba

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...
Gianluca Gabella - CEO & Web Developer @ Pixed - www.pixed.it

Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.