Skip to content
This repository has been archived by the owner on Aug 6, 2019. It is now read-only.

Bitpay magento 2 Error after add pairing code in admin panel version 2.1 #28

Open
twain83 opened this issue Oct 30, 2017 · 2 comments
Open

Comments

@twain83
Copy link

twain83 commented Oct 30, 2017

There was an error in var/log/payment_bitpay.log after put Pairing Code into admin panel in payment methods.

[2017-10-30 14:21:04] Bitpay.DEBUG: [INFO] In Bitpay_Core_Model_Config_PairingCode::save(): attempting to pair with BitPay with pairing code SRF26J6 [] []
[2017-10-30 14:21:04] Bitpay.DEBUG: [INFO] In \Bitpay\Core\Helper\Data::sendPairingRequest(): function called with the pairingCode parameter: SRF26J6 [] []
[2017-10-30 14:21:04] Bitpay.DEBUG: [INFO] In \Bitpay\Core\Helper\Data::registerAutoloader(): autoloader file was found and has been registered. [] []
[2017-10-30 14:21:04] Bitpay.DEBUG: [INFO] In \Bitpay\Core\Helper\Data::generateAndSaveKeys(): attempting to generate new keypair and save to database. [] []
[2017-10-30 14:21:05] Bitpay.DEBUG: [INFO] In \Bitpay\Core\Helper\Data::getKeyManager(): successfully created new BitPay KeyManager object. [] []
[2017-10-30 14:21:05] Bitpay.DEBUG: [INFO] In \Bitpay\Core\Helper\Data::generateAndSaveKeys(): key manager called to persist keypair to database. [] []
[2017-10-30 14:21:05] Bitpay.DEBUG: [INFO] In \Bitpay\Core\Helper\Data::getSinKey(): attempting to get the SIN parameter. [] []
[2017-10-30 14:21:05] Bitpay.DEBUG: [INFO] In \Bitpay\Core\Helper\Data::getPublicKey(): found an existing public key, returning that. [] []
[2017-10-30 14:21:05] Bitpay.DEBUG: [INFO] In \Bitpay\Core\Helper\Data::sendPairingRequest(): attempting to pair with the SIN parameter: Tf1pahXiYmMfKq195aMDMrSnTj4v6PQE7zC [] []
[2017-10-30 14:21:05] Bitpay.DEBUG: [INFO] In \Bitpay\Core\Helper\Data::sendPairingRequest(): using the label "Magento Polski". [] []
[2017-10-30 14:21:05] Bitpay.DEBUG: [INFO] In \Bitpay\Core\Helper\Data::getBitpayClient(): successfully created new BitPay Client object. [] []
[2017-10-30 14:21:06] Bitpay.DEBUG: [ERROR] Exception thrown while calling the sendPairingRequest() function. The specific error message is: "Invalid scope type 'pl'" [] []
php 5.6
apache 2.4
gmb and bc math is installed
phpinfo on http://booking.dev-efresh.pl/info.php

@feelinc
Copy link
Contributor

feelinc commented Nov 4, 2017

Make sure you have Bitpay PHP Client installed.
Remove previous problem api token pairing code, then use a new one.

@twain83
Copy link
Author

twain83 commented Nov 6, 2017

I installed Bitpay PHP Client and the error when I was trying to save pairing code was the same.

[2017-11-02 10:24:41] Bitpay.DEBUG: [ERROR] In \Bitpay\Core\Model\Method\Bitcoin::canUseCheckout(): There was an error retrieving the token store param from the database or this Magento store does not have a BitPay token. [] []
[2017-11-02 10:24:57] Bitpay.DEBUG: [ERROR] In \Bitpay\Core\Model\Method\Bitcoin::canUseCheckout(): There was an error retrieving the token store param from the database or this Magento store does not have a BitPay token. [] []
[2017-11-02 10:32:04] Bitpay.DEBUG: [ERROR] In \Bitpay\Core\Model\Method\Bitcoin::canUseCheckout(): There was an error retrieving the token store param from the database or this Magento store does not have a BitPay token. [] []
[2017-11-02 10:34:07] Bitpay.DEBUG: [ERROR] In \Bitpay\Core\Model\Method\Bitcoin::canUseCheckout(): There was an error retrieving the token store param from the database or this Magento store does not have a BitPay token. [] []
[2017-11-06 09:29:35] Bitpay.DEBUG: [INFO] In Bitpay_Core_Model_Config_PairingCode::save(): attempting to pair with BitPay with pairing code 9TbwLM1 [] []
[2017-11-06 09:29:35] Bitpay.DEBUG: [INFO] In \Bitpay\Core\Helper\Data::sendPairingRequest(): function called with the pairingCode parameter: 9TbwLM1 [] []
[2017-11-06 09:29:35] Bitpay.DEBUG: [INFO] In \Bitpay\Core\Helper\Data::registerAutoloader(): autoloader file was found and has been registered. [] []
[2017-11-06 09:29:35] Bitpay.DEBUG: [INFO] In \Bitpay\Core\Helper\Data::generateAndSaveKeys(): attempting to generate new keypair and save to database. [] []
[2017-11-06 09:29:36] Bitpay.DEBUG: [INFO] In \Bitpay\Core\Helper\Data::getKeyManager(): successfully created new BitPay KeyManager object. [] []
[2017-11-06 09:29:36] Bitpay.DEBUG: [INFO] In \Bitpay\Core\Helper\Data::generateAndSaveKeys(): key manager called to persist keypair to database. [] []
[2017-11-06 09:29:36] Bitpay.DEBUG: [INFO] In \Bitpay\Core\Helper\Data::getSinKey(): attempting to get the SIN parameter. [] []
[2017-11-06 09:29:36] Bitpay.DEBUG: [INFO] In \Bitpay\Core\Helper\Data::getPublicKey(): found an existing public key, returning that. [] []
[2017-11-06 09:29:36] Bitpay.DEBUG: [INFO] In \Bitpay\Core\Helper\Data::sendPairingRequest(): attempting to pair with the SIN parameter: Tf2yCK9ibwDW4sYAJNwJUD3Tv23LDeweAd8 [] []
[2017-11-06 09:29:36] Bitpay.DEBUG: [INFO] In \Bitpay\Core\Helper\Data::sendPairingRequest(): using the label "Magento Polski". [] []
[2017-11-06 09:29:36] Bitpay.DEBUG: [INFO] In \Bitpay\Core\Helper\Data::getBitpayClient(): successfully created new BitPay Client object. [] []
[2017-11-06 09:29:36] Bitpay.DEBUG: [ERROR] Exception thrown while calling the sendPairingRequest() function. The specific error message is: "Invalid scope type 'pl'" [] []

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants