Skip to content

Commit 90bed54

Browse files
committed
Move stripe checkout
1 parent 281c499 commit 90bed54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

API/src/order/stripeCheckout.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
header('Access-Control-Allow-Headers: Origin, Content-Type');
66
header('Content-Type: application/json');
77

8-
require_once '../admin/secrets.php';
8+
require_once '../secrets.php';
99

1010
if (session_status() === PHP_SESSION_ACTIVE) {
1111
} else {
1212
session_start();
1313
}
1414

15-
include 'conn.php';
15+
include '../admin/conn.php';
1616

1717
if ($_SESSION["order_id"]) {
1818
$orderId = $_SESSION["order_id"];
@@ -65,7 +65,7 @@
6565
$total_cost *= 100;
6666

6767
// stripe integration
68-
require_once 'vendor/autoload.php';
68+
require_once '../vendor/autoload.php';
6969

7070
\Stripe\Stripe::setApiKey(STRIPE_KEY);
7171

0 commit comments

Comments
 (0)