Skip to content

Commit 31e8d0e

Browse files
Tim MartinakUmar Nafeez Abdul Phatip
authored andcommitted
Remove dotenv & prefer pre-set shell env var; bump sdk version
1 parent cdbac46 commit 31e8d0e

File tree

8 files changed

+15
-35
lines changed

8 files changed

+15
-35
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,4 @@ __pycache__
114114

115115
#Codespace
116116
.vscode/settings.json
117-
.devcontainer/update_settings.sh
117+
.devcontainer/update_settings.sh

advanced-integration/v2/server/python/.env.example

Lines changed: 0 additions & 5 deletions
This file was deleted.

advanced-integration/v2/server/python/README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
# Standard Integration Ruby Sinatra Sample
1+
# Standard Integration Python Flask Sample
22

3-
PayPal Standard Integration sample in Ruby using Sinatra
3+
PayPal Standard Integration sample in Python using Flask
44

55
## Running the sample
66

7-
1. **Ensure you have a supported Ruby version installed**: [Ruby Maintenance Branches](https://www.ruby-lang.org/en/downloads/branches/)
7+
1. **Setup a virtual environment**
8+
9+
```sh
10+
python3 -m venv .venv
11+
```
812

913
1. **Install the dependencies**
1014

11-
```bash
12-
bundle install
15+
```sh
16+
pip install -r requirements.txt
1317
```
1418

1519
1. **Add your API credentials to the environment:**
@@ -30,8 +34,8 @@ PayPal Standard Integration sample in Ruby using Sinatra
3034
3135
1. **Run the server**
3236
33-
```bash
34-
bundle exec ruby server.rb
37+
```sh
38+
flask --app server run --port 8080
3539
```
3640

37-
1. Go to [http://localhost:8080/](http://localhost:8080/)
41+
1. Go to [http://localhost:8080/](http://localhost:8080/)

advanced-integration/v2/server/ruby/.env.example

Lines changed: 0 additions & 5 deletions
This file was deleted.

advanced-integration/v2/server/ruby/Gemfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
source "https://rubygems.org"
44

5-
6-
gem "dotenv", "~> 3.1"
7-
gem "paypal-server-sdk", "~> 0.5.1"
5+
gem "paypal-server-sdk", "~> 0.5.2"
86
gem "puma", "~> 6.4"
97
gem "rackup", "~> 2.1"
108
gem "sinatra", "~> 4.0"

standard-integration/server/python/.env.example

Lines changed: 0 additions & 5 deletions
This file was deleted.

standard-integration/server/ruby/.env.example

Lines changed: 0 additions & 5 deletions
This file was deleted.

standard-integration/server/ruby/Gemfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
source "https://rubygems.org"
44

5-
6-
gem "dotenv", "~> 3.1"
7-
gem "paypal-server-sdk", "~> 0.5.1"
5+
gem "paypal-server-sdk", "~> 0.5.2"
86
gem "puma", "~> 6.4"
97
gem "rackup", "~> 2.1"
108
gem "sinatra", "~> 4.0"

0 commit comments

Comments
 (0)