Skip to content

Commit 8978517

Browse files
authored
Merge pull request killbill#620 from KBbitsP/v3
Updates about CC fields not showing
2 parents ba9ccd7 + d81443e commit 8978517

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

userguide/tutorials/stripe_plugin.adoc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,27 @@ Next, run the stripe demo application using your Stripe publishable key as follo
161161
----
162162
PUBLISHABLE_KEY=pk_test_XXX ruby app.rb
163163
----
164+
165+
NOTE: If the above command gives an error related to Sinatra gem, then it is possible that the Gem is not installed OR there are multiple Ruby versions on the machine. In this case, appropriate version of Ruby (having the gem) needs to be used to run the above command as shown in the below example.
166+
167+
For Windows specific users, it might complain about not recognized internal or external command. The command shown in the below example might be useful to address this.
168+
[source, bash]
169+
----
170+
H:/jruby-9.3.1.0/bin/jruby app.rb PUBLISHABLE_KEY=pk_test_XXX
171+
----
172+
164173
=== Step 8: Test the demo application
165174

166175
In your browser, navigate to \http://localhost:4567/. This displays the following screen:
167176

168177
image::https://github.com/killbill/killbill-docs/raw/v3/userguide/assets/img/tutorials/stripe_integration_demo_app_home.png[align=center]
169178

179+
NOTE: After starting the demo app, if fields like Card number, CVV, Expiry date, Zip Code etc. are not visible, this means that the Stripe object has not initiliased correctly and the publishable key has not been passed/read correctly. In this scenario, publishable key can be set directly in app.rb. Line 5 needs to be replaced as shown in the below example.
180+
[source, bash]
181+
----
182+
set :publishable_key, ENV['PUBLISHABLE_KEY']|| 'pk_test_XXX'
183+
----
184+
170185
Enter dummy data (4242 4242 4242 4242 as the credit card number, any three digit CVC, any expiry date in the future, and any zip code) and click the *Buy via Stripe Elements* button. This displays the following confirmation screen:
171186

172187
image::https://github.com/killbill/killbill-docs/raw/v3/userguide/assets/img/tutorials/stripe_integration_confirmation_page.png[align=center]

0 commit comments

Comments
 (0)