Skip to content

Commit 094166a

Browse files
committed
Bugfix of PayPalSdkHelper
1 parent 11915bf commit 094166a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Helpers/PayPalSdkHelper.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use PayPalCheckoutSdk\Core\PayPalHttpClient;
66
use PayPalCheckoutSdk\Core\SandboxEnvironment;
7-
use PayPalCheckoutSdk\Core\LiveEnvironment;
7+
use PayPalCheckoutSdk\Core\ProductionEnvironment;
88
use PayPalCheckoutSdk\Orders\OrdersCreateRequest;
99
use PayPalCheckoutSdk\Orders\OrdersCaptureRequest;
1010
use DB;
@@ -36,7 +36,7 @@ public static function environment()
3636
{
3737
$clientId = $payPalSettings->paypal_smart_production_client;
3838
$clientSecret = $payPalSettings->paypal_smart_production_secret;
39-
return new LiveEnvironment($clientId, $clientSecret);
39+
return new ProductionEnvironment($clientId, $clientSecret);
4040
}
4141
}
4242

0 commit comments

Comments
 (0)