Author Topic: [SOLVED] PayPal express checkout vmError: Unexpected ACK type  (Read 580 times)

titolin10

  • Jr. Member
  • **
  • Posts: 80
  • A beginner
Hello everyone,

Back again with this issue that I found when I activated Paypal express checkout.

When I click on view cart or I navigate from menu link to cart I get the error.

The same when I try to click on the "Check Out Now" button.

Your help is highly appreciated.

VM3.6.10
J3.9.16

Regards



Error
vmError: Unexpected ACK type:

Notice: Undefined index: ACK in /home/user/domain-name/plugins/vmpayment/paypal/paypal/helpers/paypal.php on line 241

Notice: Undefined index: ACK in /home/user/domain-name/plugins/vmpayment/paypal/paypal/helpers/paypalexp.php on line 697

Notice: Undefined index: ACK in /home/user/domain-nameplugins/vmpayment/paypal/paypal/helpers/paypalexp.php on line 697

Notice: Undefined index: ACK in /home/user/domain-name/plugins/vmpayment/paypal/paypal/helpers/paypalexp.php on line 716

Notice: Undefined index: ACK in /home/user/domain-name/plugins/vmpayment/paypal/paypal/helpers/paypalexp.php on line 716

Notice: Undefined index: TRANSACTIONID in /home/user/domain-name/plugins/vmpayment/paypal/paypal/helpers/paypalexp.php on line 716

Notice: Undefined index: PAYMENTINFO_0_TRANSACTIONID in /home/user/domain-name/plugins/vmpayment/paypal/paypal/helpers/paypalexp.php on line 716

Notice: Undefined index: ACK in /home/user/domain-name/plugins/vmpayment/paypal/paypal/helpers/paypalexp.php on line 723

Notice: Undefined property: VirtueMartCart::$inConfirm in /home/user/domain-name/plugins/vmpayment/paypal/paypal.php on line 1403

Notice: Undefined index: ACK in /home/user/domain-name/plugins/vmpayment/paypal/paypal/helpers/paypal.php on line 241

Notice: Undefined index: ACK in /home/user/domain-name/plugins/vmpayment/paypal/paypal/helpers/paypalexp.php on line 697

Notice: Undefined index: ACK in /home/user/domain-name/plugins/vmpayment/paypal/paypal/helpers/paypalexp.php on line 697

Notice: Undefined index: ACK in /home/user/domain-name/plugins/vmpayment/paypal/paypal/helpers/paypalexp.php on line 716

Notice: Undefined index: ACK in /home/user/domain-nameplugins/vmpayment/paypal/paypal/helpers/paypalexp.php on line 716

Notice: Undefined index: TRANSACTIONID in /home/user/domain-name/plugins/vmpayment/paypal/paypal/helpers/paypalexp.php on line 716

Notice: Undefined index: PAYMENTINFO_0_TRANSACTIONID in /home/user/domain-name/plugins/vmpayment/paypal/paypal/helpers/paypalexp.php on line 716

Notice: Undefined index: ACK in /home/user/domain-name/plugins/vmpayment/paypal/paypal/helpers/paypalexp.php on line 723

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2750
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: PayPal express checkout vmError: Unexpected ACK type
« Reply #1 on: April 09, 2020, 08:26:41 am »
Have You updated Virtuemart AIO ?

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)

titolin10

  • Jr. Member
  • **
  • Posts: 80
  • A beginner
Re: PayPal express checkout vmError: Unexpected ACK type
« Reply #2 on: April 09, 2020, 17:16:20 pm »
Hello Jörgen, Thank you for replying to me.


I've updated it after your question but before you ask NO.

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2750
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: PayPal express checkout vmError: Unexpected ACK type
« Reply #3 on: April 09, 2020, 18:54:51 pm »
Have You emtied cache and seen any difference ?

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)

titolin10

  • Jr. Member
  • **
  • Posts: 80
  • A beginner
Re: PayPal express checkout vmError: Unexpected ACK type
« Reply #4 on: April 09, 2020, 20:13:42 pm »
I cleared cache but there is no difference

titolin10

  • Jr. Member
  • **
  • Posts: 80
  • A beginner
Re: PayPal express checkout vmError: Unexpected ACK type
« Reply #5 on: April 09, 2020, 20:14:45 pm »
I would mention that I'm testing using a sandbox. When clicking on checkout button it takes too long time sending request then it returns the error
vmError: Unexpected ACK type:

in my email inbox I get this message

Hello,

