HEX
Server: Apache
System: Linux www3.pit.tblive.com 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64
User: awaldron (1020)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/awaldron/_accomods/api.accomods.com/v1/order.php
<?php

//**********************************************************************************************************//
// Method: POST
// Endpoint: order/intent
// Params:
function post_v1_order_intent( $args, $body, $uid, $is_admin, $db ) {
    // This is your real test secret API key.
    \Stripe\Stripe::setApiKey('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');

    header('Content-Type: application/json');
    try {
        $paymentIntent = \Stripe\PaymentIntent::create([
            'amount' => 3995,
            'currency' => 'usd',
        ]);
        $output = [
            'clientSecret' => $paymentIntent->client_secret,
        ];
        echo json_encode($output);

    } catch (Error $e) {
        http_response_code(500);
        echo json_encode(['error' => $e->getMessage()]);
    }

    exit;
}