SeaWolf
Active member
User upgrades is set with Stripe and PayPal, Stripe works fine for normal and recurring payment. PayPal works fine for normal payment, but not recurring payment.
I get this from my Server error log
Any help would be appreciated
ErrorException: Problem getting PayPal product (user_upgrade_5): The specified resource does not exist. src/XF/Error.php:82
Stack trace
#0 src/XF.php(262): XF\Error->logError('Problem getting...', false)
#1 src/XF/Payment/PayPalRest.php(351): XF::logError('Problem getting...')
#2 src/XF/Payment/PayPalRest.php(388): XF\Payment\PayPalRest->getProductById(Object(XF\Purchasable\Purchase), 'user_upgrade_5')
#3 src/XF/Pub/Controller/PurchaseController.php(35): XF\Payment\PayPalRest->initiatePayment(Object(XF\Pub\Controller\PurchaseController), Object(XF\Entity\PurchaseRequest), Object(XF\Purchasable\Purchase))
#4 src/XF/Mvc/Dispatcher.php(362): XF\Pub\Controller\PurchaseController->actionIndex(Object(XF\Mvc\ParameterBag))
#5 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XFurchase', 'Index', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\PurchaseController), NULL)
#6 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\PurchaseController), NULL)
#7 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#8 src/XF/App.php(2813): XF\Mvc\Dispatcher->run()
#9 src/XF.php(802): XF\App->run()
#10 index.php(23): XF::runApp('XF\\Pub\\App')
#11 {main}
Request state
array(4) {
["url"] => string(51) "/community/purchase/user_upgrade/?user_upgrade_id=5"
["referrer"] => string(76) "https://www.pragmacafe.ca/community/account/upgrades?token=2U167563NF313733Y"
["_GET"] => array(1) {
["user_upgrade_id"] => string(1) "5"
}
["_POST"] => array(6) {
["_xfToken"] => string(8) "********"
["payment_profile_id"] => string(1) "4"
["ct_checkjs"] => string(1) "0"
["_xfResponseType"] => string(4) "json"
["_xfWithData"] => string(1) "1"
["_xfRequestUri"] => string(51) "/community/account/upgrades?token=2U167563NF313733Y"
}
}
I get this from my Server error log
Any help would be appreciated
ErrorException: Problem getting PayPal product (user_upgrade_5): The specified resource does not exist. src/XF/Error.php:82
Stack trace
#0 src/XF.php(262): XF\Error->logError('Problem getting...', false)
#1 src/XF/Payment/PayPalRest.php(351): XF::logError('Problem getting...')
#2 src/XF/Payment/PayPalRest.php(388): XF\Payment\PayPalRest->getProductById(Object(XF\Purchasable\Purchase), 'user_upgrade_5')
#3 src/XF/Pub/Controller/PurchaseController.php(35): XF\Payment\PayPalRest->initiatePayment(Object(XF\Pub\Controller\PurchaseController), Object(XF\Entity\PurchaseRequest), Object(XF\Purchasable\Purchase))
#4 src/XF/Mvc/Dispatcher.php(362): XF\Pub\Controller\PurchaseController->actionIndex(Object(XF\Mvc\ParameterBag))
#5 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XFurchase', 'Index', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\PurchaseController), NULL)
#6 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\PurchaseController), NULL)
#7 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#8 src/XF/App.php(2813): XF\Mvc\Dispatcher->run()
#9 src/XF.php(802): XF\App->run()
#10 index.php(23): XF::runApp('XF\\Pub\\App')
#11 {main}
Request state
array(4) {
["url"] => string(51) "/community/purchase/user_upgrade/?user_upgrade_id=5"
["referrer"] => string(76) "https://www.pragmacafe.ca/community/account/upgrades?token=2U167563NF313733Y"
["_GET"] => array(1) {
["user_upgrade_id"] => string(1) "5"
}
["_POST"] => array(6) {
["_xfToken"] => string(8) "********"
["payment_profile_id"] => string(1) "4"
["ct_checkjs"] => string(1) "0"
["_xfResponseType"] => string(4) "json"
["_xfWithData"] => string(1) "1"
["_xfRequestUri"] => string(51) "/community/account/upgrades?token=2U167563NF313733Y"
}
}