-
Notifications
You must be signed in to change notification settings - Fork 505
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fetch paypal_client_id and paypal_client_secret from env
- Loading branch information
Showing
25 changed files
with
246 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,35 @@ | ||
# Advanced Integartion .NET Sample | ||
|
||
PayPal Advanced Integration sample in .NET | ||
|
||
## Running the sample | ||
|
||
1. Build the server | ||
1. **Add your API credentials to the environment:** | ||
|
||
- **Windows** | ||
|
||
```powershell | ||
$env:PAYPAL_CLIENT_ID = "<PAYPAL_CLIENT_ID>" | ||
$env:PAYPAL_CLIENT_SECRET = "<PAYPAL_CLIENT_SECRET>" | ||
``` | ||
- **Unix** | ||
```bash | ||
export PAYPAL_CLIENT_ID="<PAYPAL_CLIENT_ID>" | ||
export PAYPAL_CLIENT_SECRET="<PAYPAL_CLIENT_SECRET>" | ||
``` | ||
2. **Build the server** | ||
~~~ | ||
dotnet restore | ||
~~~ | ||
```bash | ||
dotnet restore | ||
``` | ||
|
||
2. Run the server | ||
3. **Run the server** | ||
|
||
~~~ | ||
dotnet run | ||
~~~ | ||
```bash | ||
dotnet run | ||
``` | ||
|
||
3. Go to [http://localhost:8080/](http://localhost:8080/) | ||
4. Go to [http://localhost:8080/](http://localhost:8080/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,35 @@ | ||
# Advanced Integartion Java Sample | ||
|
||
PayPal Advanced Integration sample in Java | ||
|
||
## Running the sample | ||
|
||
1. Build the server | ||
1. Add your API credentials to the environment: | ||
|
||
- **Windows** | ||
|
||
```powershell | ||
$env:PAYPAL_CLIENT_ID = "<PAYPAL_CLIENT_ID>" | ||
$env:PAYPAL_CLIENT_SECRET = "<PAYPAL_CLIENT_SECRET>" | ||
``` | ||
- **Unix** | ||
```bash | ||
export PAYPAL_CLIENT_ID="<PAYPAL_CLIENT_ID>" | ||
export PAYPAL_CLIENT_SECRET="<PAYPAL_CLIENT_SECRET>" | ||
``` | ||
2. Build the server | ||
~~~ | ||
mvn clean install | ||
~~~ | ||
```bash | ||
mvn clean install | ||
``` | ||
|
||
2. Run the server | ||
3. Run the server | ||
|
||
~~~ | ||
mvn spring-boot:run | ||
~~~ | ||
```bash | ||
mvn spring-boot:run | ||
``` | ||
|
||
3. Go to [http://localhost:8080/](http://localhost:8080/) | ||
4. Go to [http://localhost:8080/](http://localhost:8080/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
advanced-integration/v2/server/java/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
spring.application.name=v2-java | ||
PAYPAL_CLIENT_ID=<PAYPAL_CLIENT_ID> | ||
PAYPAL_CLIENT_SECRET=<PAYPAL_CLIENT_SECRET> | ||
PAYPAL_CLIENT_ID=${PAYPAL_CLIENT_ID} | ||
PAYPAL_CLIENT_SECRET=${PAYPAL_CLIENT_SECRET} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.