Unexpected Yoken
-
Instalei o plugin no WooCommerce, segui as instru??es e habilitei o modo de SandBox. O Plugin será o único método de pagamento em minha loja.
Ao preencher as informa??es, além de uma demora no processamento das informa??es, recebo a seguinte mensagem:
SyntaxError: Unexpected token < in JSON at position 0
O pedido é inserido no WooCommerce. Segue o Log:
———–
11-21-2018 @ 10:58:32 – Execute payment request: Array
(
[payer_id] => F48TWDM56GENA
)11-21-2018 @ 10:58:47 – Execute payment response: Array
(
[id] => PAY-6U617456HM2806623LP2VKXY
[intent] => sale
[state] => approved
[cart] => 7EX10251E4750602A
[payer] => Array
(
[payment_method] => paypal
[status] => UNVERIFIED
[payer_info] => Array
(
[email] => [email protected]
[first_name] => Roberto
[last_name] => Pellegrino
[payer_id] => F48TWDM56GENA
[shipping_address] => Array
(
[recipient_name] => Roberto Pellegrino
[line1] => Rua C, 300, 300
[line2] => 300
[city] => S Paulo
[state] => SP
[postal_code] => 04182135
[country_code] => BR
[normalization_status] => UNKNOWN
)[tax_id_type] => BR_CPF
[tax_id] => 20539793809
[country_code] => BR
))
[transactions] => Array
(
[0] => Array
(
[amount] => Array
(
[total] => 425.00
[currency] => BRL
[details] => Array
(
[subtotal] => 425.00
[shipping] => 0.00
))
[payee] => Array
(
[merchant_id] => 2LFBXQQX6S4WC
[email] => [email protected]
)[description] => Pedido #431 realizado na loja Caraguá IPTV
[invoice_number] => 431
[item_list] => Array
(
[items] => Array
(
[0] => Array
(
[name] => PLANO IPTV MENSAL
[sku] => MNS
[price] => 35.00
[currency] => BRL
[quantity] => 1
)[1] => Array
(
[name] => PLANO IPTV TRIMESTRAL
[sku] => TRI
[price] => 90.00
[currency] => BRL
[quantity] => 1
)[2] => Array
(
[name] => PLANO IPTV ANUAL
[sku] => ANU
[price] => 300.00
[currency] => BRL
[quantity] => 1
))
[shipping_address] => Array
(
[recipient_name] => Roberto Pellegrino
[line1] => Rua C, 300, 300
[line2] => 300
[city] => S Paulo
[state] => SP
[postal_code] => 04182135
[country_code] => BR
[normalization_status] => UNKNOWN
)[shipping_phone_number] => 1125039858
)[related_resources] => Array
(
[0] => Array
(
[sale] => Array
(
[id] => 3B923480MX072032P
[state] => pending
[amount] => Array
(
[total] => 425.00
[currency] => BRL
[details] => Array
(
[subtotal] => 425.00
))
[payment_mode] => INSTANT_TRANSFER
[reason_code] => PAYMENT_REVIEW
[protection_eligibility] => INELIGIBLE
[transaction_fee] => Array
(
[value] => 14.85
[currency] => BRL
)[receipt_id] => 2275702936824718
[parent_payment] => PAY-6U617456HM2806623LP2VKXY
[create_time] => 2018-11-21T12:58:36Z
[update_time] => 2018-11-21T12:58:36Z
[links] => Array
(
[0] => Array
(
[href] => https://api.sandbox.paypal.com/v1/payments/sale/3B923480MX072032P
[rel] => self
[method] => GET
)[1] => Array
(
[href] => https://api.sandbox.paypal.com/v1/payments/sale/3B923480MX072032P/refund
[rel] => refund
[method] => POST
)[2] => Array
(
[href] => https://api.sandbox.paypal.com/v1/payments/payment/PAY-6U617456HM2806623LP2VKXY
[rel] => parent_payment
[method] => GET
))
[soft_descriptor] => PAYPAL *TESTFACILIT
))
)
)
)
[redirect_urls] => Array
(
[return_url] => https://www.caraguaiptv.com.br/iptv?paymentId=PAY-6U617456HM2806623LP2VKXY
[cancel_url] => https://www.caraguaiptv.com.br/iptv
)[create_time] => 2018-11-21T12:58:37Z
[update_time] => 2018-11-21T12:58:31Z
[links] => Array
(
[0] => Array
(
[href] => https://api.sandbox.paypal.com/v1/payments/payment/PAY-6U617456HM2806623LP2VKXY
[rel] => self
[method] => GET
))
)
The page I need help with: [log in to see the link]
- The topic ‘Unexpected Yoken’ is closed to new replies.