Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6595037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:53:16+00:00 2026-05-25T17:53:16+00:00

I implement the example from facebook credits, and create an test app, added the

  • 0

I implement the example from facebook credits, and create an test app, added the callback.php in the Callback Url, place my keys correctly. but I get this error:

Sorry, but we're having trouble processing your payment. You have not been charged for this transaction. Please try again.

I am trying to create a few buttons with different monetary values. Like:

Click to get 100 credits
Click to get 1000 credits

If I use this generic code, I get the payment window just fine, but I can’t see my products there, I can only choose from already made presets :

function buyMore(){
    // calling the API ...
    var obj = {
        app_id: 'xxxxxxxxxxxxxxxxxxxxx',
        method: 'pay',
        order_info: n, 
        purchase_type: 'item',
        credits_purchase: true
    };

to show the user my monetary presets I think I need to pass different values to the function:

<p><a onclick="buyMore('100'); return false;">Buy More Credits 100</a></p>
<p><a onclick="buyMore('1000'); return false;">Buy More Credits 1000</a></p>


function buyMore(price) {
    var order_info = { 
        "title":'title',
        "description":'description',
        "price":price,
        "image_url":'http://....img_url',
        "product_url":'http://....product_url'
    };

    // calling the API ...
    var obj = {
        app_id: '153230661424821',
        method: 'pay',
        order_info: order_info,
        purchase_type: 'item'
    };
}

Not sure if I got it right.

Can anyone push me in the right direction?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:53:16+00:00Added an answer on May 25, 2026 at 5:53 pm

    Yeah, you’ll have to have your users select the item they want to purchase, which will then call the buyMore function to have them confirm their purchase via the Credits dialog (like you’re doing in your second example).

    First thing I’d do is check my Credits setting in the Developer app though. I’ve gotten that error before on a new app before realizing I’d forgotten to set my credits callback URL or set my user as a Credits test user.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to implement the example from here. Facebook Share passes along the URL of
In the BubbleLevel example from apple they implement an +initialize method. They say: +initialize
My first try of MVC. Am trying to implement a simple example. Inspiration from
I'm trying to implement a WebLogic job scheduling example, to test my cluster capabilities
I encountered a problem when I tried to implement the ServiceKnownType example from MSDN.
I am trying to implement a simple plist example from Beginning iPhone 3 Development
With nodejs, it's very easy to create a non-blocking TCP server. Example from nodejs.org:
From code how can we know which interfaces one class implements? Example: interface IDrink
When reading a post some points were given without example : To implement IEnumerable
While trying to implement an MVC file upload example on Scott Hanselman's blog. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.