What's new
[XB] Payment Provider: NOWPayments

[XB] Payment Provider: NOWPayments [Paid] 2.0.1 Patch Level 3

No permission to buy ($20.00)

Painbaker

Administrator
Painbaker submitted a new resource:

[XB] Payment Provider: NOWPayments - Integrates the NOWPayments platform into your forum

Integrates the NOWPayments platform into your forum, offering flexible payment options for cryptocurrency and fiat transactions.

Features:​

  • Crypto and Fiat Payments: Accept a wide range of cryptocurrencies and traditional fiat currencies for purchases or upgrades.
  • Embedded Payment Form: Add a payment form directly on your site for a smooth checkout process.
  • Fee Customization: Decide who covers the transaction fees — either the payer...

Read more about this resource...
 
Interested in this, but would really like to see video of installing it, configuring it, and then how it integrates to my forum as an add-on, what options are like within admincp, etc.

Thought it said it was $20, but now see it's $40. would have to see more before buying... and don't know about NowPayments... would need to do research on them as well.

Any info you can provide here to help given there aren't many reviews yet, would be appreciated.
 
Interested in this, but would really like to see video of installing it, configuring it, and then how it integrates to my forum as an add-on, what options are like within admincp, etc.

Thought it said it was $20, but now see it's $40. would have to see more before buying... and don't know about NowPayments... would need to do research on them as well.

Any info you can provide here to help given there aren't many reviews yet, would be appreciated.
I've added the setup steps in the resource description.
We have a customer who's used it for a long time and hasn't reported any problems.
 
Interested in this, but would really like to see video of installing it, configuring it, and then how it integrates to my forum as an add-on, what options are like within admincp, etc.

Thought it said it was $20, but now see it's $40. would have to see more before buying... and don't know about NowPayments... would need to do research on them as well.

Any info you can provide here to help given there aren't many reviews yet, would be appreciated.


NowPayments is a part of Changenow.io which is one of the largest Crypto exchange/POS/Payment providers online.

I have been using both for a long time.

Easy registration on nowpayments.io allows you to create API which you populate within addon and .... bob is your uncle.
 
I just installed this plugin but still not work... i have this error:


Code:
Error: Call to a member function bulkSet() on null in src/addons/OzzModz/PaymentProviderNOWPayments/Payment/NOWPayments.php at line 228
OzzModz\PaymentProviderNOWPayments\Payment\NOWPayments->processPayment() in src/XF/Pub/Controller/PurchaseController.php at line 65
XF\Pub\Controller\PurchaseController->actionProcess() in src/XF/Mvc/Dispatcher.php at line 362
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
XF\App->run() in src/XF.php at line 806
XF::runApp() in index.php at line 23

