Erro ao finalizar a compra
-
Ao finalizar o checkout o mesmo n?o finaliza, olhando os arquivos de logs parece que tem um erro: The expires_at must be greater than now.
Segue Log completo:
2024-03-11T21:43:23+00:00 NOTICE API PagarmePix: Init process payment CONTEXT: {"_legacy":true} 2024-03-11T21:43:23+00:00 NOTICE API PagarmePix: Send pagarme data:Array ( [metadata] => Array ( [order_number] => 82649 ) [items] => Array ( [0] => Array ( [amount] => 19834 [description] => WCPagarmePixPayment [quantity] => 1 ) ) [customer] => Array ( [name] => Gabriel Filippi [email] => [email protected] [type] => individual [phones] => Array ( [home_phone] => Array ( [country_code] => 55 [area_code] => 47 [number] => 99999999999 ) ) [document] => 10000000000 [document_type] => CPF [birthdate] => 07-20-2001 ) [payments] => Array ( [0] => Array ( [payment_method] => pix [pix] => Array ( [expires_at] => 2024-03-11 19:43:23 ) ) ) [code] => 82649 ) CONTEXT: {"_legacy":true} 2024-03-11T21:43:23+00:00 NOTICE Doing a transaction for order 82649... CONTEXT: {"_legacy":true} 2024-03-11T21:43:23+00:00 NOTICE Send Safe Post Request to: https://api.pagar.me/core/v5/orders/ CONTEXT: {"_legacy":true} 2024-03-11T21:43:23+00:00 NOTICE Params to send: Array ( [method] => POST [timeout] => 60 [body] => {"metadata":{"order_number":"82649"},"items":[{"amount":19834,"description":"WCPagarmePixPayment","quantity":1}],"customer":{"name":"Gabriel Filippi","email":"[email protected]","type":"individual","phones":{"home_phone":{"country_code":"55","area_code":"47","number":"8888888888"}},"document":"9999999999","document_type":"CPF","birthdate":"08-20-2001"},"payments":[{"payment_method":"pix","pix":{"expires_at":"2024-03-11 19:43:23"}}],"code":82649} [headers] => Array ( [User-Agent] => wc-pagarme-pix-payment/2.1.2 woocommerce/8.6.0 wordpress/6.4.3 php/8.1.27 [X-PagarMe-User-Agent] => wc-pagarme-pix-payment/2.1.2 woocommerce/8.6.0 wordpress/6.4.3 php/8.1.27 [Authorization] => Basic c2tfYWE2MTg0NTM3YTYwNDc0NWJjYTQwMzIxZTQ0NDRhZWI6 [Content-Type] => application/json [Accept] => application/json ) ) CONTEXT: {"_legacy":true} 2024-03-11T21:43:24+00:00 NOTICE Response Pagar.me: Array ( [headers] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object ( [data:protected] => Array ( [date] => Mon, 11 Mar 2024 21:43:24 GMT [content-type] => application/json; charset=utf-8 [content-length] => 479 [cache-control] => no-cache [pragma] => no-cache [content-encoding] => gzip [expires] => -1 [cf-cache-status] => DYNAMIC [set-cookie] => Array ( [0] => __cf_bm=L7CqMFNyNWCFFDa5LDZN5YCsSYelM38x_ZW0jkNU8V4-1710193404-1.0.1.1-x4fIgsWkhXC8zWwWaWlq7etTosrm0Ty7xsW26Fwin.sc1cFdmJO0O_rdAjp42mUkxrf_vawAMPHSqdfHCXsUJQ; path=/; expires=Mon, 11-Mar-24 22:13:24 GMT; domain=.pagar.me; HttpOnly; Secure; SameSite=None [1] => _cfuvid=g8wEqUbcSo_6QQ4CpMBPeeSQrYIe0P8WJcCeSOm.1gQ-1710193404092-0.0.1.1-604800000; path=/; domain=.pagar.me; HttpOnly; Secure; SameSite=None ) [strict-transport-security] => max-age=31536000; includeSubDomains [server] => cloudflare [cf-ray] => 862eb8470fd107c4-IAD ) ) [body] => { "message": "The request is invalid.", "errors": { "order.payments[0].pix.expires_at": [ "The expires_at must be greater than now." ] }, "request": { "code": "82649", "closed": true, "items": [ { "amount": 19834, "description": "WCPagarmePixPayment", "quantity": 1 } ], "customer": { "name": "Gabriel Filippi", "email": "[email protected]", "document": "99999999999", "document_type": "CPF", "type": "individual", "birthdate": "2001-08-20T00:00:00Z", "phones": { "home_phone": { "country_code": "55", "number": "888888888888", "area_code": "47" } }, "metadata": {} }, "payments": [ { "payment_method": "pix", "pix": { "expires_at": "2024-03-11T19:43:23Z" } } ], "metadata": { "order_number": "82649" } } } [response] => Array ( [code] => 422 [message] => Unprocessable Entity ) [cookies] => Array ( [0] => WP_Http_Cookie Object ( [name] => __cf_bm [value] => L7CqMFNyNWCFFDa5LDZN5YCsSYelM38x_ZW0jkNU8V4-1710193404-1.0.1.1-x4fIgsWkhXC8zWwWaWlq7etTosrm0Ty7xsW26Fwin.sc1cFdmJO0O_rdAjp42mUkxrf_vawAMPHSqdfHCXsUJQ [expires] => 1710195204 [path] => / [domain] => pagar.me [port] => [host_only] => ) [1] => WP_Http_Cookie Object ( [name] => _cfuvid [value] => g8wEqUbcSo_6QQ4CpMBPeeSQrYIe0P8WJcCeSOm.1gQ-1710193404092-0.0.1.1-604800000 [expires] => [path] => / [domain] => pagar.me [port] => [host_only] => ) ) [filename] => [http_response] => WP_HTTP_Requests_Response Object ( [data] => [headers] => [status] => [response:protected] => WpOrg\Requests\Response Object ( [body] => { "message": "The request is invalid.", "errors": { "order.payments[0].pix.expires_at": [ "The expires_at must be greater than now." ] }, "request": { "code": "82649", "closed": true, "items": [ { "amount": 19834, "description": "WCPagarmePixPayment", "quantity": 1 } ], "customer": { "name": "Gabriel Filippi", "email": "[email protected]", "document": "999999999999", "document_type": "CPF", "type": "individual", "birthdate": "2001-08-20T00:00:00Z", "phones": { "home_phone": { "country_code": "55", "number": "8888888888", "area_code": "47" } }, "metadata": {} }, "payments": [ { "payment_method": "pix", "pix": { "expires_at": "2024-03-11T19:43:23Z" } } ], "metadata": { "order_number": "82649" } } } [raw] => HTTP/1.1 422 Unprocessable Entity Date: Mon, 11 Mar 2024 21:43:24 GMT Content-Type: application/json; charset=utf-8 Content-Length: 479 Connection: close Cache-Control: no-cache Pragma: no-cache Content-Encoding: gzip Expires: -1 CF-Cache-Status: DYNAMIC Set-Cookie: __cf_bm=L7CqMFNyNWCFFDa5LDZN5YCsSYelM38x_ZW0jkNU8V4-1710193404-1.0.1.1-x4fIgsWkhXC8zWwWaWlq7etTosrm0Ty7xsW26Fwin.sc1cFdmJO0O_rdAjp42mUkxrf_vawAMPHSqdfHCXsUJQ; path=/; expires=Mon, 11-Mar-24 22:13:24 GMT; domain=.pagar.me; HttpOnly; Secure; SameSite=None Strict-Transport-Security: max-age=31536000; includeSubDomains Set-Cookie: _cfuvid=g8wEqUbcSo_6QQ4CpMBPeeSQrYIe0P8WJcCeSOm.1gQ-1710193404092-0.0.1.1-604800000; path=/; domain=.pagar.me; HttpOnly; Secure; SameSite=None Server: cloudflare CF-RAY: 862eb8470fd107c4-IAD { "message": "The request is invalid.", "errors": { "order.payments[0].pix.expires_at": [ "The expires_at must be greater than now." ] }, "request": { "code": "82649", "closed": true, "items": [ { "amount": 19834, "description": "WCPagarmePixPayment", "quantity": 1 } ], "customer": { "name": "Gabriel Filippi", "email": "[email protected]", "document": "99999999999", "document_type": "CPF", "type": "individual", "birthdate": "1997-11-27T00:00:00Z", "phones": { "home_phone": { "country_code": "55", "number": "88888888888", "area_code": "47" } }, "metadata": {} }, "payments": [ { "payment_method": "pix", "pix": { "expires_at": "2024-03-11T19:43:23Z" } } ], "metadata": { "order_number": "82649" } } } [headers] => WpOrg\Requests\Response\Headers Object ( [data:protected] => Array ( [date] => Array ( [0] => Mon, 11 Mar 2024 21:43:24 GMT ) [content-type] => Array ( [0] => application/json; charset=utf-8 ) [content-length] => Array ( [0] => 479 ) [cache-control] => Array ( [0] => no-cache ) [pragma] => Array ( [0] => no-cache ) [content-encoding] => Array ( [0] => gzip ) [expires] => Array ( [0] => -1 ) [cf-cache-status] => Array ( [0] => DYNAMIC ) [set-cookie] => Array ( [0] => __cf_bm=L7CqMFNyNWCFFDa5LDZN5YCsSYelM38x_ZW0jkNU8V4-1710193404-1.0.1.1-x4fIgsWkhXC8zWwWaWlq7etTosrm0Ty7xsW26Fwin.sc1cFdmJO0O_rdAjp42mUkxrf_vawAMPHSqdfHCXsUJQ; path=/; expires=Mon, 11-Mar-24 22:13:24 GMT; domain=.pagar.me; HttpOnly; Secure; SameSite=None [1] => _cfuvid=g8wEqUbcSo_6QQ4CpMBPeeSQrYIe0P8WJcCeSOm.1gQ-1710193404092-0.0.1.1-604800000; path=/; domain=.pagar.me; HttpOnly; Secure; SameSite=None ) [strict-transport-security] => Array ( [0] => max-age=31536000; includeSubDomains ) [server] => Array ( [0] => cloudflare ) [cf-ray] => Array ( [0] => 862eb8470fd107c4-IAD ) ) ) [status_code] => 422 [protocol_version] => 1.1 [success] => [redirects] => 0 [url] => https://api.pagar.me/core/v5/orders/ [history] => Array ( ) [cookies] => WpOrg\Requests\Cookie\Jar Object ( [cookies:protected] => Array ( [__cf_bm] => WpOrg\Requests\Cookie Object ( [name] => __cf_bm [value] => L7CqMFNyNWCFFDa5LDZN5YCsSYelM38x_ZW0jkNU8V4-1710193404-1.0.1.1-x4fIgsWkhXC8zWwWaWlq7etTosrm0Ty7xsW26Fwin.sc1cFdmJO0O_rdAjp42mUkxrf_vawAMPHSqdfHCXsUJQ [attributes] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object ( [data:protected] => Array ( [path] => / [expires] => 1710195204 [domain] => pagar.me [httponly] => 1 [secure] => 1 [samesite] => None ) ) [flags] => Array ( [creation] => 1710193404 [last-access] => 1710193404 [persistent] => [host-only] => ) [reference_time] => 1710193404 ) [_cfuvid] => WpOrg\Requests\Cookie Object ( [name] => _cfuvid [value] => g8wEqUbcSo_6QQ4CpMBPeeSQrYIe0P8WJcCeSOm.1gQ-1710193404092-0.0.1.1-604800000 [attributes] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object ( [data:protected] => Array ( [path] => / [domain] => pagar.me [httponly] => 1 [secure] => 1 [samesite] => None ) ) [flags] => Array ( [creation] => 1710193404 [last-access] => 1710193404 [persistent] => [host-only] => ) [reference_time] => 1710193404 ) ) ) ) [filename:protected] => ) ) CONTEXT: {"_legacy":true} 2024-03-11T21:43:24+00:00 NOTICE Failed to make the transaction: Array ( [headers] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object ( [data:protected] => Array ( [date] => Mon, 11 Mar 2024 21:43:24 GMT [content-type] => application/json; charset=utf-8 [content-length] => 479 [cache-control] => no-cache [pragma] => no-cache [content-encoding] => gzip [expires] => -1 [cf-cache-status] => DYNAMIC [set-cookie] => Array ( [0] => __cf_bm=L7CqMFNyNWCFFDa5LDZN5YCsSYelM38x_ZW0jkNU8V4-1710193404-1.0.1.1-x4fIgsWkhXC8zWwWaWlq7etTosrm0Ty7xsW26Fwin.sc1cFdmJO0O_rdAjp42mUkxrf_vawAMPHSqdfHCXsUJQ; path=/; expires=Mon, 11-Mar-24 22:13:24 GMT; domain=.pagar.me; HttpOnly; Secure; SameSite=None [1] => _cfuvid=g8wEqUbcSo_6QQ4CpMBPeeSQrYIe0P8WJcCeSOm.1gQ-1710193404092-0.0.1.1-604800000; path=/; domain=.pagar.me; HttpOnly; Secure; SameSite=None ) [strict-transport-security] => max-age=31536000; includeSubDomains [server] => cloudflare [cf-ray] => 862eb8470fd107c4-IAD ) ) [body] => { "message": "The request is invalid.", "errors": { "order.payments[0].pix.expires_at": [ "The expires_at must be greater than now." ] }, "request": { "code": "82649", "closed": true, "items": [ { "amount": 19834, "description": "WCPagarmePixPayment", "quantity": 1 } ], "customer": { "name": "Gabriel Filippi", "email": "[email protected]", "document": "999999999", "document_type": "CPF", "type": "individual", "birthdate": "2001-08-20T00:00:00Z", "phones": { "home_phone": { "country_code": "55", "number": "8888888888", "area_code": "47" } }, "metadata": {} }, "payments": [ { "payment_method": "pix", "pix": { "expires_at": "2024-03-11T19:43:23Z" } } ], "metadata": { "order_number": "82649" } } } [response] => Array ( [code] => 422 [message] => Unprocessable Entity ) [cookies] => Array ( [0] => WP_Http_Cookie Object ( [name] => __cf_bm [value] => L7CqMFNyNWCFFDa5LDZN5YCsSYelM38x_ZW0jkNU8V4-1710193404-1.0.1.1-x4fIgsWkhXC8zWwWaWlq7etTosrm0Ty7xsW26Fwin.sc1cFdmJO0O_rdAjp42mUkxrf_vawAMPHSqdfHCXsUJQ [expires] => 1710195204 [path] => / [domain] => pagar.me [port] => [host_only] => ) [1] => WP_Http_Cookie Object ( [name] => _cfuvid [value] => g8wEqUbcSo_6QQ4CpMBPeeSQrYIe0P8WJcCeSOm.1gQ-1710193404092-0.0.1.1-604800000 [expires] => [path] => / [domain] => pagar.me [port] => [host_only] => ) ) [filename] => [http_response] => WP_HTTP_Requests_Response Object ( [data] => [headers] => [status] => [response:protected] => WpOrg\Requests\Response Object ( [body] => { "message": "The request is invalid.", "errors": { "order.payments[0].pix.expires_at": [ "The expires_at must be greater than now." ] }, "request": { "code": "82649", "closed": true, "items": [ { "amount": 19834, "description": "WCPagarmePixPayment", "quantity": 1 } ], "customer": { "name": "Gabriel Filippi", "email": "[email protected]", "document": "999999999", "document_type": "CPF", "type": "individual", "birthdate": "2001-08-20T00:00:00Z", "phones": { "home_phone": { "country_code": "55", "number": "8888888888888", "area_code": "47" } }, "metadata": {} }, "payments": [ { "payment_method": "pix", "pix": { "expires_at": "2024-03-11T19:43:23Z" } } ], "metadata": { "order_number": "82649" } } } [raw] => HTTP/1.1 422 Unprocessable Entity Date: Mon, 11 Mar 2024 21:43:24 GMT Content-Type: application/json; charset=utf-8 Content-Length: 479 Connection: close Cache-Control: no-cache Pragma: no-cache Content-Encoding: gzip Expires: -1 CF-Cache-Status: DYNAMIC Set-Cookie: __cf_bm=L7CqMFNyNWCFFDa5LDZN5YCsSYelM38x_ZW0jkNU8V4-1710193404-1.0.1.1-x4fIgsWkhXC8zWwWaWlq7etTosrm0Ty7xsW26Fwin.sc1cFdmJO0O_rdAjp42mUkxrf_vawAMPHSqdfHCXsUJQ; path=/; expires=Mon, 11-Mar-24 22:13:24 GMT; domain=.pagar.me; HttpOnly; Secure; SameSite=None Strict-Transport-Security: max-age=31536000; includeSubDomains Set-Cookie: _cfuvid=g8wEqUbcSo_6QQ4CpMBPeeSQrYIe0P8WJcCeSOm.1gQ-1710193404092-0.0.1.1-604800000; path=/; domain=.pagar.me; HttpOnly; Secure; SameSite=None Server: cloudflare CF-RAY: 862eb8470fd107c4-IAD { "message": "The request is invalid.", "errors": { "order.payments[0].pix.expires_at": [ "The expires_at must be greater than now." ] }, "request": { "code": "82649", "closed": true, "items": [ { "amount": 19834, "description": "WCPagarmePixPayment", "quantity": 1 } ], "customer": { "name": "Gabriel Filippi", "email": "[email protected]", "document": "999999999", "document_type": "CPF", "type": "individual", "birthdate": "2001-08-20T00:00:00Z", "phones": { "home_phone": { "country_code": "55", "number": "8888888888888", "area_code": "47" } }, "metadata": {} }, "payments": [ { "payment_method": "pix", "pix": { "expires_at": "2024-03-11T19:43:23Z" } } ], "metadata": { "order_number": "82649" } } } [headers] => WpOrg\Requests\Response\Headers Object ( [data:protected] => Array ( [date] => Array ( [0] => Mon, 11 Mar 2024 21:43:24 GMT ) [content-type] => Array ( [0] => application/json; charset=utf-8 ) [content-length] => Array ( [0] => 479 ) [cache-control] => Array ( [0] => no-cache ) [pragma] => Array ( [0] => no-cache ) [content-encoding] => Array ( [0] => gzip ) [expires] => Array ( [0] => -1 ) [cf-cache-status] => Array ( [0] => DYNAMIC ) [set-cookie] => Array ( [0] => __cf_bm=L7CqMFNyNWCFFDa5LDZN5YCsSYelM38x_ZW0jkNU8V4-1710193404-1.0.1.1-x4fIgsWkhXC8zWwWaWlq7etTosrm0Ty7xsW26Fwin.sc1cFdmJO0O_rdAjp42mUkxrf_vawAMPHSqdfHCXsUJQ; path=/; expires=Mon, 11-Mar-24 22:13:24 GMT; domain=.pagar.me; HttpOnly; Secure; SameSite=None [1] => _cfuvid=g8wEqUbcSo_6QQ4CpMBPeeSQrYIe0P8WJcCeSOm.1gQ-1710193404092-0.0.1.1-604800000; path=/; domain=.pagar.me; HttpOnly; Secure; SameSite=None ) [strict-transport-security] => Array ( [0] => max-age=31536000; includeSubDomains ) [server] => Array ( [0] => cloudflare ) [cf-ray] => Array ( [0] => 862eb8470fd107c4-IAD ) ) ) [status_code] => 422 [protocol_version] => 1.1 [success] => [redirects] => 0 [url] => https://api.pagar.me/core/v5/orders/ [history] => Array ( ) [cookies] => WpOrg\Requests\Cookie\Jar Object ( [cookies:protected] => Array ( [__cf_bm] => WpOrg\Requests\Cookie Object ( [name] => __cf_bm [value] => L7CqMFNyNWCFFDa5LDZN5YCsSYelM38x_ZW0jkNU8V4-1710193404-1.0.1.1-x4fIgsWkhXC8zWwWaWlq7etTosrm0Ty7xsW26Fwin.sc1cFdmJO0O_rdAjp42mUkxrf_vawAMPHSqdfHCXsUJQ [attributes] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object ( [data:protected] => Array ( [path] => / [expires] => 1710195204 [domain] => pagar.me [httponly] => 1 [secure] => 1 [samesite] => None ) ) [flags] => Array ( [creation] => 1710193404 [last-access] => 1710193404 [persistent] => [host-only] => ) [reference_time] => 1710193404 ) [_cfuvid] => WpOrg\Requests\Cookie Object ( [name] => _cfuvid [value] => g8wEqUbcSo_6QQ4CpMBPeeSQrYIe0P8WJcCeSOm.1gQ-1710193404092-0.0.1.1-604800000 [attributes] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object ( [data:protected] => Array ( [path] => / [domain] => pagar.me [httponly] => 1 [secure] => 1 [samesite] => None ) ) [flags] => Array ( [creation] => 1710193404 [last-access] => 1710193404 [persistent] => [host-only] => ) [reference_time] => 1710193404 ) ) ) ) [filename:protected] => ) ) CONTEXT: {"_legacy":true}
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.