Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Commit a745d1a

Browse files
csabol-stripemshafrir-stripe
authored andcommitted
Remove returning PaymentIntent json. (#56)
1 parent 4e5b4b4 commit a745d1a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

web.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ def log_info(message)
6363
end
6464

6565
status 200
66-
return payment_intent.to_json
66+
return {
67+
:secret => payment_intent.client_secret
68+
}.to_json
6769
end
6870

6971
post '/confirm_payment' do
@@ -80,7 +82,9 @@ def log_info(message)
8082
end
8183

8284
status 200
83-
return payment_intent.to_json
85+
return {
86+
:secret => payment_intent.client_secret
87+
}.to_json
8488
end
8589

8690
def authenticate!

0 commit comments

Comments
 (0)