PayPal Transaction Issue

When im trying to submit a payment request from Sales Order I get the below error. But the error is only when the exchange rate have decimal point. Please guide.

App Versions

{
	"erpnext": "14.2.1",
	"frappe": "14.9.0",
	"frappe_whatsapp": "0.0.2",
	"helpdesk": "0.10.0",
	"hrms": "15.0.0-dev",
	"insights": "0.3.0",
	"ls_operations": "0.0.1",
	"payments": "0.0.1"
}

Route

Form/Payment Request/ACC-PRQ-2023-00007

Trackeback

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 69, in application
    response = frappe.api.handle()
  File "apps/frappe/frappe/api.py", line 54, in handle
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 45, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 83, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1585, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/desk/form/save.py", line 21, in savedocs
    doc.submit()
  File "apps/frappe/frappe/model/document.py", line 1015, in submit
    return self._submit()
  File "apps/frappe/frappe/model/document.py", line 994, in _submit
    return self.save()
  File "apps/frappe/frappe/model/document.py", line 301, in save
    return self._save(*args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 352, in _save
    self.run_post_save_methods()
  File "apps/frappe/frappe/model/document.py", line 1090, in run_post_save_methods
    self.run_method("on_submit")
  File "apps/frappe/frappe/model/document.py", line 928, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 1268, in composer
    return composed(self, method, *args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 1250, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "apps/frappe/frappe/model/document.py", line 925, in fn
    return method_object(*args, **kwargs)
  File "apps/erpnext/erpnext/accounts/doctype/payment_request/payment_request.py", line 102, in on_submit
    self.set_payment_request_url()
  File "apps/erpnext/erpnext/accounts/doctype/payment_request/payment_request.py", line 169, in set_payment_request_url
    self.payment_url = self.get_payment_url()
  File "apps/erpnext/erpnext/accounts/doctype/payment_request/payment_request.py", line 198, in get_payment_url
    return controller.get_payment_url(
  File "apps/payments/payments/payment_gateways/doctype/paypal_settings/paypal_settings.py", line 188, in get_payment_url
    "token": response.get("TOKEN")[0],
TypeError: 'NoneType' object is not subscriptable

Request Data

{
	"type": "POST",
	"args": {
		"doc": "{\"name\":\"ACC-PRQ-2023-00007\",\"owner\":\"safvan.hussain@locationsolutions.com\",\"creation\":\"2023-08-21 09:13:38.201588\",\"modified\":\"2023-08-21 09:13:38.201588\",\"modified_by\":\"safvan.hussain@locationsolutions.com\",\"docstatus\":0,\"idx\":0,\"payment_request_type\":\"Inward\",\"transaction_date\":null,\"naming_series\":\"ACC-PRQ-.YYYY.-\",\"mode_of_payment\":null,\"party_type\":\"Customer\",\"party\":\"LS-CustID-01645\",\"reference_doctype\":\"Sales Invoice\",\"reference_name\":\"DXB-INV-209774-1\",\"grand_total\":85.83106267029973,\"is_a_subscription\":0,\"currency\":\"USD\",\"bank_account\":null,\"bank\":null,\"bank_account_no\":null,\"account\":null,\"iban\":null,\"branch_code\":null,\"swift_number\":null,\"print_format\":null,\"email_to\":\"safvan.hussain@locationsolutions.com\",\"subject\":\"Payment Request for DXB-INV-209774-1\",\"payment_gateway_account\":\"PayPal - AED\",\"status\":\"Draft\",\"make_sales_invoice\":0,\"message\":\"<p> Thank You for being a part of {{ doc.company }}! We hope you are enjoying the service.</p><br>\\nPlease click on the link below to make your payment <a href=\\\"{{ payment_url }}\\\"> click here to pay </a>\",\"mute_email\":0,\"payment_url\":null,\"payment_gateway\":\"PayPal\",\"payment_account\":\"PayPal - UAE\",\"payment_channel\":\"Email\",\"payment_order\":null,\"amended_from\":null,\"doctype\":\"Payment Request\",\"subscription_plans\":[],\"__last_sync_on\":\"2023-08-21T06:13:38.598Z\"}",
		"action": "Submit"
	},
	"btn": {
		"jQuery3600163666844554871021": {
			"events": {
				"click": [
					{
						"type": "click",
						"origType": "click",
						"guid": 10082,
						"namespace": ""
					}
				]
			}
		}
	},
	"freeze": true,
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/frappe.desk.form.save.savedocs"
}

Response Data

{
	"exception": "TypeError: 'NoneType' object is not subscriptable"
}