Plan test.
An error occurred:
object(Stripe\Error\InvalidRequest)#6 (13) {
["message":protected]=>
string(24) "Customer already exists."
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(0)
["file":protected]=>
string(89) "/home/sandbox2/public_html/StripeSubscriptionsTest/.stripe-php-3.4.0/lib/ApiRequestor.php"
["line":protected]=>
int(102)
["trace":"Exception":private]=>
array(6) {
[0]=>
array(6) {
["file"]=>
string(89) "/home/sandbox2/public_html/StripeSubscriptionsTest/.stripe-php-3.4.0/lib/ApiRequestor.php"
["line"]=>
int(216)
["function"]=>
string(14) "handleApiError"
["class"]=>
string(19) "Stripe\ApiRequestor"
["type"]=>
string(2) "->"
["args"]=>
array(4) {
[0]=>
string(314) "{
"error": {
"code": "resource_already_exists",
"doc_url": "https://stripe.com/docs/error-codes/resource-already-exists",
"message": "Customer already exists.",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_6oHL0lnqQm1x12?t=1747260902",
"type": "invalid_request_error"
}
}
"
[1]=>
int(400)
[2]=>
array(21) {
["server"]=>
string(5) "nginx"
["date"]=>
string(29) "Wed, 14 May 2025 22:15:02 GMT"
["content-type"]=>
string(16) "application/json"
["content-length"]=>
string(3) "314"
["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=gkfsILiTHhotGnL1u6C3mx5kROr2NzYB7p6UePZmuRxuSHotb30m_zpvFhHRj8tf626Eg4B3hTVYhAGo"
["idempotency-key"]=>
string(36) "f3d7ab11-54eb-432e-8754-bf8f2f5f3074"
["original-request"]=>
string(18) "req_6oHL0lnqQm1x12"
["request-id"]=>
string(18) "req_6oHL0lnqQm1x12"
["stripe-should-retry"]=>
string(5) "false"
["stripe-version"]=>
string(10) "2015-10-16"
["vary"]=>
string(6) "Origin"
["x-stripe-priority-routing-enabled"]=>
string(4) "true"
["x-stripe-routing-context-priority-tier"]=>
string(12) "api-testmode"
["x-wc"]=>
string(5) "ABGHI"
["strict-transport-security"]=>
string(44) "max-age=63072000; includeSubDomains; preload"
}
[3]=>
array(1) {
["error"]=>
array(5) {
["code"]=>
string(23) "resource_already_exists"
["doc_url"]=>
string(59) "https://stripe.com/docs/error-codes/resource-already-exists"
["message"]=>
string(24) "Customer already exists."
["request_log_url"]=>
string(70) "https://dashboard.stripe.com/test/logs/req_6oHL0lnqQm1x12?t=1747260902"
["type"]=>
string(21) "invalid_request_error"
}
}
}
}
[1]=>
array(6) {
["file"]=>
string(89) "/home/sandbox2/public_html/StripeSubscriptionsTest/.stripe-php-3.4.0/lib/ApiRequestor.php"
["line"]=>
int(60)
["function"]=>
string(18) "_interpretResponse"
["class"]=>
string(19) "Stripe\ApiRequestor"
["type"]=>
string(2) "->"
["args"]=>
array(3) {
[0]=>
string(314) "{
"error": {
"code": "resource_already_exists",
"doc_url": "https://stripe.com/docs/error-codes/resource-already-exists",
"message": "Customer already exists.",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_6oHL0lnqQm1x12?t=1747260902",
"type": "invalid_request_error"
}
}
"
[1]=>
int(400)
[2]=>
array(21) {
["server"]=>
string(5) "nginx"
["date"]=>
string(29) "Wed, 14 May 2025 22:15:02 GMT"
["content-type"]=>
string(16) "application/json"
["content-length"]=>
string(3) "314"
["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=gkfsILiTHhotGnL1u6C3mx5kROr2NzYB7p6UePZmuRxuSHotb30m_zpvFhHRj8tf626Eg4B3hTVYhAGo"
["idempotency-key"]=>
string(36) "f3d7ab11-54eb-432e-8754-bf8f2f5f3074"
["original-request"]=>
string(18) "req_6oHL0lnqQm1x12"
["request-id"]=>
string(18) "req_6oHL0lnqQm1x12"
["stripe-should-retry"]=>
string(5) "false"
["stripe-version"]=>
string(10) "2015-10-16"
["vary"]=>
string(6) "Origin"
["x-stripe-priority-routing-enabled"]=>
string(4) "true"
["x-stripe-routing-context-priority-tier"]=>
string(12) "api-testmode"
["x-wc"]=>
string(5) "ABGHI"
["strict-transport-security"]=>
string(44) "max-age=63072000; includeSubDomains; preload"
}
}
}
[2]=>
array(6) {
["file"]=>
string(88) "/home/sandbox2/public_html/StripeSubscriptionsTest/.stripe-php-3.4.0/lib/ApiResource.php"
["line"]=>
int(105)
["function"]=>
string(7) "request"
["class"]=>
string(19) "Stripe\ApiRequestor"
["type"]=>
string(2) "->"
["args"]=>
array(4) {
[0]=>
string(4) "post"
[1]=>
string(13) "/v1/customers"
[2]=>
array(4) {
["source"]=>
NULL
["plan"]=>
string(5) "test1"
["email"]=>
string(16) "jeff@solterra.us"
["id"]=>
string(3) "kjg"
}
[3]=>
array(0) {
}
}
}
[3]=>
array(6) {
["file"]=>
string(88) "/home/sandbox2/public_html/StripeSubscriptionsTest/.stripe-php-3.4.0/lib/ApiResource.php"
["line"]=>
int(137)
["function"]=>
string(14) "_staticRequest"
["class"]=>
string(18) "Stripe\ApiResource"
["type"]=>
string(2) "::"
["args"]=>
array(4) {
[0]=>
string(4) "post"
[1]=>
string(13) "/v1/customers"
[2]=>
array(4) {
["source"]=>
NULL
["plan"]=>
string(5) "test1"
["email"]=>
string(16) "jeff@solterra.us"
["id"]=>
string(3) "kjg"
}
[3]=>
NULL
}
}
[4]=>
array(6) {
["file"]=>
string(85) "/home/sandbox2/public_html/StripeSubscriptionsTest/.stripe-php-3.4.0/lib/Customer.php"
["line"]=>
int(37)
["function"]=>
string(7) "_create"
["class"]=>
string(18) "Stripe\ApiResource"
["type"]=>
string(2) "::"
["args"]=>
array(2) {
[0]=>
array(4) {
["source"]=>
NULL
["plan"]=>
string(5) "test1"
["email"]=>
string(16) "jeff@solterra.us"
["id"]=>
string(3) "kjg"
}
[1]=>
NULL
}
}
[5]=>
array(6) {
["file"]=>
string(63) "/home/sandbox2/public_html/StripeSubscriptionsTest/PlanTest.php"
["line"]=>
int(16)
["function"]=>
string(6) "create"
["class"]=>
string(15) "Stripe\Customer"
["type"]=>
string(2) "::"
["args"]=>
array(1) {
[0]=>
array(4) {
["source"]=>
NULL
["plan"]=>
string(5) "test1"
["email"]=>
string(16) "jeff@solterra.us"
["id"]=>
string(3) "kjg"
}
}
}
}
["previous":"Exception":private]=>
NULL
["httpStatus"]=>
int(400)
["httpBody"]=>
string(314) "{
"error": {
"code": "resource_already_exists",
"doc_url": "https://stripe.com/docs/error-codes/resource-already-exists",
"message": "Customer already exists.",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_6oHL0lnqQm1x12?t=1747260902",
"type": "invalid_request_error"
}
}
"
["jsonBody"]=>
array(1) {
["error"]=>
array(5) {
["code"]=>
string(23) "resource_already_exists"
["doc_url"]=>
string(59) "https://stripe.com/docs/error-codes/resource-already-exists"
["message"]=>
string(24) "Customer already exists."
["request_log_url"]=>
string(70) "https://dashboard.stripe.com/test/logs/req_6oHL0lnqQm1x12?t=1747260902"
["type"]=>
string(21) "invalid_request_error"
}
}
["httpHeaders"]=>
array(21) {
["server"]=>
string(5) "nginx"
["date"]=>
string(29) "Wed, 14 May 2025 22:15:02 GMT"
["content-type"]=>
string(16) "application/json"
["content-length"]=>
string(3) "314"
["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=gkfsILiTHhotGnL1u6C3mx5kROr2NzYB7p6UePZmuRxuSHotb30m_zpvFhHRj8tf626Eg4B3hTVYhAGo"
["idempotency-key"]=>
string(36) "f3d7ab11-54eb-432e-8754-bf8f2f5f3074"
["original-request"]=>
string(18) "req_6oHL0lnqQm1x12"
["request-id"]=>
string(18) "req_6oHL0lnqQm1x12"
["stripe-should-retry"]=>
string(5) "false"
["stripe-version"]=>
string(10) "2015-10-16"
["vary"]=>
string(6) "Origin"
["x-stripe-priority-routing-enabled"]=>
string(4) "true"
["x-stripe-routing-context-priority-tier"]=>
string(12) "api-testmode"
["x-wc"]=>
string(5) "ABGHI"
["strict-transport-security"]=>
string(44) "max-age=63072000; includeSubDomains; preload"
}
["requestId"]=>
NULL
["stripeParam"]=>
NULL
}