Api payment Boletofácil in php

Asked

Viewed 74 times

0

I’m putting together a pay-as-you-go panel. the system asks me to generate a payment request url:

 https://www.boletobancario.com/boletofacil/integration/api/v1/issue-charge?token=SEUTOKEN&description=Pedido1791&amount=12.75&payerName=Nome+Sobrenome&payerCpfCnpj=94648945123

If you open the url you will open a json file in xml, I would like to know how to rescue the payment url that is inside the returned information. Follow an example: inserir a descrição da imagem aqui

The payment url would be the parameter checkoutUrl

1 answer

0

I believe I can help: PHP json_decode documentation

$json = '{"a":1,"b":2,"c":3,"d":4,"e":5}';
var_dump(json_decode($json));
var_dump(json_decode($json, true));

or, to sum up:

$json = json_decode($seuObjetoResposta, true)';
$json[0]['billetDetails']->portfilio

Browser other questions tagged

You are not signed in. Login or sign up in order to post.