Warning: Attempt to read property "priceId" on null in /home/amrohmaidan/public_html/stripe/create-checkout-session.php on line 59
object(Stripe\Exception\InvalidRequestException)#12 (15) { ["message":protected]=> string(85) "You must provide one of `price` or `price_data` for each line item when using prices." ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(90) "/home/amrohmaidan/public_html/vendor/stripe/stripe-php/lib/Exception/ApiErrorException.php" ["line":protected]=> int(38) ["trace":"Exception":private]=> array(8) { [0]=> array(6) { ["file"]=> string(96) "/home/amrohmaidan/public_html/vendor/stripe/stripe-php/lib/Exception/InvalidRequestException.php" ["line"]=> int(35) ["function"]=> string(7) "factory" ["class"]=> string(34) "Stripe\Exception\ApiErrorException" ["type"]=> string(2) "::" ["args"]=> array(6) { [0]=> string(85) "You must provide one of `price` or `price_data` for each line item when using prices." [1]=> int(400) [2]=> string(283) "{ "error": { "message": "You must provide one of `price` or `price_data` for each line item when using prices.", "param": "line_items[0]", "request_log_url": "https://dashboard.stripe.com/logs/req_znryptHAScfQIA?t=1752987291", "type": "invalid_request_error" } } " [3]=> array(1) { ["error"]=> array(4) { ["message"]=> string(85) "You must provide one of `price` or `price_data` for each line item when using prices." ["param"]=> string(13) "line_items[0]" ["request_log_url"]=> string(65) "https://dashboard.stripe.com/logs/req_znryptHAScfQIA?t=1752987291" ["type"]=> string(21) "invalid_request_error" } } [4]=> object(Stripe\Util\CaseInsensitiveArray)#8 (1) { ["container":"Stripe\Util\CaseInsensitiveArray":private]=> array(21) { ["server"]=> string(5) "nginx" ["date"]=> string(29) "Sun, 20 Jul 2025 04:54:52 GMT" ["content-type"]=> string(16) "application/json" ["content-length"]=> string(3) "283" ["access-control-allow-credentials"]=> string(4) "true" ["access-control-allow-methods"]=> string(35) "GET, HEAD, PUT, PATCH, POST, DELETE" ["access-control-allow-origin"]=> string(1) "*" ["access-control-expose-headers"]=> string(125) "Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required" ["access-control-max-age"]=> string(3) "300" ["cache-control"]=> string(18) "no-cache, no-store" ["content-security-policy"]=> string(324) "base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; worker-src 'none'; upgrade-insecure-requests; report-uri https://q.stripe.com/csp-violation?q=PYypHLIT1HEU7QsS5-Inu9nlHmw2RyArAEoV9A0fr4CGKfGmLBSsh59Gm0Z4xHuCNH0YRr2uLEEWN7lq" ["idempotency-key"]=> string(36) "9bb0ac85-d9da-4fd7-a83f-2d795986d974" ["original-request"]=> string(18) "req_znryptHAScfQIA" ["request-id"]=> string(18) "req_znryptHAScfQIA" ["stripe-should-retry"]=> string(5) "false" ["stripe-version"]=> string(10) "2020-08-27" ["vary"]=> string(6) "Origin" ["x-stripe-priority-routing-enabled"]=> string(4) "true" ["x-stripe-routing-context-priority-tier"]=> string(17) "livemode-critical" ["x-wc"]=> string(6) "ABGHIJ" ["strict-transport-security"]=> string(44) "max-age=63072000; includeSubDomains; preload" } } [5]=> NULL } } [1]=> array(6) { ["file"]=> string(75) "/home/amrohmaidan/public_html/vendor/stripe/stripe-php/lib/ApiRequestor.php" ["line"]=> int(213) ["function"]=> string(7) "factory" ["class"]=> string(40) "Stripe\Exception\InvalidRequestException" ["type"]=> string(2) "::" ["args"]=> array(7) { [0]=> string(85) "You must provide one of `price` or `price_data` for each line item when using prices." [1]=> int(400) [2]=> string(283) "{ "error": { "message": "You must provide one of `price` or `price_data` for each line item when using prices.", "param": "line_items[0]", "request_log_url": "https://dashboard.stripe.com/logs/req_znryptHAScfQIA?t=1752987291", "type": "invalid_request_error" } } " [3]=> array(1) { ["error"]=> array(4) { ["message"]=> string(85) "You must provide one of `price` or `price_data` for each line item when using prices." ["param"]=> string(13) "line_items[0]" ["request_log_url"]=> string(65) "https://dashboard.stripe.com/logs/req_znryptHAScfQIA?t=1752987291" ["type"]=> string(21) "invalid_request_error" } } [4]=> object(Stripe\Util\CaseInsensitiveArray)#8 (1) { ["container":"Stripe\Util\CaseInsensitiveArray":private]=> array(21) { ["server"]=> string(5) "nginx" ["date"]=> string(29) "Sun, 20 Jul 2025 04:54:52 GMT" ["content-type"]=> string(16) "application/json" ["content-length"]=> string(3) "283" ["access-control-allow-credentials"]=> string(4) "true" ["access-control-allow-methods"]=> string(35) "GET, HEAD, PUT, PATCH, POST, DELETE" ["access-control-allow-origin"]=> string(1) "*" ["access-control-expose-headers"]=> string(125) "Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required" ["access-control-max-age"]=> string(3) "300" ["cache-control"]=> string(18) "no-cache, no-store" ["content-security-policy"]=> string(324) "base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; worker-src 'none'; upgrade-insecure-requests; report-uri https://q.stripe.com/csp-violation?q=PYypHLIT1HEU7QsS5-Inu9nlHmw2RyArAEoV9A0fr4CGKfGmLBSsh59Gm0Z4xHuCNH0YRr2uLEEWN7lq" ["idempotency-key"]=> string(36) "9bb0ac85-d9da-4fd7-a83f-2d795986d974" ["original-request"]=> string(18) "req_znryptHAScfQIA" ["request-id"]=> string(18) "req_znryptHAScfQIA" ["stripe-should-retry"]=> string(5) "false" ["stripe-version"]=> string(10) "2020-08-27" ["vary"]=> string(6) "Origin" ["x-stripe-priority-routing-enabled"]=> string(4) "true" ["x-stripe-routing-context-priority-tier"]=> string(17) "livemode-critical" ["x-wc"]=> string(6) "ABGHIJ" ["strict-transport-security"]=> string(44) "max-age=63072000; includeSubDomains; preload" } } [5]=> NULL [6]=> string(13) "line_items[0]" } } [2]=> array(6) { ["file"]=> string(75) "/home/amrohmaidan/public_html/vendor/stripe/stripe-php/lib/ApiRequestor.php" ["line"]=> int(175) ["function"]=> string(17) "_specificAPIError" ["class"]=> string(19) "Stripe\ApiRequestor" ["type"]=> string(2) "::" ["args"]=> array(5) { [0]=> string(283) "{ "error": { "message": "You must provide one of `price` or `price_data` for each line item when using prices.", "param": "line_items[0]", "request_log_url": "https://dashboard.stripe.com/logs/req_znryptHAScfQIA?t=1752987291", "type": "invalid_request_error" } } " [1]=> int(400) [2]=> object(Stripe\Util\CaseInsensitiveArray)#8 (1) { ["container":"Stripe\Util\CaseInsensitiveArray":private]=> array(21) { ["server"]=> string(5) "nginx" ["date"]=> string(29) "Sun, 20 Jul 2025 04:54:52 GMT" ["content-type"]=> string(16) "application/json" ["content-length"]=> string(3) "283" ["access-control-allow-credentials"]=> string(4) "true" ["access-control-allow-methods"]=> string(35) "GET, HEAD, PUT, PATCH, POST, DELETE" ["access-control-allow-origin"]=> string(1) "*" ["access-control-expose-headers"]=> string(125) "Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required" ["access-control-max-age"]=> string(3) "300" ["cache-control"]=> string(18) "no-cache, no-store" ["content-security-policy"]=> string(324) "base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; worker-src 'none'; upgrade-insecure-requests; report-uri https://q.stripe.com/csp-violation?q=PYypHLIT1HEU7QsS5-Inu9nlHmw2RyArAEoV9A0fr4CGKfGmLBSsh59Gm0Z4xHuCNH0YRr2uLEEWN7lq" ["idempotency-key"]=> string(36) "9bb0ac85-d9da-4fd7-a83f-2d795986d974" ["original-request"]=> string(18) "req_znryptHAScfQIA" ["request-id"]=> string(18) "req_znryptHAScfQIA" ["stripe-should-retry"]=> string(5) "false" ["stripe-version"]=> string(10) "2020-08-27" ["vary"]=> string(6) "Origin" ["x-stripe-priority-routing-enabled"]=> string(4) "true" ["x-stripe-routing-context-priority-tier"]=> string(17) "livemode-critical" ["x-wc"]=> string(6) "ABGHIJ" ["strict-transport-security"]=> string(44) "max-age=63072000; includeSubDomains; preload" } } [3]=> array(1) { ["error"]=> array(4) { ["message"]=> string(85) "You must provide one of `price` or `price_data` for each line item when using prices." ["param"]=> string(13) "line_items[0]" ["request_log_url"]=> string(65) "https://dashboard.stripe.com/logs/req_znryptHAScfQIA?t=1752987291" ["type"]=> string(21) "invalid_request_error" } } [4]=> array(4) { ["message"]=> string(85) "You must provide one of `price` or `price_data` for each line item when using prices." ["param"]=> string(13) "line_items[0]" ["request_log_url"]=> string(65) "https://dashboard.stripe.com/logs/req_znryptHAScfQIA?t=1752987291" ["type"]=> string(21) "invalid_request_error" } } } [3]=> array(6) { ["file"]=> string(75) "/home/amrohmaidan/public_html/vendor/stripe/stripe-php/lib/ApiRequestor.php" ["line"]=> int(560) ["function"]=> string(19) "handleErrorResponse" ["class"]=> string(19) "Stripe\ApiRequestor" ["type"]=> string(2) "->" ["args"]=> array(4) { [0]=> string(283) "{ "error": { "message": "You must provide one of `price` or `price_data` for each line item when using prices.", "param": "line_items[0]", "request_log_url": "https://dashboard.stripe.com/logs/req_znryptHAScfQIA?t=1752987291", "type": "invalid_request_error" } } " [1]=> int(400) [2]=> object(Stripe\Util\CaseInsensitiveArray)#8 (1) { ["container":"Stripe\Util\CaseInsensitiveArray":private]=> array(21) { ["server"]=> string(5) "nginx" ["date"]=> string(29) "Sun, 20 Jul 2025 04:54:52 GMT" ["content-type"]=> string(16) "application/json" ["content-length"]=> string(3) "283" ["access-control-allow-credentials"]=> string(4) "true" ["access-control-allow-methods"]=> string(35) "GET, HEAD, PUT, PATCH, POST, DELETE" ["access-control-allow-origin"]=> string(1) "*" ["access-control-expose-headers"]=> string(125) "Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required" ["access-control-max-age"]=> string(3) "300" ["cache-control"]=> string(18) "no-cache, no-store" ["content-security-policy"]=> string(324) "base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; worker-src 'none'; upgrade-insecure-requests; report-uri https://q.stripe.com/csp-violation?q=PYypHLIT1HEU7QsS5-Inu9nlHmw2RyArAEoV9A0fr4CGKfGmLBSsh59Gm0Z4xHuCNH0YRr2uLEEWN7lq" ["idempotency-key"]=> string(36) "9bb0ac85-d9da-4fd7-a83f-2d795986d974" ["original-request"]=> string(18) "req_znryptHAScfQIA" ["request-id"]=> string(18) "req_znryptHAScfQIA" ["stripe-should-retry"]=> string(5) "false" ["stripe-version"]=> string(10) "2020-08-27" ["vary"]=> string(6) "Origin" ["x-stripe-priority-routing-enabled"]=> string(4) "true" ["x-stripe-routing-context-priority-tier"]=> string(17) "livemode-critical" ["x-wc"]=> string(6) "ABGHIJ" ["strict-transport-security"]=> string(44) "max-age=63072000; includeSubDomains; preload" } } [3]=> array(1) { ["error"]=> array(4) { ["message"]=> string(85) "You must provide one of `price` or `price_data` for each line item when using prices." ["param"]=> string(13) "line_items[0]" ["request_log_url"]=> string(65) "https://dashboard.stripe.com/logs/req_znryptHAScfQIA?t=1752987291" ["type"]=> string(21) "invalid_request_error" } } } } [4]=> array(6) { ["file"]=> string(75) "/home/amrohmaidan/public_html/vendor/stripe/stripe-php/lib/ApiRequestor.php" ["line"]=> int(124) ["function"]=> string(18) "_interpretResponse" ["class"]=> string(19) "Stripe\ApiRequestor" ["type"]=> string(2) "->" ["args"]=> array(3) { [0]=> string(283) "{ "error": { "message": "You must provide one of `price` or `price_data` for each line item when using prices.", "param": "line_items[0]", "request_log_url": "https://dashboard.stripe.com/logs/req_znryptHAScfQIA?t=1752987291", "type": "invalid_request_error" } } " [1]=> int(400) [2]=> object(Stripe\Util\CaseInsensitiveArray)#8 (1) { ["container":"Stripe\Util\CaseInsensitiveArray":private]=> array(21) { ["server"]=> string(5) "nginx" ["date"]=> string(29) "Sun, 20 Jul 2025 04:54:52 GMT" ["content-type"]=> string(16) "application/json" ["content-length"]=> string(3) "283" ["access-control-allow-credentials"]=> string(4) "true" ["access-control-allow-methods"]=> string(35) "GET, HEAD, PUT, PATCH, POST, DELETE" ["access-control-allow-origin"]=> string(1) "*" ["access-control-expose-headers"]=> string(125) "Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required" ["access-control-max-age"]=> string(3) "300" ["cache-control"]=> string(18) "no-cache, no-store" ["content-security-policy"]=> string(324) "base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; worker-src 'none'; upgrade-insecure-requests; report-uri https://q.stripe.com/csp-violation?q=PYypHLIT1HEU7QsS5-Inu9nlHmw2RyArAEoV9A0fr4CGKfGmLBSsh59Gm0Z4xHuCNH0YRr2uLEEWN7lq" ["idempotency-key"]=> string(36) "9bb0ac85-d9da-4fd7-a83f-2d795986d974" ["original-request"]=> string(18) "req_znryptHAScfQIA" ["request-id"]=> string(18) "req_znryptHAScfQIA" ["stripe-should-retry"]=> string(5) "false" ["stripe-version"]=> string(10) "2020-08-27" ["vary"]=> string(6) "Origin" ["x-stripe-priority-routing-enabled"]=> string(4) "true" ["x-stripe-routing-context-priority-tier"]=> string(17) "livemode-critical" ["x-wc"]=> string(6) "ABGHIJ" ["strict-transport-security"]=> string(44) "max-age=63072000; includeSubDomains; preload" } } } } [5]=> array(6) { ["file"]=> string(84) "/home/amrohmaidan/public_html/vendor/stripe/stripe-php/lib/ApiOperations/Request.php" ["line"]=> int(78) ["function"]=> string(7) "request" ["class"]=> string(19) "Stripe\ApiRequestor" ["type"]=> string(2) "->" ["args"]=> array(4) { [0]=> string(4) "post" [1]=> string(21) "/v1/checkout/sessions" [2]=> array(7) { ["success_url"]=> string(71) "https://3asafeer.com/stripe/createuser?session_id={CHECKOUT_SESSION_ID}" ["cancel_url"]=> string(30) "https://3asafeer.com/subscribe" ["payment_method_types"]=> array(1) { [0]=> string(4) "card" } ["mode"]=> string(12) "subscription" ["line_items"]=> array(1) { [0]=> array(2) { ["price"]=> NULL ["quantity"]=> int(1) } } ["allow_promotion_codes"]=> bool(true) ["subscription_data"]=> array(1) { ["trial_end"]=> int(1753678491) } } [3]=> array(0) { } } } [6]=> array(6) { ["file"]=> string(83) "/home/amrohmaidan/public_html/vendor/stripe/stripe-php/lib/ApiOperations/Create.php" ["line"]=> int(25) ["function"]=> string(14) "_staticRequest" ["class"]=> string(18) "Stripe\ApiResource" ["type"]=> string(2) "::" ["args"]=> array(4) { [0]=> string(4) "post" [1]=> string(21) "/v1/checkout/sessions" [2]=> array(7) { ["success_url"]=> string(71) "https://3asafeer.com/stripe/createuser?session_id={CHECKOUT_SESSION_ID}" ["cancel_url"]=> string(30) "https://3asafeer.com/subscribe" ["payment_method_types"]=> array(1) { [0]=> string(4) "card" } ["mode"]=> string(12) "subscription" ["line_items"]=> array(1) { [0]=> array(2) { ["price"]=> NULL ["quantity"]=> int(1) } } ["allow_promotion_codes"]=> bool(true) ["subscription_data"]=> array(1) { ["trial_end"]=> int(1753678491) } } [3]=> NULL } } [7]=> array(6) { ["file"]=> string(64) "/home/amrohmaidan/public_html/stripe/create-checkout-session.php" ["line"]=> int(64) ["function"]=> string(6) "create" ["class"]=> string(23) "Stripe\Checkout\Session" ["type"]=> string(2) "::" ["args"]=> array(1) { [0]=> array(7) { ["success_url"]=> string(71) "https://3asafeer.com/stripe/createuser?session_id={CHECKOUT_SESSION_ID}" ["cancel_url"]=> string(30) "https://3asafeer.com/subscribe" ["payment_method_types"]=> array(1) { [0]=> string(4) "card" } ["mode"]=> string(12) "subscription" ["line_items"]=> array(1) { [0]=> array(2) { ["price"]=> NULL ["quantity"]=> int(1) } } ["allow_promotion_codes"]=> bool(true) ["subscription_data"]=> array(1) { ["trial_end"]=> int(1753678491) } } } } } ["previous":"Exception":private]=> NULL ["error":protected]=> object(Stripe\ErrorObject)#13 (12) { ["charge"]=> NULL ["code"]=> NULL ["decline_code"]=> NULL ["doc_url"]=> NULL ["message"]=> string(85) "You must provide one of `price` or `price_data` for each line item when using prices." ["param"]=> string(13) "line_items[0]" ["payment_intent"]=> NULL ["payment_method"]=> NULL ["setup_intent"]=> NULL ["source"]=> NULL ["type"]=> string(21) "invalid_request_error" ["request_log_url"]=> string(65) "https://dashboard.stripe.com/logs/req_znryptHAScfQIA?t=1752987291" } ["httpBody":protected]=> string(283) "{ "error": { "message": "You must provide one of `price` or `price_data` for each line item when using prices.", "param": "line_items[0]", "request_log_url": "https://dashboard.stripe.com/logs/req_znryptHAScfQIA?t=1752987291", "type": "invalid_request_error" } } " ["httpHeaders":protected]=> object(Stripe\Util\CaseInsensitiveArray)#8 (1) { ["container":"Stripe\Util\CaseInsensitiveArray":private]=> array(21) { ["server"]=> string(5) "nginx" ["date"]=> string(29) "Sun, 20 Jul 2025 04:54:52 GMT" ["content-type"]=> string(16) "application/json" ["content-length"]=> string(3) "283" ["access-control-allow-credentials"]=> string(4) "true" ["access-control-allow-methods"]=> string(35) "GET, HEAD, PUT, PATCH, POST, DELETE" ["access-control-allow-origin"]=> string(1) "*" ["access-control-expose-headers"]=> string(125) "Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required" ["access-control-max-age"]=> string(3) "300" ["cache-control"]=> string(18) "no-cache, no-store" ["content-security-policy"]=> string(324) "base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; worker-src 'none'; upgrade-insecure-requests; report-uri https://q.stripe.com/csp-violation?q=PYypHLIT1HEU7QsS5-Inu9nlHmw2RyArAEoV9A0fr4CGKfGmLBSsh59Gm0Z4xHuCNH0YRr2uLEEWN7lq" ["idempotency-key"]=> string(36) "9bb0ac85-d9da-4fd7-a83f-2d795986d974" ["original-request"]=> string(18) "req_znryptHAScfQIA" ["request-id"]=> string(18) "req_znryptHAScfQIA" ["stripe-should-retry"]=> string(5) "false" ["stripe-version"]=> string(10) "2020-08-27" ["vary"]=> string(6) "Origin" ["x-stripe-priority-routing-enabled"]=> string(4) "true" ["x-stripe-routing-context-priority-tier"]=> string(17) "livemode-critical" ["x-wc"]=> string(6) "ABGHIJ" ["strict-transport-security"]=> string(44) "max-age=63072000; includeSubDomains; preload" } } ["httpStatus":protected]=> int(400) ["jsonBody":protected]=> array(1) { ["error"]=> array(4) { ["message"]=> string(85) "You must provide one of `price` or `price_data` for each line item when using prices." ["param"]=> string(13) "line_items[0]" ["request_log_url"]=> string(65) "https://dashboard.stripe.com/logs/req_znryptHAScfQIA?t=1752987291" ["type"]=> string(21) "invalid_request_error" } } ["requestId":protected]=> string(18) "req_znryptHAScfQIA" ["stripeCode":protected]=> NULL ["stripeParam":protected]=> string(13) "line_items[0]" } {}