[How to] Add A Stripe Checkout On Your Landing Pages

  • 2 December 2019
  • 78 replies
  • 939 views


Show first post

78 replies

Hi all,

I have an active site with Woocommerce integration, but want to try Unbounce. I already have many products in my Stripe account and I’m worried that changing my checkout settings will disrupt my existing product checkouts. Any advice?

Thanks,

Charlie

Userlevel 7
Badge +4

Hi Charlie!

I’m not speaking from experience, but I don’t think this will impact you. Perhaps you can try with one product to see how this affects the checkout experience on your Woocommerce site, and go from there? Happy to provide assistance along the way, but I think you will be just fine 👍

Hi Stefano, thanks for the info here!

I’ve successfully set up the checkout on my landing page and it works fine on my desktop but when I try to click the link on mobile version it doesn’t click through to the Stripe payment page. Does this Stripe feature not work on mobile?

Thanks

Userlevel 7
Badge +1

Just bumping this up for @Stefano – have you had mobile/desktop issues in the past like this? 🤔

Userlevel 7
Badge +4

Hi there! I haven’t had this issue on my end, perhaps there is a conflicting issue with a script or something else on the page.

Could you share your URL with me? I can have a look.

Cheers!

and you can measure the sales from each variant in Unbounce?

Badge +2

Hi there! The sales will not be displayed in the Unbounce builder.

Do you know if this will work with a stripe subscription as well instead of just a one time charge?

Badge +2

That’s a good question! We never tried it with a Stripe subscription but my instincts say that it would work! Unless Stripe’s new checkout doesn’t play well with subscriptions.

Hello. Got everything to work, thank you so much! I need to collect the shipping address for a product. Is there a way to do that? I have looked all over the stripe dashboard & do not see it.

Badge +2

Hi there! I found this documentation which might help:
https://stripe.com/docs/payments/checkout/customization

Jonathan ~ I don’t see a version for HTML code. Of the options given, which would I use? Thanks, Niki

This is something new information i get on unbounce. Loved to see it. Really helpful in my digital marketing career​:heart_eyes:😍 Thanks for sharing

Hi @Stefano - I’m trying to implement Stripe checkout but something doesn’t seem to work. I’ve tried 2 Stripe accounts so far, and one-time purchases and subscriptions.
https://join.vertellis.nl/testing/
https://join.vertellis.nl/test-for-stripe-checkout/

Would appreciate your insights!

Userlevel 7
Badge +4

Oh no!

Could you DM me screenshots of your Stripe account? From my understanding, new accounts require complete account setup before the checkout will work. Also double check that you’ve added your domain in step 4 🙂

Thank you for the quick response!
My issue was user error after all. I had entered the subdomain at stripe, but it seems that the main domain is required as well.
Thanks again, @Stefano!

Userlevel 7
Badge +4

Fantastic 🙂

Hi! We’re trying to add a button to make donations through Stripe, will this work the same? I have added the button to our landing page but the button doesn’t seem to be working.

Userlevel 7
Badge +4

Hi there! This often happens when you don’t add in your domain at the stripe checkout settings screen. Can you verify if your domain was added correctly?

Hi Stefano, thank you, that worked! Is it possible to add multiple prices to the one button?

Has anyone successfully integrated multiple Stripe buy now buttons? I have a long-form sales page and only one button will work for the product. If I want to add additional buy now buttons on the page or a sticky bar they do not function.

Hi,

The checkout button is not working on my page.
Can anyone help me to solve the issue?

Page link: http://www.botvo.io/

Thank you


Looks like you fixed the issue, what were you doing?

Having a similar issue where button is not working on the live page, can someone advise?

    <!-- Load Stripe.js on your website. -->
<script src="https://js.stripe.com/v3"></script>

<!-- Create a button that your customers click to complete their purchase. Customize the styling to suit your branding. -->
<button
  style="background-color:#eb6a12;color:#FFF;padding:8px 12px;border:0;border-radius:4px;font-size:1em;cursor:pointer"
  id="checkout-button-price_1HYJoBGbAB7kOFgGWgf0PzqR"
  role="link"
  type="button"
>
  I'M READY
</button>

<div id="error-message"></div>

<script>
(function() {
  var stripe = Stripe('pk_live_2jHS26KnXVzNkQilZnQLyapm00NPy2YkvH');

  var checkoutButton = document.getElementById('checkout-button-price_1HYJoBGbAB7kOFgGWgf0PzqR');
  checkoutButton.addEventListener('click', function () {
    // When the customer clicks on the button, redirect
    // them to Checkout.
    stripe.redirectToCheckout({
      lineItems: [{price: 'price_1HYJoBGbAB7kOFgGWgf0PzqR', quantity: 1}],
      mode: 'payment',
      // Do not rely on the redirect to the successUrl for fulfilling
      // purchases, customers may not always reach the success_url after
      // a successful payment.
      // Instead use one of the strategies described in
      // https://stripe.com/docs/payments/checkout/fulfill-orders
      successUrl: window.location.protocol + '//www.clara-ty.com/success',
      cancelUrl: window.location.protocol + '//www.clara-ty.com/canceled',
    })
    .then(function (result) {
      if (result.error) {
        // If `redirectToCheckout` fails due to a browser or network
        // error, display the localized error message to your customer.
        var displayError = document.getElementById('error-message');
        displayError.textContent = result.error.message;
      }
    });
  });
})();
</script>
Userlevel 7
Badge +3

Hey @heymr,

Your Thank You pages seem to be on a different domain and the console is throwing up some errors.

Try adding that domain to the list in Stripe and that should fix it.

Best,
Hristian

Reply