VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: jabba on May 07, 2020, 12:36:33 PM

Title: Unable to send logo to paypal
Post by: jabba on May 07, 2020, 12:36:33 PM
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
Title: Re: Unable to send logo to paypal
Post by: GJC Web Design on May 07, 2020, 22:28:33 PM
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?
Title: Re: Unable to send logo to paypal
Post by: jabba on May 13, 2020, 21:41:04 PM
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
Title: Re: Unable to send logo to paypal
Post by: GJC Web Design on May 14, 2020, 23:16:41 PM
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/......
Title: Re: Unable to send logo to paypal
Post by: jabba on May 15, 2020, 10:25:39 AM
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...
Title: Re: Unable to send logo to paypal
Post by: Jörgen on May 15, 2020, 10:38:35 AM
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