An error with your payment method paypal on your store . The details are logged in the file paypal.3.log.php

. The VirtueMart Team


When I check user/domain-name/administrator/logs


I find the file aypal.3.log.php  contains these lines of errors

Quote
#<?php die("Forbidden."); ?>

2020-04-08 18:19:08 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-08 18:19:08 ERROR vmError: Unexpected ACK type:
2020-04-08 18:19:08 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-08 18:19:08 ERROR vmError: Unexpected ACK type:
2020-04-08 18:22:04 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-08 18:22:04 ERROR vmError: Unexpected ACK type:
2020-04-08 18:22:04 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-08 18:22:04 ERROR vmError: Unexpected ACK type:
2020-04-08 18:25:34 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-08 18:25:34 ERROR vmError: Unexpected ACK type:
2020-04-08 18:25:34 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-08 18:25:34 ERROR vmError: Unexpected ACK type:
2020-04-08 18:29:08 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-08 18:29:08 ERROR vmError: Unexpected ACK type:
2020-04-08 18:29:08 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-08 18:29:08 ERROR vmError: Unexpected ACK type:
2020-04-08 18:49:31 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-08 18:49:31 ERROR vmError: Unexpected ACK type:
2020-04-08 18:55:41 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-08 18:55:41 ERROR vmError: Unexpected ACK type:
2020-04-08 18:55:41 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-08 18:55:41 ERROR vmError: Unexpected ACK type:
2020-04-08 19:00:31 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-08 19:00:31 ERROR vmError: Unexpected ACK type:
2020-04-08 19:00:31 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-08 19:00:31 ERROR vmError: Unexpected ACK type:
2020-04-08 19:15:33 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-08 19:15:33 ERROR vmError: Unexpected ACK type:
2020-04-08 19:15:33 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-08 19:15:33 ERROR vmError: Unexpected ACK type:
2020-04-09 15:14:14 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-09 15:14:14 ERROR vmError: Unexpected ACK type:
2020-04-09 15:14:14 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-09 15:14:14 ERROR vmError: Unexpected ACK type:
2020-04-09 16:09:58 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-09 16:09:58 ERROR vmError: Unexpected ACK type:
2020-04-09 16:09:58 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-09 16:09:58 ERROR vmError: Unexpected ACK type:
2020-04-09 16:09:58 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-09 16:09:58 ERROR vmError: Unexpected ACK type:
2020-04-09 16:09:58 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-09 16:09:58 ERROR vmError: Unexpected ACK type:
2020-04-09 16:11:18 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-09 16:11:18 ERROR vmError: Unexpected ACK type:
2020-04-09 16:11:18 ERROR ----CURL ERROR----: unable to set private key file: '/home/user/domain-name/administrator/components/com_virtuemart/Bp3auiXsYJ4FdiDTTCh0W/paypal/api.sandbox.paypal.com_DigicertG2_08202020.pem' type PEM
2020-04-09 16:11:18 ERROR vmError: Unexpected ACK type:

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2750
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: PayPal express checkout vmError: Unexpected ACK type
« Reply #6 on: April 09, 2020, 20:51:33 pm »
Incorrect credentials for PayPal express ?

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)

titolin10

  • Jr. Member
  • **
  • Posts: 80
  • A beginner
Re: PayPal express checkout vmError: Unexpected ACK type
« Reply #7 on: April 09, 2020, 21:21:07 pm »


I used my default sandbox business account to test with certificate that I downloaded from one of the paypal pages and immediately I uploaded the certificate to the safe path in VirtueMart and selected it from the payment configuration page. (I hope I didn't miss anything else to install the certificate).

titolin10

  • Jr. Member
  • **
  • Posts: 80
  • A beginner
Re: PayPal express checkout vmError: Unexpected ACK type
« Reply #8 on: April 09, 2020, 21:48:05 pm »
**Update

Just right now the issue solved after rechecking the credentials again (Thanks Jörgen)

For reference for other people who may search for the same error message:

When you use PayPal sandbox don't use account name as a user name (This was my mistake)

The sandbox account name is like an email address - don't use it as a username in payment configuration. instead, use the username with the password that you'll get in the "API Credentials" tab.

I don't know how I did it wrong maybe I was sleepy hahaha!

Thanks for the help Jörgen  :D

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2750
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: PayPal express checkout vmError: Unexpected ACK type
« Reply #9 on: April 10, 2020, 09:20:40 am »
Nice to hear that it has worked out for You :)

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)