This question follows the previous one I posted: Django Callback on Facebook Credits
So basically, I have a static HTML page with a button. After clicking the button, a purchase dialog for Facebook Credits will appear.
As shown on Facebook on the blog , here is my link page to view the HTML source.
I have a kind of URL that is a link registered with Facebook Developers. The view is as follows:
def fb_credits_callback(request): #Data array that will be returned data = { } string = '' if request.method == 'GET': string = 'GET' elif request.method == 'POST': string = 'POST' send_mail( 'TestDare Debug', 'Received '+string+" request", ' registration@my _domain.com', [' my_personal_email@gmail.com '], fail_silently=True ) signed_request = request['signed_request'] plain_request = parse_signed_request(signed_request, FACEBOOK_APP_ID)
Now, of course, this is only a preliminary test (there is a lot of debugging to do this later), but I donβt even receive an email when I click on the button on my page. This means that for some reason, Facebook is not making a callback for my application. If I perform a GET for this view, I receive an email as expected.
When the button is pressed, the following error appears:
"Failed to process your payment. Sorry, but we had problems processing your payment. You did not pay for this transaction. Please try again."
If someone can help me track why the callback is not working, I would really appreciate it.
thanks