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.
18
+
`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.
19
19
```env
20
20
## For PayPal Sandbox
21
21
PAYPAL_MODE=sandbox
@@ -26,28 +26,51 @@ PAYPAL_MODE=live
26
26
PAYPAL_LIVE_CLIENT_ID=xxxxxxxxxxxxxxx
27
27
PAYPAL_LIVE_CLIENT_SECRET=xxxxxxxxxxxxx
28
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.
29
+
To obtain your PayPal sandbox client ID and client secret, you will need to complete the following steps:
30
30
31
-
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.
32
-
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.
31
+
1. Visit the [PayPal Developer](https://developer.paypal.com/home) website and sign in to your account.
32
+
2. Click on the `Sandbox > Accounts` option in the top menu.
33
+
3. In the `Business` section, click on the `Create` button to create a
34
+
new sandbox business account.
35
+
4. Enter the required information to create your account and click
36
+
`Create Account`.
37
+
5. Once your account has been created, click on the `Profile` link next
38
+
to the account.
39
+
6. On the next page, you will see your `sandbox client ID` and
40
+
`client secret`. Make sure to save these values, as you will need them to
41
+
authenticate your app with PayPal in the sandbox environment.
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