Call to a member function deleteCustomer() on a non-object in /home/c42gor/public_html/app/code/local/Braintreephp
class Braintree_CustomerControllerextends M
以下是我到目前为止所拥有的:braintree.Configuration.configure(braintree.Environment.Sandbox, BRAINTREE_MERCHANT, BRAINTREE_PUBLIC_KEY, BRAINTREE_SECRET_KEY)
>>> braintree.environment # how would I do this?
我已经设置了loopback 4,并试图为我的Braintree API支付编写一个新的控制器。我已经安装了Braintree npm模块,并使用导入控制器并在端点中使用。但它抛出了以下错误:
*src/controllers/braintree.controller.ts:23:25 - error TS7016: Could not find a declarationfile for