PHP:
Server error log
GuzzleHttp\Exception\ClientException: Client error: `POST https://api.nowpayments.io/v1/subscriptions/plans` resulted in a `400 Bad Request` response: {"status":false,"statusCode":400,"code":"INVALID_REQUEST_PARAMS","message":"title length must be less than or equal to 5 (truncated...) src/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
Generated by: est3ban129 Jan 7, 2025 at 6:41 AM
Stack trace
#0 src/vendor/guzzlehttp/guzzle/src/Middleware.php(72): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response), NULL, Array, NULL)
#1 src/vendor/guzzlehttp/promises/src/Promise.php(209): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
#2 src/vendor/guzzlehttp/promises/src/Promise.php(158): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), NULL)
#3 src/vendor/guzzlehttp/promises/src/TaskQueue.php(52): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
#4 src/vendor/guzzlehttp/promises/src/Promise.php(251): GuzzleHttp\Promise\TaskQueue->run(true)
#5 src/vendor/guzzlehttp/promises/src/Promise.php(227): GuzzleHttp\Promise\Promise->invokeWaitFn()
#6 src/vendor/guzzlehttp/promises/src/Promise.php(272): GuzzleHttp\Promise\Promise->waitIfPending()
#7 src/vendor/guzzlehttp/promises/src/Promise.php(229): GuzzleHttp\Promise\Promise->invokeWaitList()
#8 src/vendor/guzzlehttp/promises/src/Promise.php(69): GuzzleHttp\Promise\Promise->waitIfPending()
#9 src/vendor/guzzlehttp/guzzle/src/Client.php(189): GuzzleHttp\Promise\Promise->wait()
#10 src/vendor/guzzlehttp/guzzle/src/ClientTrait.php(95): GuzzleHttp\Client->request('POST', 'https://api.now...', Array)
#11 src/addons/OzzModz/PaymentProviderNOWPayments/Helper/NOWPaymentsApi.php(259): GuzzleHttp\Client->post('https://api.now...', Array)
#12 src/addons/OzzModz/PaymentProviderNOWPayments/Payment/NOWPayments.php(203): OzzModz\PaymentProviderNOWPayments\Helper\NOWPaymentsApi->createPlan(Array)
#13 src/XF/Pub/Controller/PurchaseController.php(65): OzzModz\PaymentProviderNOWPayments\Payment\NOWPayments->processPayment(Object(OzzModz\PaymentProviderNOWPayments\XF\Pub\Controller\Purchase), Object(XF\Entity\PurchaseRequest), Object(XF\Entity\PaymentProfile), Object(XF\Purchasable\Purchase))
#14 src/XF/Mvc/Dispatcher.php(362): XF\Pub\Controller\PurchaseController->actionProcess(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Purchase', 'Process', Object(XF\Mvc\RouteMatch), Object(OzzModz\PaymentProviderNOWPayments\XF\Pub\Controller\Purchase), NULL)
#16 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(OzzModz\PaymentProviderNOWPayments\XF\Pub\Controller\Purchase), NULL)
#17 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#18 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#19 src/XF.php(806): XF\App->run()
#20 index.php(23): XF::runApp('XF\\Pub\\App')
#21 {main}
Request state
array(4) {
  ["url"] => string(72) "/index.php?purchase/process&request_key=dO9lNk1hky73wJrJcO7pz7YdP59K5BRT"
  ["referrer"] => string(44) "https://xxxxxxxx.es/index.php?suscripciones/"
  ["_GET"] => array(2) {
    ["purchase/process"] => string(0) ""
    ["request_key"] => string(32) "dO9lNk1hky73wJrJcO7pz7YdP59K5BRT"
  }
  ["_POST"] => array(5) {
    ["_xfToken"] => string(8) "********"
    ["email"] => string(20) "[email protected]"
    ["_xfResponseType"] => string(4) "json"
    ["_xfWithData"] => string(1) "1"
    ["_xfRequestUri"] => string(25) "/index.php?suscripciones/"
  }
}

I try to use with subscriptions.
One time payments work fine.
 
Last edited:
I just installed this plugin but still not work... i have this error:


Code:
Error: Call to a member function bulkSet() on null in src/addons/OzzModz/PaymentProviderNOWPayments/Payment/NOWPayments.php at line 228
OzzModz\PaymentProviderNOWPayments\Payment\NOWPayments->processPayment() in src/XF/Pub/Controller/PurchaseController.php at line 65
XF\Pub\Controller\PurchaseController->actionProcess() in src/XF/Mvc/Dispatcher.php at line 362
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
XF\App->run() in src/XF.php at line 806
XF::runApp() in index.php at line 23

PHP:
Server error log
GuzzleHttp\Exception\ClientException: Client error: `POST https://api.nowpayments.io/v1/subscriptions/plans` resulted in a `400 Bad Request` response: {"status":false,"statusCode":400,"code":"INVALID_REQUEST_PARAMS","message":"title length must be less than or equal to 5 (truncated...) src/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
Generated by: est3ban129 Jan 7, 2025 at 6:41 AM
Stack trace
#0 src/vendor/guzzlehttp/guzzle/src/Middleware.php(72): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response), NULL, Array, NULL)
#1 src/vendor/guzzlehttp/promises/src/Promise.php(209): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
#2 src/vendor/guzzlehttp/promises/src/Promise.php(158): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), NULL)
#3 src/vendor/guzzlehttp/promises/src/TaskQueue.php(52): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
#4 src/vendor/guzzlehttp/promises/src/Promise.php(251): GuzzleHttp\Promise\TaskQueue->run(true)
#5 src/vendor/guzzlehttp/promises/src/Promise.php(227): GuzzleHttp\Promise\Promise->invokeWaitFn()
#6 src/vendor/guzzlehttp/promises/src/Promise.php(272): GuzzleHttp\Promise\Promise->waitIfPending()
#7 src/vendor/guzzlehttp/promises/src/Promise.php(229): GuzzleHttp\Promise\Promise->invokeWaitList()
#8 src/vendor/guzzlehttp/promises/src/Promise.php(69): GuzzleHttp\Promise\Promise->waitIfPending()
#9 src/vendor/guzzlehttp/guzzle/src/Client.php(189): GuzzleHttp\Promise\Promise->wait()
#10 src/vendor/guzzlehttp/guzzle/src/ClientTrait.php(95): GuzzleHttp\Client->request('POST', 'https://api.now...', Array)
#11 src/addons/OzzModz/PaymentProviderNOWPayments/Helper/NOWPaymentsApi.php(259): GuzzleHttp\Client->post('https://api.now...', Array)
#12 src/addons/OzzModz/PaymentProviderNOWPayments/Payment/NOWPayments.php(203): OzzModz\PaymentProviderNOWPayments\Helper\NOWPaymentsApi->createPlan(Array)
#13 src/XF/Pub/Controller/PurchaseController.php(65): OzzModz\PaymentProviderNOWPayments\Payment\NOWPayments->processPayment(Object(OzzModz\PaymentProviderNOWPayments\XF\Pub\Controller\Purchase), Object(XF\Entity\PurchaseRequest), Object(XF\Entity\PaymentProfile), Object(XF\Purchasable\Purchase))
#14 src/XF/Mvc/Dispatcher.php(362): XF\Pub\Controller\PurchaseController->actionProcess(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Purchase', 'Process', Object(XF\Mvc\RouteMatch), Object(OzzModz\PaymentProviderNOWPayments\XF\Pub\Controller\Purchase), NULL)
#16 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(OzzModz\PaymentProviderNOWPayments\XF\Pub\Controller\Purchase), NULL)
#17 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#18 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#19 src/XF.php(806): XF\App->run()
#20 index.php(23): XF::runApp('XF\\Pub\\App')
#21 {main}
Request state
array(4) {
  ["url"] => string(72) "/index.php?purchase/process&request_key=dO9lNk1hky73wJrJcO7pz7YdP59K5BRT"
  ["referrer"] => string(44) "https://xxxxxxxx.es/index.php?suscripciones/"
  ["_GET"] => array(2) {
    ["purchase/process"] => string(0) ""
    ["request_key"] => string(32) "dO9lNk1hky73wJrJcO7pz7YdP59K5BRT"
  }
  ["_POST"] => array(5) {
    ["_xfToken"] => string(8) "********"
    ["email"] => string(20) "[email protected]"
    ["_xfResponseType"] => string(4) "json"
    ["_xfWithData"] => string(1) "1"
    ["_xfRequestUri"] => string(25) "/index.php?suscripciones/"
  }
}

I try to use with subscriptions.
One time payments work fine.

Painbaker will answer as soon as possible.
 
I just installed this plugin but still not work... i have this error:


Code:
Error: Call to a member function bulkSet() on null in src/addons/OzzModz/PaymentProviderNOWPayments/Payment/NOWPayments.php at line 228
OzzModz\PaymentProviderNOWPayments\Payment\NOWPayments->processPayment() in src/XF/Pub/Controller/PurchaseController.php at line 65
XF\Pub\Controller\PurchaseController->actionProcess() in src/XF/Mvc/Dispatcher.php at line 362
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
XF\App->run() in src/XF.php at line 806
XF::runApp() in index.php at line 23

PHP:
Server error log
GuzzleHttp\Exception\ClientException: Client error: `POST https://api.nowpayments.io/v1/subscriptions/plans` resulted in a `400 Bad Request` response: {"status":false,"statusCode":400,"code":"INVALID_REQUEST_PARAMS","message":"title length must be less than or equal to 5 (truncated...) src/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
Generated by: est3ban129 Jan 7, 2025 at 6:41 AM
Stack trace
#0 src/vendor/guzzlehttp/guzzle/src/Middleware.php(72): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response), NULL, Array, NULL)
#1 src/vendor/guzzlehttp/promises/src/Promise.php(209): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
#2 src/vendor/guzzlehttp/promises/src/Promise.php(158): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), NULL)
#3 src/vendor/guzzlehttp/promises/src/TaskQueue.php(52): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
#4 src/vendor/guzzlehttp/promises/src/Promise.php(251): GuzzleHttp\Promise\TaskQueue->run(true)
#5 src/vendor/guzzlehttp/promises/src/Promise.php(227): GuzzleHttp\Promise\Promise->invokeWaitFn()
#6 src/vendor/guzzlehttp/promises/src/Promise.php(272): GuzzleHttp\Promise\Promise->waitIfPending()
#7 src/vendor/guzzlehttp/promises/src/Promise.php(229): GuzzleHttp\Promise\Promise->invokeWaitList()
#8 src/vendor/guzzlehttp/promises/src/Promise.php(69): GuzzleHttp\Promise\Promise->waitIfPending()
#9 src/vendor/guzzlehttp/guzzle/src/Client.php(189): GuzzleHttp\Promise\Promise->wait()
#10 src/vendor/guzzlehttp/guzzle/src/ClientTrait.php(95): GuzzleHttp\Client->request('POST', 'https://api.now...', Array)
#11 src/addons/OzzModz/PaymentProviderNOWPayments/Helper/NOWPaymentsApi.php(259): GuzzleHttp\Client->post('https://api.now...', Array)
#12 src/addons/OzzModz/PaymentProviderNOWPayments/Payment/NOWPayments.php(203): OzzModz\PaymentProviderNOWPayments\Helper\NOWPaymentsApi->createPlan(Array)
#13 src/XF/Pub/Controller/PurchaseController.php(65): OzzModz\PaymentProviderNOWPayments\Payment\NOWPayments->processPayment(Object(OzzModz\PaymentProviderNOWPayments\XF\Pub\Controller\Purchase), Object(XF\Entity\PurchaseRequest), Object(XF\Entity\PaymentProfile), Object(XF\Purchasable\Purchase))
#14 src/XF/Mvc/Dispatcher.php(362): XF\Pub\Controller\PurchaseController->actionProcess(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Purchase', 'Process', Object(XF\Mvc\RouteMatch), Object(OzzModz\PaymentProviderNOWPayments\XF\Pub\Controller\Purchase), NULL)
#16 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(OzzModz\PaymentProviderNOWPayments\XF\Pub\Controller\Purchase), NULL)
#17 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#18 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#19 src/XF.php(806): XF\App->run()
#20 index.php(23): XF::runApp('XF\\Pub\\App')
#21 {main}
Request state
array(4) {
  ["url"] => string(72) "/index.php?purchase/process&request_key=dO9lNk1hky73wJrJcO7pz7YdP59K5BRT"
  ["referrer"] => string(44) "https://xxxxxxxx.es/index.php?suscripciones/"
  ["_GET"] => array(2) {
    ["purchase/process"] => string(0) ""
    ["request_key"] => string(32) "dO9lNk1hky73wJrJcO7pz7YdP59K5BRT"
  }
  ["_POST"] => array(5) {
    ["_xfToken"] => string(8) "********"
    ["email"] => string(20) "[email protected]"
    ["_xfResponseType"] => string(4) "json"
    ["_xfWithData"] => string(1) "1"
    ["_xfRequestUri"] => string(25) "/index.php?suscripciones/"
  }
}

I try to use with subscriptions.
One time payments work fine.
Should be fixed in last patch
 
I have this error if I try to subscribe after clic first time.

PHP:
GuzzleHttp\Exception\ServerException: Server error: `POST https://api.nowpayments.io/v1/subscriptions` resulted in a `500 Internal Server Error` response: {"status":false,"statusCode":500,"code":"INTERNAL_ERROR","message":"Email(s) [email protected] already subscribed to (truncated...) src/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
Generated by: est3ban129 Jan 8, 2025 at 4:33 AM
Stack trace
#0 src/vendor/guzzlehttp/guzzle/src/Middleware.php(72): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response), NULL, Array, NULL)
#1 src/vendor/guzzlehttp/promises/src/Promise.php(209): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
#2 src/vendor/guzzlehttp/promises/src/Promise.php(158): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), NULL)
#3 src/vendor/guzzlehttp/promises/src/TaskQueue.php(52): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
#4 src/vendor/guzzlehttp/promises/src/Promise.php(251): GuzzleHttp\Promise\TaskQueue->run(true)
#5 src/vendor/guzzlehttp/promises/src/Promise.php(227): GuzzleHttp\Promise\Promise->invokeWaitFn()
#6 src/vendor/guzzlehttp/promises/src/Promise.php(272): GuzzleHttp\Promise\Promise->waitIfPending()
#7 src/vendor/guzzlehttp/promises/src/Promise.php(229): GuzzleHttp\Promise\Promise->invokeWaitList()
#8 src/vendor/guzzlehttp/promises/src/Promise.php(69): GuzzleHttp\Promise\Promise->waitIfPending()
#9 src/vendor/guzzlehttp/guzzle/src/Client.php(189): GuzzleHttp\Promise\Promise->wait()
#10 src/vendor/guzzlehttp/guzzle/src/ClientTrait.php(95): GuzzleHttp\Client->request('POST', 'https://api.now...', Array)
#11 src/addons/OzzModz/PaymentProviderNOWPayments/Helper/NOWPaymentsApi.php(301): GuzzleHttp\Client->post('https://api.now...', Array)
#12 src/addons/OzzModz/PaymentProviderNOWPayments/Payment/NOWPayments.php(258): OzzModz\PaymentProviderNOWPayments\Helper\NOWPaymentsApi->createSubscription('164292262', 'est3ban129@gmai...', NULL)
#13 src/XF/Pub/Controller/PurchaseController.php(65): OzzModz\PaymentProviderNOWPayments\Payment\NOWPayments->processPayment(Object(OzzModz\PaymentProviderNOWPayments\XF\Pub\Controller\Purchase), Object(XF\Entity\PurchaseRequest), Object(XF\Entity\PaymentProfile), Object(XF\Purchasable\Purchase))
#14 src/XF/Mvc/Dispatcher.php(362): XF\Pub\Controller\PurchaseController->actionProcess(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Purchase', 'Process', Object(XF\Mvc\RouteMatch), Object(OzzModz\PaymentProviderNOWPayments\XF\Pub\Controller\Purchase), NULL)
#16 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(OzzModz\PaymentProviderNOWPayments\XF\Pub\Controller\Purchase), NULL)
#17 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#18 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#19 src/XF.php(806): XF\App->run()
#20 index.php(23): XF::runApp('XF\\Pub\\App')
#21 {main}
Request state
array(4) {
  ["url"] => string(72) "/index.php?purchase/process&request_key=SRUkDgQdSUqGt3WFdikfb_9tSqzZotr3"
  ["referrer"] => string(44) "https://xxxxxxx.es/index.php?suscripciones/"
  ["_GET"] => array(2) {
    ["purchase/process"] => string(0) ""
    ["request_key"] => string(32) "SRUkDgQdSUqGt3WFdikfb_9tSqzZotr3"
  }
  ["_POST"] => array(5) {
    ["_xfToken"] => string(8) "********"
    ["email"] => string(20) "[email protected]"
    ["_xfResponseType"] => string(4) "json"
    ["_xfWithData"] => string(1) "1"
    ["_xfRequestUri"] => string(25) "/index.php?suscripciones/"
  }
}

And I get this message in front end.

Captura de pantalla 2025-01-08 a las 14.45.25.png

Can it be changed ID from nowpayments to Subscription name ?

Captura de pantalla 2025-01-08 a las 14.48.22.png
 
I have this error if I try to subscribe after clic first time.
Should be fixed

And I get this message in front end.

Captura de pantalla 2025-01-08 a las 14.45.25.png


Can it be changed ID from nowpayments to Subscription name ?
These errors are generated by the API and cannot be customized.
 
I updated to last version and i get this error again:


PHP:
GuzzleHttp\Exception\ClientException: Client error: `PATCH https://api.nowpayments.io/v1/subscriptions/plans/164292262` resulted in a `400 Bad Request` response: {"status":false,"statusCode":400,"code":"INVALID_REQUEST_PARAMS","message":"title length must be less than or equal to 5 (truncated...) src/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
Generated by: libro2bl Jan 10, 2025 at 3:12 PM
Stack trace
#0 src/vendor/guzzlehttp/guzzle/src/Middleware.php(72): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response), NULL, Array, NULL)
#1 src/vendor/guzzlehttp/promises/src/Promise.php(209): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
#2 src/vendor/guzzlehttp/promises/src/Promise.php(158): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), NULL)
#3 src/vendor/guzzlehttp/promises/src/TaskQueue.php(52): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
#4 src/vendor/guzzlehttp/promises/src/Promise.php(251): GuzzleHttp\Promise\TaskQueue->run(true)
#5 src/vendor/guzzlehttp/promises/src/Promise.php(227): GuzzleHttp\Promise\Promise->invokeWaitFn()
#6 src/vendor/guzzlehttp/promises/src/Promise.php(272): GuzzleHttp\Promise\Promise->waitIfPending()
#7 src/vendor/guzzlehttp/promises/src/Promise.php(229): GuzzleHttp\Promise\Promise->invokeWaitList()
#8 src/vendor/guzzlehttp/promises/src/Promise.php(69): GuzzleHttp\Promise\Promise->waitIfPending()
#9 src/vendor/guzzlehttp/guzzle/src/Client.php(189): GuzzleHttp\Promise\Promise->wait()
#10 src/vendor/guzzlehttp/guzzle/src/ClientTrait.php(112): GuzzleHttp\Client->request('PATCH', 'https://api.now...', Array)
#11 src/addons/OzzModz/PaymentProviderNOWPayments/Helper/NOWPaymentsApi.php(277): GuzzleHttp\Client->patch('https://api.now...', Array)
#12 src/addons/OzzModz/PaymentProviderNOWPayments/Payment/NOWPayments.php(234): OzzModz\PaymentProviderNOWPayments\Helper\NOWPaymentsApi->updatePlan('164292262', Array, NULL)
#13 src/XF/Pub/Controller/PurchaseController.php(65): OzzModz\PaymentProviderNOWPayments\Payment\NOWPayments->processPayment(Object(OzzModz\PaymentProviderNOWPayments\XF\Pub\Controller\Purchase), Object(XF\Entity\PurchaseRequest), Object(XF\Entity\PaymentProfile), Object(XF\Purchasable\Purchase))
#14 src/XF/Mvc/Dispatcher.php(362): XF\Pub\Controller\PurchaseController->actionProcess(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Purchase', 'Process', Object(XF\Mvc\RouteMatch), Object(OzzModz\PaymentProviderNOWPayments\XF\Pub\Controller\Purchase), NULL)
#16 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(OzzModz\PaymentProviderNOWPayments\XF\Pub\Controller\Purchase), NULL)
#17 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#18 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#19 src/XF.php(806): XF\App->run()
#20 index.php(23): XF::runApp('XF\\Pub\\App')
#21 {main}
Request state
array(4) {
  ["url"] => string(72) "/index.php?purchase/process&request_key=EcQHUol-ujJbgy49fWgqeUaiSwrF6XKt"
  ["referrer"] => string(44) "https://xxxxx.es/index.php?suscripciones/"
  ["_GET"] => array(2) {
    ["purchase/process"] => string(0) ""
    ["request_key"] => string(32) "EcQHUol-ujJbgy49fWgqeUaiSwrF6XKt"
  }
  ["_POST"] => array(5) {
    ["_xfToken"] => string(8) "********"
    ["email"] => string(20) "[email protected]"
    ["_xfResponseType"] => string(4) "json"
    ["_xfWithData"] => string(1) "1"
    ["_xfRequestUri"] => string(25) "/index.php?suscripciones/"
  }
}
 

Attachments

  • Captura de pantalla 2025-01-10 a las 21.14.31.png
    136.7 KB · Views: 2
I updated to last version and i get this error again:


PHP:
GuzzleHttp\Exception\ClientException: Client error: `PATCH https://api.nowpayments.io/v1/subscriptions/plans/164292262` resulted in a `400 Bad Request` response: {"status":false,"statusCode":400,"code":"INVALID_REQUEST_PARAMS","message":"title length must be less than or equal to 5 (truncated...) src/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
Generated by: libro2bl Jan 10, 2025 at 3:12 PM
Stack trace
#0 src/vendor/guzzlehttp/guzzle/src/Middleware.php(72): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response), NULL, Array, NULL)
#1 src/vendor/guzzlehttp/promises/src/Promise.php(209): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
#2 src/vendor/guzzlehttp/promises/src/Promise.php(158): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), NULL)
#3 src/vendor/guzzlehttp/promises/src/TaskQueue.php(52): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
#4 src/vendor/guzzlehttp/promises/src/Promise.php(251): GuzzleHttp\Promise\TaskQueue->run(true)
#5 src/vendor/guzzlehttp/promises/src/Promise.php(227): GuzzleHttp\Promise\Promise->invokeWaitFn()
#6 src/vendor/guzzlehttp/promises/src/Promise.php(272): GuzzleHttp\Promise\Promise->waitIfPending()
#7 src/vendor/guzzlehttp/promises/src/Promise.php(229): GuzzleHttp\Promise\Promise->invokeWaitList()
#8 src/vendor/guzzlehttp/promises/src/Promise.php(69): GuzzleHttp\Promise\Promise->waitIfPending()
#9 src/vendor/guzzlehttp/guzzle/src/Client.php(189): GuzzleHttp\Promise\Promise->wait()
#10 src/vendor/guzzlehttp/guzzle/src/ClientTrait.php(112): GuzzleHttp\Client->request('PATCH', 'https://api.now...', Array)
#11 src/addons/OzzModz/PaymentProviderNOWPayments/Helper/NOWPaymentsApi.php(277): GuzzleHttp\Client->patch('https://api.now...', Array)
#12 src/addons/OzzModz/PaymentProviderNOWPayments/Payment/NOWPayments.php(234): OzzModz\PaymentProviderNOWPayments\Helper\NOWPaymentsApi->updatePlan('164292262', Array, NULL)
#13 src/XF/Pub/Controller/PurchaseController.php(65): OzzModz\PaymentProviderNOWPayments\Payment\NOWPayments->processPayment(Object(OzzModz\PaymentProviderNOWPayments\XF\Pub\Controller\Purchase), Object(XF\Entity\PurchaseRequest), Object(XF\Entity\PaymentProfile), Object(XF\Purchasable\Purchase))
#14 src/XF/Mvc/Dispatcher.php(362): XF\Pub\Controller\PurchaseController->actionProcess(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Purchase', 'Process', Object(XF\Mvc\RouteMatch), Object(OzzModz\PaymentProviderNOWPayments\XF\Pub\Controller\Purchase), NULL)
#16 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(OzzModz\PaymentProviderNOWPayments\XF\Pub\Controller\Purchase), NULL)
#17 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#18 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#19 src/XF.php(806): XF\App->run()
#20 index.php(23): XF::runApp('XF\\Pub\\App')
#21 {main}
Request state
array(4) {
  ["url"] => string(72) "/index.php?purchase/process&request_key=EcQHUol-ujJbgy49fWgqeUaiSwrF6XKt"
  ["referrer"] => string(44) "https://xxxxx.es/index.php?suscripciones/"
  ["_GET"] => array(2) {
    ["purchase/process"] => string(0) ""
    ["request_key"] => string(32) "EcQHUol-ujJbgy49fWgqeUaiSwrF6XKt"
  }
  ["_POST"] => array(5) {
    ["_xfToken"] => string(8) "********"
    ["email"] => string(20) "[email protected]"
    ["_xfResponseType"] => string(4) "json"
    ["_xfWithData"] => string(1) "1"
    ["_xfRequestUri"] => string(25) "/index.php?suscripciones/"
  }
}
Ah, missed that place. Should be fixed. Sorry for the inconvenience.
 
Back
Top