0
I’m working on integrating payments through Pagar.me, but I’m not able to decode their postback to process the returned information.
The return format is based on URL, I performed a url_decode()
to better treat the information, in the end it gets like this:
id=000000&fingerprint=0000000000&event=transaction_status_changed&old_status=processing&desired_status=paid¤t_status=refused&object=transaction&transaction[object]=transaction....
My problem is in being able to use this information to perform the required validation, I would need to get the information from the field fingerprint
and some others, but I’m not getting how I can accomplish this action.
I thought I’d try an array or something like that, but I wasn’t very successful.
I hope you can help me.
Have you tried the
parse_str
?– Woss
@Woss, not yet, I will search the doc to use it and see if I can. Thanks for the suggestion.
– Thomas Franklin
@Woss, it worked, I managed to manipulate. Thank you!!
– Thomas Franklin