facebook graph api - Failed Test Payment does not call client-side javascript callback in new local currency payment system(local currency breaking change) -


i transferring our game new local currency payment system.
works fine successful test payments when wanted test failed payment test user not behave expected to.

according facebook documentation here send javascript object looks this:

{    "payment_id": 375225169259274,    "quantity": 1,    "status": "completed",    "signed_request": "bjyedxddlrj..."  }

when test payment setting always succeed, javascript object sent.
however, when test payment setting always fail, javascript object not sent.

the facebook payment dialog shows: "this expected failure test credential." , receive realtime update on server payment dialog stays open options retry , cancel.
when click cancel, game receives javascript object error code user canceling not 1 of failed payment.

the facebook documentation states

the status of order returned js callback can initiated, completed or failed. developers should fulfill order if status completed. if see status of initiated, indicates payment has not yet completed. should display message user let them know payment pending, , order fulfilled once payment completes.

so assuming should javascript object "status":"failed" when payment failed.

does got same problem? know how know client-side if payment failed? problem test payments?


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -