You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PayPal live and PayPal sandbox are two different environments for using the PayPal API. The live environment is the real PayPal network that processes actual payments, while the sandbox environment is a simulated test environment that allows developers to test their integration with the PayPal API without using real money.
34
19
```env
20
+
## For PayPal Sandbox
35
21
PAYPAL_MODE=sandbox
36
22
PAYPAL_SANDBOX_CLIENT_ID=xxxxxxxxxxxxxxx
37
23
PAYPAL_SANDBOX_CLIENT_SECRET=xxxxxxxxxxxxx
24
+
## For PayPal Live
25
+
PAYPAL_MODE=live
26
+
PAYPAL_LIVE_CLIENT_ID=xxxxxxxxxxxxxxx
27
+
PAYPAL_LIVE_CLIENT_SECRET=xxxxxxxxxxxxx
38
28
```
29
+
To get your PayPal sandbox client secret and client ID, you first need to create a PayPal developer account at https://developer.paypal.com/. Once you have created your account, you can log in and create a sandbox account. This will allow you to test your integration with the PayPal API without using real money.
To create a sandbox account, log in to your developer account and click on the "Dashboard" tab. From there, click on the "Sandbox" tab and then click on the "Accounts" link. This will take you to the sandbox accounts page where you can create a new sandbox account.
41
32
42
-
### Methods
33
+
Once you have created a sandbox account, you can view its client ID and client secret by clicking on the account and then clicking on the "Profile" link. This will open the account's profile page, where you can find the client ID and client secret.
The PayPal cancel and return URLs are the URLs that PayPal will redirect the user to after they have completed or canceled a payment. These URLs are specified by the developer in the PayPal API call, and they can be used to redirect the user back to the app or website after the payment is complete.
0 commit comments