Can anyone help me with this, i am trying to implement canvas payments in facebook and i’ am almost there.
void PayCallback(FBResult result){
if (result != null){
var response = Json.Deserialize(result.Text) as Dictionary<string, object>;
if(Convert.ToString(response["status"]) == "completed"){
GiveItem();
}
else{
// Payment Failed
}
}
}
void GiveItem(){
// Implement your give item here
}
I’ am having problems with this part:
if(Convert.ToString(response[“status”]) == “completed”){
Thank you.