Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Online Payments Processing with Stripe and Java EE 8
Rating: 3.8 out of 5(28 ratings)
190 students

Online Payments Processing with Stripe and Java EE 8

Your straight forward guide to international online payment processing with Stripe and Java EE
Created byLuqman Saeed
Last updated 3/2018
English
English [Auto],

What you'll learn

  • Be able to securely send credit/debit card details to Stripe
  • Be able to use Stripe Token to generate a charge on a card
  • Be able to integrate the Stripe API into your Java EE code

Course content

2 sections50 lectures2h 8m total length
  • Introduction1:08

    Integrate the Stripe online payment process into Java EE 8 applications using dependency injection, enabling your job applications to accept payments from clients and customers worldwide.

  • Required Software0:59

    Install the required software on your Windows, Mac OSX, or Linux machine, including netbios and the edu reference implementation, so you can follow future videos on Java EE 8.

  • How Does Stripe Work?3:08

    Discover how Stripe checkout collects payments securely by sending card data directly to Stripe, never hitting your server, and use Stripe's server-side Java library to create charges.

  • Checking out the Stripe Checkout2:07

    Embed a simple Stripe checkout form with JavaScript, collect card details, trigger the checkout flow, and submit the payment to Stripe for processing.

  • What will you be able to build at the end?4:44

    Integrate Stripe Checkout and the Stripe API to process payments, populate forms with an expression language, and verify success in the Java EE 8 workflow.

  • Getting your Stripe Account1:35

    Sign up for a Stripe account as a developer, obtain your public and private API keys, and enable your application to process payments with a secure API.

  • Let's Create the Course Project2:00

    Set up the course project by creating a new living web application, configure the id and package settings, and follow the appendix videos to install the software.

  • Upgrading Project to Java EE 82:12

    Upgrade the project to Java EE 8 and configure the project object model, then integrate the Stripe Java library to communicate with the API, plus a Java utility library.

  • Adding the Stripe and Omnifaces Dependencies1:03

    Add the Stripe and Omnifaces dependencies to the Java EE 8 project, incorporate the Stripe API library, and prepare the project for Stripe integration.

  • Thinking about the domain model1:49

    Explore modeling payments for a simple consultancy using Stripe, opting for the simplest domain model, and setting up a minimal entity to bill clients monthly.

  • Creating the Model Model2:12

    Create a timer model as an entity in the online payments processing course, map it to the database, and implement getters to track hours per month.

  • Creating the Price Model2:43

    Create a price model with price and currency properties, initialize them, and prepare for using a specific currency like US dollar in online payments processing.

  • Let's Create the index page1:33

    Create the home page and index page using a GSF page and a faceless file named index, then create a check out page linked to the index.

  • Creating the Checkout Page2:03

    Create a checkout page and a corresponding success page within the index, map the home page to checkout, and outline the repayment flow directing successes to the success page.

  • Linking the index page to the checkout page2:22

    Link the index page to the checkout page with the stripe checkout form in java ee 8, set up the payments page, and validate the checkout flow for existing customers.

  • Running the Code1:30

    Click the green run button to deploy the project, then open it in a browser while dependencies download and the Java reference implementation is prepared.

  • Running the Code1:51

    Deploy the Stripe Java application successfully in about 9.9 seconds and load the checkout page, confirming the project is configured and ready to run.

  • Let's Create the JSF Backing Bean3:39

    Create a request-scoped JSF backing bean to supply the checkout page with price and currency data. Use CDI to wire the per-request bean to the page and manage form population.

  • Injecting the Model & Price Objects Into CheckoutBean1:49

    Inject the price and model objects into CheckoutBean and calculate the total, using BigDecimal for precise monetary values.

  • Creating the Get Total Method of CheckoutBean5:32

    Implement the getTotal method in CheckoutBean by multiplying hours worked by price per hour and converting the result to cents for Stripe payments.

  • Creating the Get Currency Method1:36

    Create a getCurrency method that returns the first currency from the price object, enabling checkout and CDI expression language access.

  • Creating the Checkout Form3:50

    Create a checkout form by copying Stripe checkout snippets, supply the public Stripe API key while keeping the private key on the server, and use cents for amounts in USD.

  • Testing the Checkout Form1:35

    Test the checkout form by integrating the Stripe API, loading Stripe.js dynamically, and validating the checkout flow on the Java EE 8 environment to ensure secure payment processing.

  • Customizing the Checkout Form2:29

    Customize the stripe checkout form by updating the company name and description, ensuring the total charge is shown correctly, and validating changes with a recompile and redeploy.

  • Another look at the Checkout Form2:44

    Open the checkout form using stripe in a java ee 8 environment, focusing on image handling, validation, and the data flow between client and server.

  • Customizing the Checkout Form with JSF Expression language1:24

    Customize the checkout form with JSF expression language to dynamically render the Stripe public key and manage checkout keys for a seamless online payments experience.

  • Enabling CDI Support for All Beans2:32

    Enable CDI support for all beans by configuring the container to inject all eligible components, using annotations to mark injectable classes, and ensuring dependencies are satisfied.

  • Testing the Checkout Form Changes4:05

    Test the checkout form changes using stripe checkout, showing dynamic data handling, customer data assembly, and cents-based pricing for a $100 transaction.

  • Getting the Stripe Token4:34

    Learn how to obtain a Stripe token and process payments in a Java EE 8 app by wiring form submissions, post requests, and API integration to handle payment events.

  • Testing if We Got the Stripe Token3:07

    Test the Stripe token flow by submitting a test card number in the frontend and verify the console output shows a populated charge object.

  • Let's Create the Stripe Charge Object1:26

    Create and expose the Stripe charge object using an EJB within a Java EE 8 payments service to process charges.

  • Let's Create the Charge Object1:51

    Create the charge object to model a payment in Stripe for Java EE 8 and identify the three things needed to make the payment.

  • Let's Create the Charge Object4:52

    Learn to create a charge object in Stripe using Java EE 8 by specifying required parameters such as amount and currency, enabling successful payment processing.

  • Let's Create the Charge Object3:14

    Create a charge object with Stripe in Java EE 8, handle API exceptions by throwing a generic Stripe exception, and initialize with a post construct pattern.

  • Now Let's Use Our Payment Service3:16

    Explore using a payment service with Stripe in a Java EE 8 app, configure test keys, handle exceptions, and validate amounts and currencies during processing.

  • Let's Use the Payment Service2:49

    Ensure the Chad method runs only when the Stripe token is populated, preventing initialization errors at checkout and supporting Java EE 8 payment flow.

  • What should happen after a charge?4:15

    Handle post-charge flows in Stripe and Java EE 8, redirecting to success or failure pages, catching errors, and validating cards for secure, clear user messaging.

  • Let's Create the Success and Failure Pages4:12

    Develop and integrate the success and failure pages for online payments using Stripe and Java EE 8, managing the checkout flow and redirecting on success or failure.

  • Moment of Truth!2:37

    Explore integrating Stripe in a Java EE 8 app by walking through a checkout flow, testing with Stripe test card numbers, and confirming a successful payment on the success page.

  • Let's Go Over it all again4:44

    Integrate Stripe payments into a Java EE 8 app by populating the checkout form, processing card details via the Stripe API, and routing to the success page and dashboard.

  • Let's See our Payment on the Stripe Dashbord1:07

    Show how a 100 US dollars payment appears on the Stripe dashboard, with Acme Inc. dotcom and a succeeded status, illustrating how payments are processed and reflected.

  • Peruse the Stripe Docs - End of the Beginning1:33

    Explore the Stripe docs to enhance your checkout, customer, and subscription workflows in a Java EE app. Learn to save card details and track customers using the documentation.

Requirements

  • A good grounding in the Java programming language
  • Some familiarity with Java EE though you don't need to be a ninja

Description

Do you have a web application built with Java? Do you need to process payments from your customers/clients from across the world? Do you need to accept both credit and debit cards on your site? Do you need a straight forward guide to integrating Stripe with your Java EE app?

Then this course is for you. This is a no-nonsense straight forward guide to integrating the Stripe API into your Java EE application. You'll first learn how to accept your customers' credit/debit cards and securely send them to Stripe's servers using Stripe Checkout. Then you'll learn how to integrate the Stripe Java server API into your Java EE backend using the Stripe token returned to your application by Stripe. 

By the end of this course, you'll

  • Learn how to use the various Java EE constructs like Dependency Injection to integrate Stripe
  • Be able to accept customer payment data using Stripe Checkout
  • Be able to send client payment data to Stripe's servers
  • Be able to grab the Stripe Token returned to your application by Stripe
  • Be able to use the returned Stripe Token to make a charge against customer payment data

So what are you waiting for? Signup for this course and get started accepting payments in your Java EE application. See you in the course

Who this course is for:

  • Anyone who wants to process online payments with Stripe in a Java EE app