Open tangoslee opened 5 years ago
Thank you for modification. I've tested again.
Done: 2. and 5
onGoing:
it seems still has problems.
'$his' reference error in Data.php:444
isSandboxEnabled() always return 'active' whatever the admin chooses production or sandbox.
details
[22-Jan-2019 19:21:33 UTC] PHP Fatal error: Uncaught Error: Using $this when not in object context in /var/www/magento1/app/code/community/TendoPay/TendopayPayment/Helper/Data.php:444
Stack trace:
#0 /var/www/magento1/app/code/community/TendoPay/TendopayPayment/Helper/Data.php(205): TendoPay_TendopayPayment_Helper_Data::getConfigValues('active')
#1 /var/www/magento1/app/code/community/TendoPay/TendopayPayment/Helper/Data.php(175): TendoPay_TendopayPayment_Helper_Data::isSandboxEnabled()
#2 /var/www/magento1/app/code/community/TendoPay/TendopayPayment/controllers/StandardController.php(69): TendoPay_TendopayPayment_Helper_Data::get_authorization_endpoint_uri()
#3 /var/www/magento1/app/code/community/TendoPay/TendopayPayment/controllers/StandardController.php(97): TendoPay_TendopayPayment_StandardController->requestToken(Object(Mage_Sales_Model_Order))
#4 /var/www/magento1/app/code/core/Mage/Core/Controller/Varien/Action.php(418): TendoPay_TendopayPayment_StandardController->redirectAction()
#5 /var/www/magento1/app/code/core/Mage/Core/Controller/Varien/ in /var/www/magento1/app/code/community/TendoPay/TendopayPayment/Helper/Data.php on line 444
If the customer stops the payment process after checkout, the cart is clear and the stock of products is already deducted even though the payment has not completed. The cart and stock should be changed after the only when the payment completes successfully.
Installation Manual
Please review the above issues when you're available.
Thank you.
@tangoslee
1. API always works in 'sandbox' mode, it seems still has problems.
2. '$this' reference error in Data.php:444
_3. An error encountered during generating hashtocken
[message:protected] => Client error: `POST https://sandbox.tendopay.ph/payments/api/v1/authTokenRequest` resulted in a `422 Unprocessable Entity` response:
{"message":"The given data was invalid.","errors":{"tendopay_hash":["Incorrect or corrupted hash calculation."]}}
4. If the customer stops the payment process after checkout, the cart is clear and the stock of products is already deducted even though the payment has not completed. The cart and stock should be changed after the only when the payment completes successfully.
Other: Added guzzle using composer into lib directory and removed it from the module as to make it always up to date with the latest version.
Thank you.
System > configuration > payment methods > Tendopay
Currently, merchants cannot set those values.
In the issue1 (#1), the cart items are cleared when the customer back to cart page after met API errors. The items in the cart should keep the items until the order succeed.
Please provide a document; How to install the Tendopay plugin.
Misspelling
'Sendbox Mode' [x] 'Sandbox Mode' [O]