CheckoutURL redirect issue on Checkout

0

I'm developing the site of my phonographic label with the CodeIgniter framework. In it I will sell physical and digital CDs with the Cart class. I signed up for Cielo this week and I am reading the Developer's Handbook assiduously.

The manual does not contain information for some questions that I can not solve. The cart part is already working OK, it is in sending the information going to Cielo are also OK.

I made an echo in the return, and the same appears the request, in my view everything OK.

{"orderNumber":"2d0de5e0d0f2be876a8661233d66e93c","softDescriptor":"1070533359","cart":{"discount":{"type":"Percent","value":10,"isRequired":false},"items":[{"name":"Album - Faixa: Intro","description":"aaaa","unitPrice":1000,"quantity":1,"type":"Digital","sku":"c4ca4238a0b923820dcc509a6f75849b","weight":0}]},"shipping":{"type":"WithoutShipping"},"payment":{"boletoDiscount":0,"debitDiscount":10},"customer":{"identity":"14587524710","fullName":"Cliente","email":"[email protected]"},"options":{"antifraudEnabled":false},"settings":{"checkoutUrl":"https://cieloecommerce.cielo.com.br/TransactionalVNext/Checkout/Index/a2f81289-a0ec-4a1e-a5b2-9aeaceaeb394","profile":"CheckoutCielo","version":"2"}}

I've asked King Host to add the EV Certificate to me, and release Checkout Sky-specific Mod Security. However, the page is not redirected to CheckoutUL. Is it because of these components? Or is it some mistake of mine?

    
asked by anonymous 08.11.2015 / 07:29

1 answer

1

I managed to solve boys. I needed to redirect, it's not automatic. For those who need it:

$json = json_decode($response);
$checkoutUrl = $json->settings->checkoutUrl;

redirect ($ checkoutUrl); // codeigniter redirect

    
10.11.2015 / 05:12