Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
Never mind... this problem appears to be occurring when using the server-side
dialog/pay api as well.
Original comment by jk...@oneloop.com
on 24 Jul 2011 at 9:09
Original comment by rovertn...@gmail.com
on 29 Jul 2011 at 9:52
hi guys, ive been trying but no success... i got this message =(
There Was a Problem Processing Your Payment
Sorry, but we're having trouble processing your payment. You have not been
charged for this transaction. Please try again.
Original comment by ricardoc...@gmail.com
on 19 Sep 2011 at 1:30
Hi Ricardo,
Are you referring to your own app or mine? The reason I ask is that our app is
in sandbox mode so you shouldn't be able to access it. Additionally, this
weekend I was able to get the problem resolved. About two weeks ago, I started
seeing a different error message. The reason was that my callback was now
being called, but there had been an error in the processing of the callback.
Once that was fixed I had credits working again. I don't know why facebook
suddenly started working and making appropriate callbacks.
Cheers,
Jason
Original comment by jk...@oneloop.com
on 19 Sep 2011 at 3:35
theres no sample, even from facebook who works... i feel the callback.php are
not being called...
Original comment by ricardoc...@gmail.com
on 26 Sep 2011 at 7:35
my callback is called but in the second call (status=placed) my callback return
the json with the status=settled and FB throw the error: "Sorry, but we're
having trouble processing your payment. You have not been charged for this
transaction. Please try again."
Original comment by pabl...@gmail.com
on 22 Oct 2011 at 3:32
I had been having similar problems, using just the test app from github, but
after making some app setting changes, I was finally able to get that to work.
More info
here:
http://stackoverflow.com/questions/7968176/need-help-implementing-facebook-credi
ts
As far as doing all of this through the actionScript sdk, I guess you can't
have the callback be inside code, since there needs to be a response. Is this
correct?
For example, if the above call were made from inside actionScript:
Facebook.ui("pay", {purchase_type:"item", order_info:kOrderInfo.order_info},
OnUi, "iframe");
The callback php file that is registered in the FB app settings would be called
and that needs to echo back the response. What exactly would "OnUi" do? Or is
that also
called with the same data? And if so, it couldn't respond, could it, or maybe
you could do an ExternalInterface.call() to a javascript function, which would
then do a
php echo of the results?
Sorry, I'm not real confortable in the JavaScript world. It would be really
great if all of this could be dealt with from within ActionScript.
Any advice would be greatly appreciated.
-brad
Original comment by brad.gia...@gmail.com
on 2 Nov 2011 at 8:44
Correct, you cannot have the callback be inside any client-side code. For
example, if you have a test server running locally, it will fail to get the
facebook registered callback as well because facebook can only make calls to
registered domain names.
Original comment by jk...@oneloop.com
on 2 Nov 2011 at 8:53
I see.
I was able to get this to work as described above. My test actionscript code
looks like this:
private function purchaseTest():void
{
var order_info:Object;
order_info =
{
title:'Test Product',
description:'Test product description',
price:'123',
image_url:'http://www.facebook.com/images/gifts/21.png',
product_url:'http://www.facebook.com/images/gifts/21.png'
};
Facebook.ui(
"pay.prompt",
{order_info: order_info, purchase_type: "item"},
payCallback);
}
private function payCallback(paymentData:Object):void
{
for (var x in paymentData)
{
trace("name: " + x);
trace("value: " + paymentData[x]);
}
}
Notice the "pay.prompt". I saw this in another post:
http://code.google.com/p/facebook-actionscript-api/issues/detail?id=268
When this function is called, the registered callback is called by FB. The end
user is prompted to make the purchases, etc. After the transaction is totally
complete, then the actionscript callback, "payCallback", is called.
If the user successfully makes the purchase, I get this:
name: status
value: settled
name: order_id
value: 159977120765142
If the user cancels the purchase, I get this:
name: error_code
value: 1383010
name: error_message
value: User canceled the order.
Thanks for your help.
Original comment by simon.gr...@gmail.com
on 3 Nov 2011 at 3:15
Original issue reported on code.google.com by
jk...@oneloop.com
on 20 Jul 2011 at 10:17