Forum

Thread tagged as: Question, Configuration, Shop

Blank checkout page

My checkout page is blank. Am I calling the page function correctly? The debug call does not return

<?php include($_SERVER['DOCUMENT_ROOT'].'/perch/runtime.php'); ?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>Perch Example Page</title>
    <?php perch_get_css(); ?>
</head>
<body>
  <header>
    <h1><a href="../../"><?php perch_content('Main heading'); ?></a></h1>
    <span><?php perch_content('Introduction'); ?></span>
  </header>
  <main>
    <h2>Checkout</h2>
    <?php perch_shop_checkout([
      'return_url' => 'success.php',
      'cancel_url' => 'failure.php'
    ]);?>
    <?php PerchUtil::output_debug(); ?>
  </main>
    <?php perch_get_javascript(); ?>
</body>
</html>
Fred Stidston

Fred Stidston 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

It looks like you're missing the gateway argument.

https://solutions.grabaperch.com/development/why-am-i-getting-a-blank-page

Thank you

More information here https://docs.grabaperch.com/addons/shop/checkout/

Particularly perch_shop_payment_form() within your chosen Payment Gateway