Inspired from the Braintree Drop-In implementation.
- Kill Bill is already setup.
- The default tenant (bob/lazar) has been created.
- The Braintree plugin is installed and configured.
- 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.
To run the app:
mvn spring-boot:run
- Go to http://localhost:8082/.
- Enter amount as
20
. Click on Card and enter the following card details:
- Click on Checkout:
- This should display a successful payment page:
- Verify that a new account is created in Kill Bill with a successful payment for the amount specified above.
- Ensure that a PayPal sandbox account is created and linked to your Braintree sandbox account as mentioned above.
- Go to http://localhost:8082/.
- Enter amount as
20
. Click on PayPal. Click the PayPal Checkout button. - The PayPal login screen is displayed. Click on the Create Account button at the bottom:
- 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
- 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:
- If successful, the email id would be populated in the braintree demo screen. Click on Checkout:
- This should display a successful payment page:
- Verify that a new account is created in Kill Bill with a successful payment for the amount specified above.
Based on the Braintree Java Dropin Integration.