PayPal 웹훅 테스트

웹훅 URL: https://www.thinkocn.com/plugin/paypal_subscription/includes/webhook.php

테스트 웹훅 데이터:

{
    "id": "WH-2W724009AC2067914-5Z725107KP7987537",
    "event_version": "1.0",
    "create_time": "2025-08-13T10:31:57.000Z",
    "resource_type": "subscription",
    "event_type": "BILLING.SUBSCRIPTION.ACTIVATED",
    "summary": "Subscription activated",
    "resource": {
        "id": "I-9FMY6D16NWL0",
        "plan_id": "P-3MC99372MN303192FNCNWNAY",
        "status": "ACTIVE",
        "status_update_time": "2025-08-13T10:31:57Z",
        "subscriber": {
            "email_address": "test@example.com",
            "name": {
                "given_name": "Test",
                "surname": "User"
            }
        },
        "billing_info": {
            "outstanding_balance": {
                "currency_code": "USD",
                "value": "0.00"
            },
            "cycle_executions": [
                {
                    "tenure_type": "REGULAR",
                    "sequence": 1,
                    "cycles_completed": 0,
                    "cycles_remaining": 0
                }
            ],
            "next_billing_time": "2026-08-13T10:31:57Z"
        },
        "create_time": "2025-08-13T10:31:57Z",
        "links": [
            {
                "href": "https:\/\/api-m.sandbox.paypal.com\/v1\/billing\/subscriptions\/I-9FMY6D16NWL0",
                "rel": "self",
                "method": "GET"
            }
        ]
    },
    "links": [
        {
            "href": "https:\/\/api-m.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-2W724009AC2067914-5Z725107KP7987537",
            "rel": "self",
            "method": "GET"
        }
    ]
}

웹훅 테스트 실행:

웹훅 테스트 실행

현재 데이터베이스 구독 정보:


Warning: Constant _GNUBOARD_ already defined in /var/www/html/config.php on line 8

그누보드 환경 로드 성공: ../../../common.php


Warning: Undefined array key "table_prefix" in /var/www/html/plugin/paypal_subscription/test/webhook_test.php on line 200

Fatal error: Uncaught TypeError: mysqli_num_rows(): Argument #1 ($result) must be of type mysqli_result, bool given in /var/www/html/lib/common.lib.php:1925 Stack trace: #0 /var/www/html/lib/common.lib.php(1925): mysqli_num_rows() #1 /var/www/html/plugin/paypal_subscription/test/webhook_test.php(203): sql_num_rows() #2 {main} thrown in /var/www/html/lib/common.lib.php on line 1925