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 8468019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:48:51+00:00 2026-06-10T15:48:51+00:00

I have a website where users pay for a service provided by other users,

  • 0

I have a website where users pay for a service provided by other users, and in the end of the week we pay the users the value of the sale of their service minus our commission.

Currently when we want to pay our users, we do manual payments, logging into paypal and manually updating our database after payment. The problem we have is that our transactions are exceeding a thousand a week, so it gets VERY cumbersome to do it manually.

We came up with a little system where by using the Adaptive Payments API from paypal, we can execute payments and update our database with just one click.

My question is the following – We are afraid of a few circumstances occurring:

  1. We pay the user, our SQL database goes down, so we do not update our sale records. As a consequence, the system pays the user again when the cron executes.

  2. We could do the reverse, and update our SQL database first, and if that goes through, we execute the paypal payment. The problem with that is, if something goes wrong on the PayPal side, we end up not paying our users at all, since our database was updated as if we had paid them.

Our solutions:

  • We update our database and keep track of all the changed records – > proceed to call PayPal API – > If the PayPal call fails, we revert the changes to the updated records; If the call is successful, we leave it as it is.

  • We execute the PayPal payment, and update the database. We store the ACK message from the API in the database, and when we check our records to pay users, we verify if the ACK field is success.

Our solutions make us really weary, and perhaps we are trapped in a certain mindset. Our fear is that either or SQL will fail or PayPal api call won’t go through.
Does anyone have any suggestions or perhaps a completely different implementation for our payment system?

  • 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-06-10T15:48:52+00:00Added an answer on June 10, 2026 at 3:48 pm

    Well, basicly this is something for a transaction system(s).

    have a look here: http://dev.mysql.com/doc/refman/5.0/en/commit.html

    1. start transaction
    2. update user entry in database
    3. if update is success send payment to paypal
    4. sent a commit to database if it was successfull.

    This would be the savest approach, and if the commit fails, just log that error somewhere not DB relevant and handle that by hand afterwards (user friendly)

    Just a side note, it is of course financially more secure for you, to update the user data first that payment was sent and after this has run smoothly sending the payment to paypal.

    If you can’t rollback the user-data after payment went wrong its not to your damage but the user will for sure tell you he did not receive a payment….

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

Sidebar

Related Questions

I am working on an website where users will have to pay a small
I have website where users can login with their Facebook account. I am using
My website has premium videos, for which users have to pay to watch it.
I have a website which requires users to enter their corporate network username and
I have a website where users can send their RICH text description. I'm using
I have a website where users can post their articles. I would like to
I have a website where users can upload their files; these are stored on
I have a website where I need to reward users for their involvement by
I have a website where users sign up and get to upload their images
I have a website where users generate an Excel report using a macro, when

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.