Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 3.03 KB

README.md

File metadata and controls

68 lines (48 loc) · 3.03 KB

Kill Bill Braintree Demo

Inspired from the Braintree Drop-In implementation.

Prerequisites

Set up

  • Obtain Braintree credentials as explained here and set the corresponding values in the application.properties file.
  • Create a Paypal sandbox account and link it to your Braintree sandbox account as explained here. Note that this is required only for Paypal testing.

Run

To run the app:

mvn spring-boot:run

Test

With Card

  1. Go to http://localhost:8082/.
  2. Enter amount as 20. Click on Card and enter the following card details:
  • Card Number: 4111111111111111
  • Expiry Date: 12/29 Screen 1
  1. Click on Checkout:
  2. This should display a successful payment page: Screen 2
  3. Verify that a new account is created in Kill Bill with a successful payment for the amount specified above.

With Paypal

  1. Ensure that a PayPal sandbox account is created and linked to your Braintree sandbox account as mentioned above.
  2. Go to http://localhost:8082/.
  3. Enter amount as 20. Click on PayPal. Click the PayPal Checkout button.
  4. The PayPal login screen is displayed. Click on the Create Account button at the bottom: Screen 1
  5. Enter the following details (Credit card details shown below are obtained via PayPal Credit Card Generator):
  • Name: Jane Doe
  • Card Number: 4032032691996125
  • Exipry Date: 07/2028
  • CVV: 506
  • A valid US phone number
  • An address with a valid US zip code Screen 2
  1. Scroll to the bottom of the screen. Enter a valid email id and any password of your choice. Click the checkbox to agree to the terms and conditions and then click on the Agree and Create Account button: Screen 3
  2. If successful, the email id would be populated in the braintree demo screen. Click on Checkout: Screen 4
  3. This should display a successful payment page: Screen 2
  4. Verify that a new account is created in Kill Bill with a successful payment for the amount specified above.

Credits

Based on the Braintree Java Dropin Integration.