Open twain83 opened 7 years ago
Make sure you have Bitpay PHP Client installed. Remove previous problem api token pairing code, then use a new one.
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'" [] []
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