SymfonyComponentDebugExceptionFatalThrowableError Class ‘PayPalRestApiContext’ not found https://www.*******.org/pay/paypal/paypal/agiGbpePNm0essSx Stack trace Request App User Context Debug Share Expand vendor frames 6 vendor frames… 20 vendor frames… 14 vendor frames… use PayPalApiTransaction; use PayPalAuthOAuthTokenCredential; use PayPalExceptionPayPalConnectionException; use PayPalRestApiContext; class PaypalPayController extends PayController { const Currency = ‘USD’; //货币单位 public function gateway(string $payway, string $orderSN) { try { // 加载网关 $this->loadGateWay($orderSN, $payway); $paypal = new ApiContext( new OAuthTokenCredential( $this->payGateway->merchant_key, $this->payGateway->merchant_pem ) ); $paypal->setConfig([‘mode’ => ‘live’]); $product = $this->order->title; // 得到汇率 $price = Currency::convert() ->from(‘CNY’) ->to(‘USD’) ->amount($this->order->actual_price) ->get(); $shipping = 0; $description = $this->order->title; |
建议到独角TG群里问 可能有大佬会解答 |
官网那个群进不去 |
PayPal商业版only,而且bug特别多 |
https://t.me/dujiaoka |