Erro ao finalizar compra (problema diferente)
-
Boa noite. Estou com esse mesmo problema que a pessoa do tópico anterior, mas ao que parece o erro que estou tendo é diferente: Authorization has been denied for this request.
Segue o arquivo de log:
2024-04-03T21:17:23+00:00 Nota API PagarmePix: Init process payment Contexto adicional 2024-04-03T21:17:23+00:00 Nota API PagarmePix: Send pagarme data:Array ( [metadata] => Array ( [order_number] => 229060 ) [items] => Array ( [0] => Array ( [amount] => 5400 [description] => WCPagarmePixPayment [quantity] => 1 ) ) [customer] => Array ( [name] => Joao da Silva 1 [email] => [email protected] [type] => individual [phones] => Array ( [home_phone] => Array ( [country_code] => 55 [area_code] => 11 [number] => 99948859 ) ) [document] => 23991496372 [document_type] => CPF ) [payments] => Array ( [0] => Array ( [payment_method] => pix [pix] => Array ( [expires_at] => 2024-04-04 18:17:23 ) ) ) [code] => 229060 ) CONTEXT: {"_legacy":true} 2024-04-03T21:17:23+00:00 Nota Doing a transaction for order 229060... Contexto adicional 2024-04-03T21:17:23+00:00 Nota Send Safe Post Request to: https://api.pagar.me/core/v5/orders/ Contexto adicional 2024-04-03T21:17:23+00:00 Nota Params to send: Array ( [method] => POST [timeout] => 60 [body] => {"metadata":{"order_number":"229060"},"items":[{"amount":5400,"description":"WCPagarmePixPayment","quantity":1}],"customer":{"name":"Joao da Silva 1","email":"[email protected]","type":"individual","phones":{"home_phone":{"country_code":"55","area_code":"11","number":"99948859"}},"document":"23991496372","document_type":"CPF"},"payments":[{"payment_method":"pix","pix":{"expires_at":"2024-04-04 18:17:23"}}],"code":229060} [headers] => Array ( [User-Agent] => wc-pagarme-pix-payment/2.1.3 woocommerce/8.7.0 wordpress/6.5 php/7.4.33 [X-PagarMe-User-Agent] => wc-pagarme-pix-payment/2.1.3 woocommerce/8.7.0 wordpress/6.5 php/7.4.33 [Authorization] => Basic Og== [Content-Type] => application/json [Accept] => application/json ) ) CONTEXT: {"_legacy":true} 2024-04-03T21:17:23+00:00 Nota Response Pagar.me: Array ( [headers] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object ( [data:protected] => Array ( [date] => Wed, 03 Apr 2024 21:17:23 GMT [content-type] => application/json; charset=utf-8 [content-length] => 68 [cache-control] => no-cache [pragma] => no-cache [expires] => -1 [www-authenticate] => Basic [cf-cache-status] => DYNAMIC [set-cookie] => Array ( [0] => __cf_bm=OE0uhO6Q1OVfpfX7QRA6xhNvoYG7XlmQSb6QMVK1KTo-1712179043-1.0.1.1-6NZ4alr15bracpIf8pygsgdWf82QN3VFX5yRn0GLA.wDITkrJiKeBDxhICKD8ELUuc_RwzSTTjcyNvzWV0xWzg; path=/; expires=Wed, 03-Apr-24 21:47:23 GMT; domain=.pagar.me; HttpOnly; Secure; SameSite=None [1] => _cfuvid=nSJ.iHLLCyTGThS6V8GlDbecF8o4r5eehG6Ni9nSTBg-1712179043609-0.0.1.1-604800000; path=/; domain=.pagar.me; HttpOnly; Secure; SameSite=None ) [strict-transport-security] => max-age=31536000; includeSubDomains [server] => cloudflare [cf-ray] => 86ec15cdffca6dc5-MIA ) ) [body] => { "message": "Authorization has been denied for this request." } [response] => Array ( [code] => 401 [message] => Unauthorized ) [cookies] => Array ( [0] => WP_Http_Cookie Object ( [name] => __cf_bm [value] => OE0uhO6Q1OVfpfX7QRA6xhNvoYG7XlmQSb6QMVK1KTo-1712179043-1.0.1.1-6NZ4alr15bracpIf8pygsgdWf82QN3VFX5yRn0GLA.wDITkrJiKeBDxhICKD8ELUuc_RwzSTTjcyNvzWV0xWzg [expires] => 1712180843 [path] => / [domain] => pagar.me [port] => [host_only] => ) [1] => WP_Http_Cookie Object ( [name] => _cfuvid [value] => nSJ.iHLLCyTGThS6V8GlDbecF8o4r5eehG6Ni9nSTBg-1712179043609-0.0.1.1-604800000 [expires] => [path] => / [domain] => pagar.me [port] => [host_only] => ) ) [filename] => [http_response] => WP_HTTP_Requests_Response Object ( [response:protected] => WpOrg\Requests\Response Object ( [body] => { "message": "Authorization has been denied for this request." } [raw] => HTTP/1.1 401 Unauthorized Date: Wed, 03 Apr 2024 21:17:23 GMT Content-Type: application/json; charset=utf-8 Content-Length: 68 Connection: close Cache-Control: no-cache pragma: no-cache expires: -1 www-authenticate: Basic CF-Cache-Status: DYNAMIC Set-Cookie: __cf_bm=OE0uhO6Q1OVfpfX7QRA6xhNvoYG7XlmQSb6QMVK1KTo-1712179043-1.0.1.1-6NZ4alr15bracpIf8pygsgdWf82QN3VFX5yRn0GLA.wDITkrJiKeBDxhICKD8ELUuc_RwzSTTjcyNvzWV0xWzg; path=/; expires=Wed, 03-Apr-24 21:47:23 GMT; domain=.pagar.me; HttpOnly; Secure; SameSite=None Strict-Transport-Security: max-age=31536000; includeSubDomains Set-Cookie: _cfuvid=nSJ.iHLLCyTGThS6V8GlDbecF8o4r5eehG6Ni9nSTBg-1712179043609-0.0.1.1-604800000; path=/; domain=.pagar.me; HttpOnly; Secure; SameSite=None Server: cloudflare CF-RAY: 86ec15cdffca6dc5-MIA { "message": "Authorization has been denied for this request." } [headers] => WpOrg\Requests\Response\Headers Object ( [data:protected] => Array ( [date] => Array ( [0] => Wed, 03 Apr 2024 21:17:23 GMT ) [content-type] => Array ( [0] => application/json; charset=utf-8 ) [content-length] => Array ( [0] => 68 ) [cache-control] => Array ( [0] => no-cache ) [pragma] => Array ( [0] => no-cache ) [expires] => Array ( [0] => -1 ) [www-authenticate] => Array ( [0] => Basic ) [cf-cache-status] => Array ( [0] => DYNAMIC ) [set-cookie] => Array ( [0] => __cf_bm=OE0uhO6Q1OVfpfX7QRA6xhNvoYG7XlmQSb6QMVK1KTo-1712179043-1.0.1.1-6NZ4alr15bracpIf8pygsgdWf82QN3VFX5yRn0GLA.wDITkrJiKeBDxhICKD8ELUuc_RwzSTTjcyNvzWV0xWzg; path=/; expires=Wed, 03-Apr-24 21:47:23 GMT; domain=.pagar.me; HttpOnly; Secure; SameSite=None [1] => _cfuvid=nSJ.iHLLCyTGThS6V8GlDbecF8o4r5eehG6Ni9nSTBg-1712179043609-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] => 86ec15cdffca6dc5-MIA ) ) ) [status_code] => 401 [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] => OE0uhO6Q1OVfpfX7QRA6xhNvoYG7XlmQSb6QMVK1KTo-1712179043-1.0.1.1-6NZ4alr15bracpIf8pygsgdWf82QN3VFX5yRn0GLA.wDITkrJiKeBDxhICKD8ELUuc_RwzSTTjcyNvzWV0xWzg [attributes] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object ( [data:protected] => Array ( [path] => / [expires] => 1712180843 [domain] => pagar.me [httponly] => 1 [secure] => 1 [samesite] => None ) ) [flags] => Array ( [creation] => 1712179043 [last-access] => 1712179043 [persistent] => [host-only] => ) [reference_time] => 1712179043 ) [_cfuvid] => WpOrg\Requests\Cookie Object ( [name] => _cfuvid [value] => nSJ.iHLLCyTGThS6V8GlDbecF8o4r5eehG6Ni9nSTBg-1712179043609-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] => 1712179043 [last-access] => 1712179043 [persistent] => [host-only] => ) [reference_time] => 1712179043 ) ) ) ) [filename:protected] => [data] => [headers] => [status] => ) )
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Erro ao finalizar compra (problema diferente)’ is closed to new replies.