Adherence to the prepaid insurance plan

3

Currently, I'm trying to integrate recurring payments with pagseguro. Currently, the API returns the ['preApprovalRequest'] ['code']. The problem is that I do not know where or what I do with this code to redirect the add the user to the plan and redirect them to pagseguro so they can pay. With single payments, it's

https://sandbox.pagseguro.uol.com.br/v2/checkout/payment.html?code=%s

But with preapproval the documentation does not say what you do once you get the answer from

https://ws.sandbox.pagseguro.uol.com.br/pre-approvals/request?email=%s&token=%s

This returns

<? Xml version = "1.0" codificação = "ISO-8859-1" standalone = "yes"?> <PreApprovalRequest> <code> 123123123EAF123123123 </ code> <date> 2017-03-02T18: 29: 53-03: 00 </ date> </ preApprovalRequest>

With this ['code'] how or where can I redirect the user so that they can pay?

    
asked by anonymous 02.03.2017 / 22:31

1 answer

3

You must do a POST to the address link and you will receive a response in XML like this:

<preApprovalRequest>
    <code>EA0D70578A8AE68FF4868FB8A500B3D0</code>
    <date>2015-08-14T23:15:27.000-03:00</date>
</preApprovalRequest>

After that, save the code above and redirect the user to link

    
02.03.2017 / 23:01