Amazon Pay not updated with VM 3.6.8 - still on 3.4.2; billto data incomplete

Started by k92, November 19, 2019, 10:27:57 AM

Previous topic - Next topic

k92

Hi all,

I recently updated from VirtueMart 3.4.2 to 3.6.8.
Every vmpayment plugin has been updated correctly to 3.6.8 as well but only Amazon is still on 3.4.2 (the one in the system folder and the on in the vmpayment folder, too).

It's a strange behavior because if I check the version number of the Amazon Pay plugin in the installation zip (com_virtuemart.3.6.8.10197_ext_aio/plugins/vmpayment/amazon/amazon.xml) it says:
<name>AMAZON</name>
    <creationDate>November 06 2019</creationDate>
    <author>The VirtueMart Development Team</author>
    <authorUrl>https://virtuemart.net</authorUrl>
    <copyright>Copyright (C) 2004 - 2019 Virtuemart Team. All rights reserved.</copyright>
    <license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
    <version>3.6.8</version>
    <description>AMAZON PAY plugin</description>
    <languages>
        <language tag="en-GB">en-GB.plg_vmpayment_amazon.ini</language>
    </languages>
    <files>
        <filename plugin="amazon">amazon.php</filename>
        <folder>language</folder>
    </files>


I already tried different things:

  • Installing via com_virtuemart.3.6.8.10197_package_or_extract.zip
  • Installing AIO again via com_virtuemart.3.6.8.10197_ext_aio.zip
  • Clearing Joomla cache
  • Refreshing cache of the plugin under Manage > Refresh cache

Edit:
I also tried replacing the following files:

  • Replaced folder on ftp: plugins/vmpayment/amazon with folder from zip: com_virtuemart.3.6.8.10197_ext_aio/plugins/vmpayment/amazon/
  • Replaced folder on ftp: plugins/system/amazon with folder from zip: com_virtuemart.3.6.8.10197_ext_aio/plugins/system/amazon/

If I do that, I'm getting several error message on my administrator page:
Warning: require_once(OffAmazonPaymentsService/MerchantValuesBuilder.php): failed to open stream: No such file or directory in /home/www/myserver/myfolder/plugins/vmpayment/amazon/library/OffAmazonPaymentsService/Client.php on line 23

Fatal error: require_once(): Failed opening required 'OffAmazonPaymentsService/MerchantValuesBuilder.php' (include_path='/home/www/web154.s92.goserver.host/hansepuzzle-dev/plugins/vmpayment/amazon/library') in /home/www/myserver/myfolder/plugins/vmpayment/amazon/library/OffAmazonPaymentsService/Client.php on line 23


I guess even if I found those files like MerchantValuesBuilder.php on the web and uploaded it, that wouldn't been a clean solution and I doubt it would work. Because I already tried uploading those missing files, but I'm just getting messages, that even more files are missing.

I would not mind but I currently have a problem with Amazon Pay which I hope can be solved by an update.
Currently, if someone pays via Amazon Pay, in the emails VirtueMart is sending out, customer data is incomplete.

Emails and debug info contain the following values for:

  • zip
  • city
  • country

The values of the following fields are shown as "-" in emails and debug info:

  • first name
  • last name
  • street
  • number

The zip, city and country is there but everything else is just shown by a "-".
Although the data in the VirtueMart administration ("orders") is complete.

Maybe somebody can help me here?
I already tried debugging but also in my var_dump() only zip, street and country is visible.

Thank you so much in advance!

GJC Web Design

and if u just zip the Amazon pay folder in the install pack and install that?
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

Dudebaker

It's not enough to zip the latest amazon folder from AiO and install this zip.
The missing files are not in the AiO package.

As mentioned here (http://forum.virtuemart.net/index.php?topic=141915.0) you'll have to download the magento-plugin.
Then copy all missing files from the lib folder to the amazon library-folder (plugins/vmpayment/amazon/library).
It seems that you do not have to override any existing files.

Testet with latest Virtuemart 3.6.10.