Skip to content

Commit f919846

Browse files
Tim MartinakUmar Nafeez Abdul Phatip
authored andcommitted
Add sinatra app using [email protected]
1 parent 56be8b8 commit f919846

File tree

4 files changed

+127
-2
lines changed

4 files changed

+127
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Create an application to obtain credentials at
2+
# https://developer.paypal.com/dashboard/applications/sandbox
3+
4+
PAYPAL_CLIENT_ID=YOUR_CLIENT_ID_GOES_HERE
5+
PAYPAL_CLIENT_SECRET=YOUR_SECRET_GOES_HERE

standard-integration/server/ruby/Gemfile

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

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

5-
gem "paypal-server-sdk", "~> 0.5.2"
5+
6+
gem "dotenv", "~> 3.1"
7+
gem "paypal-server-sdk", "~> 0.5.1"
68
gem "puma", "~> 6.4"
79
gem "rackup", "~> 2.1"
810
gem "sinatra", "~> 4.0"
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
apimatic_core (0.3.10)
5+
apimatic_core_interfaces (~> 0.2.0)
6+
certifi (~> 2018.1, >= 2018.01.18)
7+
faraday-multipart (~> 1.0)
8+
nokogiri (~> 1.10, >= 1.10.10)
9+
apimatic_core_interfaces (0.2.1)
10+
apimatic_faraday_client_adapter (0.1.4)
11+
apimatic_core_interfaces (~> 0.2.0)
12+
certifi (~> 2018.1, >= 2018.01.18)
13+
faraday (~> 2.0, >= 2.0.1)
14+
faraday-follow_redirects (~> 0.2)
15+
faraday-gzip (~> 1.0)
16+
faraday-http-cache (~> 2.2)
17+
faraday-multipart (~> 1.0)
18+
faraday-net_http_persistent (~> 2.0)
19+
faraday-retry (~> 2.0)
20+
base64 (0.2.0)
21+
certifi (2018.01.18)
22+
connection_pool (2.4.1)
23+
dotenv (3.1.4)
24+
faraday (2.12.0)
25+
faraday-net_http (>= 2.0, < 3.4)
26+
json
27+
logger
28+
faraday-follow_redirects (0.3.0)
29+
faraday (>= 1, < 3)
30+
faraday-gzip (1.0.0)
31+
faraday (>= 1.0)
32+
zlib (~> 2.1)
33+
faraday-http-cache (2.5.1)
34+
faraday (>= 0.8)
35+
faraday-multipart (1.0.4)
36+
multipart-post (~> 2)
37+
faraday-net_http (3.3.0)
38+
net-http
39+
faraday-net_http_persistent (2.2.0)
40+
faraday (~> 2.5)
41+
net-http-persistent (>= 4.0.4, < 5)
42+
faraday-retry (2.2.1)
43+
faraday (~> 2.0)
44+
json (2.7.2)
45+
logger (1.6.1)
46+
multi_json (1.15.0)
47+
multipart-post (2.4.1)
48+
mustermann (3.0.3)
49+
ruby2_keywords (~> 0.0.1)
50+
net-http (0.4.1)
51+
uri
52+
net-http-persistent (4.0.4)
53+
connection_pool (~> 2.2)
54+
nio4r (2.7.3)
55+
nokogiri (1.16.7-aarch64-linux)
56+
racc (~> 1.4)
57+
nokogiri (1.16.7-arm-linux)
58+
racc (~> 1.4)
59+
nokogiri (1.16.7-arm64-darwin)
60+
racc (~> 1.4)
61+
nokogiri (1.16.7-x86-linux)
62+
racc (~> 1.4)
63+
nokogiri (1.16.7-x86_64-darwin)
64+
racc (~> 1.4)
65+
nokogiri (1.16.7-x86_64-linux)
66+
racc (~> 1.4)
67+
paypal-server-sdk (0.5.1)
68+
apimatic_core (~> 0.3.9)
69+
apimatic_core_interfaces (~> 0.2.1)
70+
apimatic_faraday_client_adapter (~> 0.1.4)
71+
puma (6.4.3)
72+
nio4r (~> 2.0)
73+
racc (1.8.1)
74+
rack (3.1.7)
75+
rack-protection (4.0.0)
76+
base64 (>= 0.1.0)
77+
rack (>= 3.0.0, < 4)
78+
rack-session (2.0.0)
79+
rack (>= 3.0.0)
80+
rackup (2.1.0)
81+
rack (>= 3)
82+
webrick (~> 1.8)
83+
ruby2_keywords (0.0.5)
84+
sinatra (4.0.0)
85+
mustermann (~> 3.0)
86+
rack (>= 3.0.0, < 4)
87+
rack-protection (= 4.0.0)
88+
rack-session (>= 2.0.0, < 3)
89+
tilt (~> 2.0)
90+
sinatra-contrib (4.0.0)
91+
multi_json (>= 0.0.2)
92+
mustermann (~> 3.0)
93+
rack-protection (= 4.0.0)
94+
sinatra (= 4.0.0)
95+
tilt (~> 2.0)
96+
tilt (2.4.0)
97+
uri (0.13.1)
98+
webrick (1.8.2)
99+
zlib (2.1.1)
100+
101+
PLATFORMS
102+
aarch64-linux
103+
arm-linux
104+
arm64-darwin
105+
x86-linux
106+
x86_64-darwin
107+
x86_64-linux
108+
109+
DEPENDENCIES
110+
dotenv (~> 3.1)
111+
paypal-server-sdk (~> 0.5.1)
112+
puma (~> 6.4)
113+
rackup (~> 2.1)
114+
sinatra (~> 4.0)
115+
sinatra-contrib (~> 4.0)
116+
117+
BUNDLED WITH
118+
2.5.16

standard-integration/server/ruby/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ PayPal Standard Integration sample in Ruby using Sinatra
3434
bundle exec ruby server.rb
3535
```
3636

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

0 commit comments

Comments
 (0)