@ashish.135 The error message is telling you what the issue is:
This customer has no attached payment source
You’re trying to create a charge for a user that doesn’t have a credit card saved.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm getting this error. On stripe account I have already create plans for users.
InvalidRequest This customer has no attached payment source in ApiRequestor.php (line 124) at ApiRequestor::_specificAPIError('{ "error": { "type": "invalid_request_error", "message": "This customer has no attached payment source" }}', 400, array('Server' => 'nginx', 'Date' => 'Mon, 21 Aug 2017 10:14:03 GMT', 'Content-Type' => 'application/json', 'Content-Length' => '120', 'Connection' => 'keep-alive', 'Access-Control-Allow-Credentials' => 'true', 'Access-Control-Allow-Methods' => 'GET, POST, HEAD, OPTIONS, DELETE', 'Access-Control-Allow-Origin' => '*', 'Access-Control-Max-Age' => '300', 'Cache-Control' => 'no-cache, no-store', 'Request-Id' => 'req_O0aryD3NsVGt7s', 'Stripe-Version' => '2017-06-05'), array('error' => array('type' => 'invalid_request_error', 'message' => 'This customer has no attached payment source')), array('type' => 'invalid_request_error', 'message' => 'This customer has no attached payment source')) in ApiRequestor.php (line 102)
Please or to participate in this conversation.