File tree Expand file tree Collapse file tree 8 files changed +15
-35
lines changed
advanced-integration/v2/server
standard-integration/server Expand file tree Collapse file tree 8 files changed +15
-35
lines changed Original file line number Diff line number Diff line change @@ -114,4 +114,4 @@ __pycache__
114114
115115# Codespace
116116.vscode /settings.json
117- .devcontainer /update_settings.sh
117+ .devcontainer /update_settings.sh
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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
9131 . ** Install the dependencies**
1014
11- ``` bash
12- bundle install
15+ ``` sh
16+ pip install -r requirements.txt
1317 ```
1418
15191 . ** Add your API credentials to the environment:**
@@ -30,8 +34,8 @@ PayPal Standard Integration sample in Ruby using Sinatra
3034
31351. **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/ )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22
33source "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"
86gem "puma" , "~> 6.4"
97gem "rackup" , "~> 2.1"
108gem "sinatra" , "~> 4.0"
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22
33source "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"
86gem "puma" , "~> 6.4"
97gem "rackup" , "~> 2.1"
108gem "sinatra" , "~> 4.0"
You can’t perform that action at this time.
0 commit comments