Using base URL: https://7a7f08a3-f24d-4ac6-bd06-d0386ed34d90-00-134azppx5f9s7.worf.replit.dev Registering paybill URLs: Validation URL: https://7a7f08a3-f24d-4ac6-bd06-d0386ed34d90-00-134azppx5f9s7.worf.replit.dev/payments/mpesa-paybill-callback/ Confirmation URL: https://7a7f08a3-f24d-4ac6-bd06-d0386ed34d90-00-134azppx5f9s7.worf.replit.dev/payments/mpesa-paybill-callback/ M-Pesa: Getting fresh access token for C2B URL registration... M-Pesa: Requesting access token from https://api.safaricom.co.ke/oauth/v1/generate?grant_type=client_credentials M-Pesa: Using environment production M-Pesa: Consumer Key length: 32 M-Pesa: Consumer Secret length: 16 M-Pesa Token Response Status: 200 M-Pesa Token Response Headers: {'content-type': 'application/json;charset=UTF-8', 'cache-control': 'no-store', 'x-request-id': 'c1f61197-98fa-4e91-a9c6-7567cc4cb788', 'content-length': '113', 'date': 'Tue, 12 Aug 2025 18:30:32 GMT'} M-Pesa Token Response: {'access_token': 'QtEif4piUPDEGhEOUHSSAqdQ4f15', 'expires_in': '3599'} M-Pesa: Access token obtained successfully M-Pesa: Using access token: QtEif4piUP... M-Pesa: Registering C2B URLs with payload: {'ShortCode': '4125311', 'ResponseType': 'Completed', 'ConfirmationURL': 'https://7a7f08a3-f24d-4ac6-bd06-d0386ed34d90-00-134azppx5f9s7.worf.replit.dev/payments/mpesa-paybill-callback/', 'ValidationURL': 'https://7a7f08a3-f24d-4ac6-bd06-d0386ed34d90-00-134azppx5f9s7.worf.replit.dev/payments/mpesa-paybill-callback/'} M-Pesa: Request URL: https://api.safaricom.co.ke/mpesa/c2b/v1/registerurl M-Pesa: Request Headers: {'Authorization': 'Bearer QtEif4piUPDEGhEOUHSSAqdQ4f15', 'Content-Type': 'application/json', 'Cache-Control': 'no-cache'} M-Pesa C2B Registration Response Status: 401 M-Pesa C2B Registration Response Headers: {'content-type': 'application/json;charset=UTF-8', 'www-authenticate': 'Bearer realm="null",error="invalid_token",error_description="keymanagement.service.InvalidAPICallAsNoApiProductMatchFound: Invalid API call as no apiproduct match found"', 'cache-control': 'no-store', 'x-request-id': 'a9ddcaf7-5aea-46e4-b388-a5efc84b2b9b', 'content-length': '228', 'date': 'Tue, 12 Aug 2025 18:30:33 GMT'} M-Pesa C2B Registration Response: {'requestId': 'f373-48f0-8696-f5c35e1b0dc61700562', 'errorCode': '401.003.01', 'errorMessage': 'Error Occurred - Invalid Access Token - '} Failed to register paybill URLs: Unauthorized - Invalid Access Token