Foro
amount" tiene un tipo inválido.conekta.errors.parameter_validation.tax_
almost 3 years ago by Francis Gonzalez
amount" tiene un tipo inválido.conekta.errors.parameter_validation.tax_lines.amount.invalid_datatype82
Tengo este error con el calculo del IVA, no eh descubierto por que manda ese error si "amount" tiene si contiene un valor.
[
"line_items" =>$arrayDetalle,
"currency" => "MXN",
'discount_lines' => [
[
'code' => 'Cupon de descuento',
'amount' => $des*100,
'type' => 'loyalty'
]
],
'tax_lines' => [
[
'description' => 'IVA',
'amount' => $iva*100
]
],
"customer_info" => [
"name" => $usuario[0],
"email" => $_SESSION['email1'],
"phone" => $_SESSION['email2']
],
"charges" => [
[
'livemode' => false,
"payment_method" => [
"type" => "oxxo_cash",
"expires_at" => $thirty_days_from_now
]
]
]
]